ToolDescriptor

Tool descriptor for the Web Model Context API.

Tools are functions that AI models can call to perform actions or retrieve information. This interface uses JSON Schema for input validation.

https://spec.modelcontextprotocol.io/specification/server/tools/

Properties

Link copied to clipboard

Optional behavior hints for LLM planners.

Link copied to clipboard
abstract var description: String

Human-readable summary of what the tool does.

Link copied to clipboard

Tool execution function.

Link copied to clipboard
abstract var inputSchema: InputSchema

JSON Schema describing accepted input arguments.

Link copied to clipboard
abstract var name: ToolName<TArgs>

Unique tool identifier.

Link copied to clipboard
abstract var outputSchema: InputSchema?

Optional JSON Schema describing output payload shape.