ConnectorToolCallResponse

March 9, 2026 ยท View on GitHub

Response from calling an MCP tool.

We override mcp_types.CallToolResult because:

  • Models only support content, not structuredContent at top level
  • Downstream consumers (le-chat, etc.) need structuredContent/isError/_meta via metadata

SYNC: Keep in sync with Harmattan (orchestrator) for harmonized tool result processing.

Fields

FieldTypeRequiredDescription
contentList[models.ConnectorToolCallResponseContent]:heavy_check_mark:N/A
metadataOptionalNullable[models.ConnectorToolCallMetadata]:heavy_minus_sign:N/A
__pydantic_extra__Dict[str, Any]:heavy_minus_sign:N/A