CallToolResult

mcp.schema.result.CallToolResult
See theCallToolResult companion object
final case class CallToolResult(content: List[Content], isError: Option[Boolean]) extends Result

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.

Attributes

Companion
object
Source
CallToolResult.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product