OptionalannotationsBehavior hints for clients (MCP 2025-03-26); hints, not guarantees.
Human-readable description of what the tool does.
JSON Schema for tool input validation.
Unique tool name.
OptionaloutputJSON Schema of the result object (MCP 2025-06-18). Every tool answers
with structuredContent plus a text block with its summary; with a
schema the SDK validates structuredContent against it. All tools of
this package set one.
OptionaltitleDisplay name for clients (MCP 2025-06-18).
Execute the tool with given arguments.
Tool arguments validated against inputSchema
Optionalctx: ToolContextCancellation and progress of the MCP request (absent in direct calls)
Tool execution result
MCP Tool interface as defined by the Model Context Protocol. Every tool class of this package implements it.