Noizu.MCP.Types.Tool (Noizu MCP v0.1.3)

Copy Markdown View Source

An MCP tool definition as advertised by tools/list.

annotations accepts snake_case atom keys (:read_only_hint, :destructive_hint, :idempotent_hint, :open_world_hint, :title) and renders them in the camelCase wire format.

Summary

Types

t()

@type t() :: %Noizu.MCP.Types.Tool{
  annotations: map() | keyword() | nil,
  description: String.t() | nil,
  icons: [map()] | 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()

to_map(tool)

@spec to_map(t()) :: map()