AI and MCP

How do AI agents discover capabilities?

AI agents discover Traverse capabilities through the MCP tools/list call. When your agent connects to the Traverse MCP server, it receives a list of every registered capability with its name, description, and full input schema. The agent uses this to decide which capability fits a given task.

What the agent receives

Each capability in the list includes the name from your contract's [capability] section, the description you wrote, and a JSON Schema for the input object. The agent does not need to read documentation or make assumptions. The schema tells it exactly what fields are required, their types, and any constraints like minimum values.

The discovery flow inside Traverse

The tools/list call triggers the Traverse runtime's discovering state. The runtime queries the registry for all registered capabilities and assembles the tool definitions. Capabilities that are not registered do not appear. There is no ambient discovery — everything must be explicitly registered.

Naming conventions matter

The capability name is the primary signal the agent uses to choose a tool. Write names that are specific and action-oriented: calculate_order_total rather than pricing. The description gives the agent context for when to use the capability versus alternatives. Both end up in the agent's tool context window.

Dynamic vs. static discovery

Discovery happens at agent session start. If you register a new capability while a session is running, the agent does not see it until it calls tools/list again. Some MCP clients refresh the tool list on each turn. Check your client's behavior if you need real-time registry updates.

See how the MCP server works for the full protocol details.