Module tools

Module tools 

Source
Expand description

Types for the MCP tool-calling system.

This module defines the data structures for defining tools, their input/output schemas, and the requests and responses used to list and execute them, as specified by the MCP standard.

Structs§

CallToolRequest
A request to execute a specific tool.
CallToolResult
The result of a CallToolRequest.
ListToolsRequest
A request to list the available tools on a server.
ListToolsResult
The result of a ListToolsRequest.
Tool
Represents a tool that can be executed by an MCP server, as per the MCP 2025-06-18 specification.
ToolAnnotations
Provides additional, optional metadata about a tool.
ToolInputSchema
Defines the structure of the arguments a tool accepts, as a JSON Schema object.
ToolOutputSchema
Defines the structure of a tool’s successful output, as a JSON Schema object.