Class CallToolRequestParams
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the parameters used with a ToolsCall request from a client to invoke a tool provided by the server.
public sealed class CallToolRequestParams : RequestParams
- Inheritance
-
CallToolRequestParams
- Inherited Members
Remarks
The server will respond with a CallToolResult containing the result of the tool invocation. See the schema for details.
Properties
Arguments
Gets or sets optional arguments to pass to the tool when invoking it on the server.
[JsonPropertyName("arguments")]
public IDictionary<string, JsonElement>? Arguments { get; set; }
Property Value
Remarks
This dictionary contains the parameter values to be passed to the tool. Each key-value pair represents a parameter name and its corresponding argument value.
Name
Gets or sets the name of the tool to invoke.
[JsonPropertyName("name")]
public required string Name { get; set; }
Property Value
Task
Gets or sets optional task metadata to augment this request with task execution.
[JsonPropertyName("task")]
public McpTaskMetadata? Task { get; set; }
Property Value
Remarks
When present, indicates that the requestor wants this operation executed as a task. The receiver must support task augmentation for this specific request type.