MCP tool module definition with configuration and handler function.
Represents a registered tool in the Model Context Protocol server that can be
invoked by MCP clients. Tools are the primary mechanism for executing operations
in response to client requests.
Remarks
This is the runtime representation of an MCP tool after registration. The handler
receives JSON-serializable arguments validated against inputSchema and returns
a CallToolResult validated against outputSchema.
Tools are typically created using tool factory functions and registered with the
MCP server during initialization.
MCP tool module definition with configuration and handler function.
Represents a registered tool in the Model Context Protocol server that can be invoked by MCP clients. Tools are the primary mechanism for executing operations in response to client requests.
Remarks
This is the runtime representation of an MCP tool after registration. The handler receives JSON-serializable arguments validated against inputSchema and returns a CallToolResult validated against outputSchema.
Tools are typically created using tool factory functions and registered with the MCP server during initialization.
Example
See
McpPrompt for prompt module definition