Class MCPToolCall
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
Error
The error from the tool call, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("error")]
public string Error { get; }
Property Value
Id
The unique ID of this response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }
Property Value
Name
The name of the tool that was run.
[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; }
Property Value
Object
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }
Property Value
Output
The output from the tool call.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("output")]
public string Output { get; }
Property Value
ServerLabel
The label of the MCP server running the tool.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("server_label")]
public string ServerLabel { get; }
Property Value
Status
The status of the response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }
Property Value
Type
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }