ExMCP.Server.Tools.Builder.Tool (ex_mcp v0.9.2)

View Source

Runtime representation of a tool definition.

Summary

Types

param()

@type param() :: %{
  name: atom(),
  type: atom() | {atom(), any()},
  required: boolean(),
  default: any(),
  schema: map() | nil
}

t()

@type t() :: %ExMCP.Server.Tools.Builder.Tool{
  annotations: map(),
  description: String.t(),
  handler: function(),
  input_schema: map() | nil,
  name: String.t(),
  output_schema: map() | nil,
  params: [param()],
  title: String.t() | nil
}