Resource

tool

A tool that can be executed

resource tool;

F info

info: func() -> tool-info;

Get the tool's metadata

F execute

execute: func(ctx: context, arguments: json) -> result​<tool-result, mcp-error>;

Execute the tool with given arguments and return the result Tools should construct and return complete results