Tool surfaces

Register a tool

CompactMCP is a FastMCP server with schema transformations. Start here for named tools with typed arguments. AgentMCP adds compact discovery. Applications choose which tools and which profile to expose.

Client goal Compact tool
Find tools by name or domain discover_tools
Inspect a tool's signature or ask for its full descriptor tool_help
Call an advertised read operation read_game_tool
Call an advertised edit operation edit_game_tool

Clients that need every native typed schema can use an adapter’s full profile when offered. In the compact profile, request tool_help with full=true to retrieve a single descriptor.

Share a CLI and batch runner

BiomeCLI accepts a ToolProvider. The provider supplies descriptors, calls tools, selects connection behavior and owns application-specific output. The shared CLI handles list, describe, call and batch.

The batch executor runs inputs in order and resolves references to earlier named results. Use the executor tests as executable examples.

A command's textual output and process status are separate. Return a typed result and verify the evidence needed to declare success before returning OK. If a batch stops early, inspect its step results before deciding whether to repeat a mutation.