Method
queryMcpServer POST
Copy POST

Query a Remote MCP server. For a given task, it runs the required tools of the MCP

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes task str a comprehensive description of the task to perform using the MCP server tools.
No serverName str The name of the MCP server.
No mcpServerConnectionId str connection id of the MCP server to query.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result McpServerQueryResult
KEY TYPE Description
output dict The execution logs as well as the final output of the MCP server query

Exceptions:

TYPE WHEN
DataNotFoundError

mcpServerConnectionId is not found.

Language: