MCP.Protocol.Types.Tool (MCP Elixir SDK v1.1.0)

Copy Markdown View Source

An MCP tool definition.

Tools are functions that can be called by an LLM via the MCP client.

Summary

Types

t()

@type t() :: %MCP.Protocol.Types.Tool{
  annotations: MCP.Protocol.Types.ToolAnnotations.t() | nil,
  description: String.t() | nil,
  icons: [MCP.Protocol.Types.Icon.t()] | nil,
  input_schema: map(),
  meta: map() | nil,
  name: String.t(),
  output_schema: map() | nil,
  title: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()