Tool Calls
Tool calls represent individual tool invocations within a session. They track the input, output, and status of each tool execution.
The Tool Call object
object"session.tool_call"requiredidstringrequiredtool_keystringrequiredtype"tool_call" | "mcp_control" | "mcp_message" | "unknown"requiredstatus"waiting_for_response" | "failed" | "succeeded"requiredsource"client" | "provider"requiredtransport"tool_call" | "mcp" | "metorial_protocol" | "system"requiredsession_idstringrequiredmessage_idstringrequiredsession_provider_idstringrequirednullableconnection_idstringrequirednullableprovider_run_idstringrequirednullablesender_participantobjectrequirednullableresponder_participantobjectrequirednullabletoolobjectrequirederrorobjectrequirednullableinputRecord<string, any>requirednullableoutputRecord<string, any>requirednullablecreated_atdaterequiredEndpoints
List all tool calls
/tool-callsReturns a paginated list of tool calls across all sessions.
Query parameters
session_template_idstring or string[]optionalFilter by session template ID(s)
session_provider_idstring or string[]optionalFilter by session provider ID(s)
provider_idstring or string[]optionalFilter by provider ID(s)
provider_deployment_idstring or string[]optionalFilter by provider deployment ID(s)
provider_config_idstring or string[]optionalFilter by provider config ID(s)
provider_auth_config_idstring or string[]optionalFilter by provider auth config ID(s)
agent_idstring or string[]optionalFilter by agent ID(s)
actor_idstring or string[]optionalFilter by identity actor ID(s)
consumer_idstring or string[]optionalFilter by consumer ID(s)
identity_idstring or string[]optionalFilter by identity ID(s)
agent_instance_idstring or string[]optionalFilter by agent instance ID(s)
tool_idstring or string[]optionalFilter by tool ID(s)
created_atobjectoptionalFilter tool call creation time by date range
updated_atobjectoptionalFilter tool call last update time by date range
Example request
Get tool call
/tool-calls/:tool_call_idRetrieves a specific tool call by ID.
Path parameters
tool_call_idstringrequiredThe unique identifier for the tool_call
Example request
Create tool call
/tool-callsCreates a new tool call in a session by invoking a specific tool.
Request body
tool_idstringrequiredThe ID of the tool to call
inputRecord<string, any>requiredInput data to pass to the tool
metadataRecord<string, any>optionalOptional metadata for the tool call
session_idstringrequiredThe ID of the session to which this tool call belongs