Skip to main content

Module tool

Module tool 

Source
Expand description

How a tool describes itself.

Soma sits on both sides of this: it publishes tools over MCP (soma-mcp), and it calls tools on a model’s behalf (soma-llm). Those are the same description, so they are the same type — describe a tool once and it works in either direction.

The wire form is MCP’s (inputSchema, camelCase), because that is the one with a specification. Providers that want a different envelope build it at their own edge, which is where provider shape belongs.

Structs§

ToolSpec
A tool’s name, purpose, and argument schema.