Share via


ItemMcpToolCall interface

An invocation of a tool on an MCP server.

Extends

Properties

approval_request_id

The ID of the approval request associated with this tool call, if any.

arguments

A JSON string of the arguments passed to the tool.

error

An error message, if any occurred during the tool call.

id

The unique ID of the tool call.

name

The name of the tool that was run.

output

The output from the tool call.

server_label

The label of the MCP server running the tool.

status

The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.

type

The type of the item. Always mcp_call.

Property Details

approval_request_id

The ID of the approval request associated with this tool call, if any.

approval_request_id?: string

Property Value

string

arguments

A JSON string of the arguments passed to the tool.

arguments: string

Property Value

string

error

An error message, if any occurred during the tool call.

error?: string

Property Value

string

id

The unique ID of the tool call.

id: string

Property Value

string

name

The name of the tool that was run.

name: string

Property Value

string

output

The output from the tool call.

output?: string

Property Value

string

server_label

The label of the MCP server running the tool.

server_label: string

Property Value

string

status

The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.

status?: MCPToolCallStatus

Property Value

type

The type of the item. Always mcp_call.

type: "mcp_call"

Property Value

"mcp_call"