Optionaloptions: ToolDiscoveryOptionsUse DiscoverTools.
Discovers all available tools across all active connections
Optionaloptions: ToolDiscoveryOptionsDiscovery options for filtering tools
Array of tool definitions
OptionalconnectionId: stringUse ExecuteTool.
Executes a tool by its ID or name
Tool ID (with connection prefix) or just the tool name
Arguments to pass to the tool
OptionalconnectionId: stringOptional connection ID (required if using tool name only)
Tool execution result
Gets a tool by its ID or name
Tool ID or name
Tool definition or undefined
Optionaloptions: ToolDiscoveryOptionsUse GetToolsForAnthropic.
Gets tools formatted for Anthropic's tool use API
Optionaloptions: ToolDiscoveryOptionsDiscovery options
Array of Anthropic tool definitions
Optionaloptions: ToolDiscoveryOptionsUse GetToolsForOpenAI.
Gets tools formatted for OpenAI's function calling API
Optionaloptions: ToolDiscoveryOptionsDiscovery options
Array of OpenAI function definitions
Checks if a specific tool is available
Tool ID or name
True if the tool is available
Use RefreshCache.
Forces a refresh of the tool cache
Agent Tool Adapter
Provides a high-level interface for AI agents to discover and use MCP tools. Handles connection management, tool format conversion, and execution.
Example