Tool

mcp.schema.McpSchema.Tool
final case class Tool[F[_], T](name: String, description: String, execute: T => F[CallToolResult])(implicit evidence$1: JsonSchema[T], evidence$2: Decoder[T]) extends ToolSchema

Represents a tool that the server provides. Tools enable servers to expose executable functionality to the system. Through these tools, you can interact with external systems, perform computations, and take actions in the real world.

Value parameters

description

A human-readable description of what the tool does. This can be used by clients to improve the LLM's understanding of available tools.

name

A unique identifier for the tool. This name is used when calling the tool.

Attributes

Source
McpSchema.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ToolSchema
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def decode(arguments: Json): Result[T]

Attributes

Source
McpSchema.scala
override def inputSchema: Json

Attributes

Definition Classes
Source
McpSchema.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product