Class CallToolResponse
- Namespace
- ModelContextProtocol.Protocol.Types
- Assembly
- ModelContextProtocol.dll
The server's response to a tool call.
Any errors that originate from the tool SHOULD be reported inside the result
object, with isError
set to true, not as an MCP protocol-level error
response. Otherwise, the LLM would not be able to see that an error occurred
and self-correct.
However, any errors in finding the tool, an error indicating that the server does not support tool calls, or any other exceptional conditions, should be reported as an MCP error response. See the schema for details
public class CallToolResponse
- Inheritance
-
CallToolResponse
- Inherited Members
Properties
Content
The server's response to a tools/call request from the client.
[JsonPropertyName("content")]
public List<Content> Content { get; set; }
Property Value
IsError
Whether the tool call was unsuccessful. If true, the call was unsuccessful.
[JsonPropertyName("isError")]
public bool IsError { get; set; }