GitHub

ToolEntry

API reference for ToolEntry.

Attributes

AttributeTypeDescription
toolTool
annotationsContext[Any]
handleCallable[[JsonObject | None], Effect[CallToolResult | InputRequired, InvalidParams | InternalError, RequestServices]]

Invalid input is InvalidParams, a failed execution InternalError; InputRequired asks a 2026-07-28 client to retry with input.

servicesContext[Any] | None = None

The context it was registered in: its services, under the request's, and its MCP middleware (Effect's services).

Functions

__init__

__init__(tool, annotations, handle, services=None) -> None
ParameterTypeDescription
toolTool
annotationsContext[Any]
handleCallable[[JsonObject | None], Effect[CallToolResult | InputRequired, InvalidParams | InternalError, RequestServices]]
servicesContext[Any] | None = None