Table of Contents

Class MCPToolCall

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll
public sealed class MCPToolCall : BaseResponse, IResponseItem, IServerSentEvent, IListItem
Inheritance
MCPToolCall
Implements
Inherited Members

Properties

Arguments

A JSON string of the arguments to pass to the function.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("arguments")]
public string Arguments { get; }

Property Value

string

Error

The error from the tool call, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("error")]
public string Error { get; }

Property Value

string

Id

The unique ID of this response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }

Property Value

string

Name

The name of the tool that was run.

[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; }

Property Value

string

Object

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }

Property Value

string

Output

The output from the tool call.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("output")]
public string Output { get; }

Property Value

string

ServerLabel

The label of the MCP server running the tool.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("server_label")]
public string ServerLabel { get; }

Property Value

string

Status

The status of the response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }

Property Value

ResponseStatus

Type

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }

Property Value

ResponseItemType