BasaltTool class abstract interface Getting Started

One MCP tool exposed by the Basalt server: its declaration and behavior.

Each tool is its own class so it owns a single operation; ToolRegistrar wires them onto the McpServer behind a uniform error guard.

Implementers

Properties

annotations → ToolAnnotations
Behavioral hints (read-only, destructive, ...).
no setter
description String
Human-readable description shown to the agent.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputSchema → ToolInputSchema
Schema describing the tool's arguments.
no setter
name String
Name the agent calls the tool by (e.g. get_schema).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Map<String, Object?> args) Future<CallToolResult>
Runs the tool against decoded args and returns its result.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited