Module tools

Source
Expand description

Tool-related message types for MCP tool discovery and execution.

This module provides types for:

  • Tool discovery (listing available tools)
  • Tool execution (calling tools with parameters)
  • Tool schema definitions (parameter validation)
  • Tool result handling (success/error responses)

Structs§

CallToolRequest
Request to call a tool with specific arguments.
CallToolResponse
Response from a tool call operation.
ListToolsRequest
Request to list available tools from the server.
ListToolsResponse
Response containing the list of available tools.
ResourceReference
Reference to a resource.
Tool
Tool definition including schema and metadata.
ToolListChangedNotification
Notification that the list of tools has changed.

Enums§

ToolResult
Result content from a tool execution.