Tool

mcp.schema.Tool
See theTool companion object
sealed trait Tool[F[_], 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.

Attributes

Companion
object
Source
Tool.scala
Graph
Supertypes
trait ToolSchema
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

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

Attributes

Source
Tool.scala
def execute: T => F[CallToolResult]

Attributes

Source
Tool.scala

Inherited and Abstract methods

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

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

Attributes

Inherited from:
ToolSchema
Source
Tool.scala

Attributes

Inherited from:
ToolSchema
Source
Tool.scala
def name: String

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

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

Attributes

Inherited from:
ToolSchema
Source
Tool.scala