import type { RequestContext } from '@mastra/core/request-context'; import type { Body } from '../route-types.generated.js'; import type { ClientOptions, McpToolExecuteResponse, McpToolInfo } from '../types.js'; import { BaseResource } from './base.js'; /** * Represents a specific tool available on a specific MCP server. * Provides methods to get details and execute the tool. */ export declare class MCPTool extends BaseResource { private serverId; private toolId; constructor(options: ClientOptions, serverId: string, toolId: string); /** * Retrieves details about this specific tool from the MCP server. * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing the tool's information (name, description, schema). */ details(requestContext?: RequestContext | Record): Promise; /** * Executes this specific tool on the MCP server. * @param params - Parameters for tool execution, including data/args and optional requestContext. * On a 2026-07-28 server a tool can answer `{ status: 'suspended', suspendPayload, resumeSchema }`; * call again with the same `data` plus `resumeData` (matching `resumeSchema`) and the echoed * `suspendPayload` to continue it. * @returns Promise containing `{ result }`, or the suspended shape described above. */ execute(params: Body<'POST /mcp/:serverId/tools/:toolId/execute'> & { requestContext?: RequestContext | Record; }): Promise; } //# sourceMappingURL=mcp-tool.d.ts.map