Attributes#
| Attribute | Type | Description |
|---|---|---|
tool | Tool | |
annotations | Context[Any] | |
handle | Callable[[JsonObject | None], Effect[CallToolResult | InputRequired, InvalidParams | InternalError, RequestServices]] | Invalid input is |
services | Context[Any] | None = None | The context it was registered in: its services, under the request's,
and its MCP middleware (Effect's |
Functions#
__init__#
__init__(tool, annotations, handle, services=None) -> None| Parameter | Type | Description |
|---|---|---|
tool | Tool | |
annotations | Context[Any] | |
handle | Callable[[JsonObject | None], Effect[CallToolResult | InputRequired, InvalidParams | InternalError, RequestServices]] | |
services | Context[Any] | None = None |