Skip to main content

Module contract

Module contract 

Source
Expand description

The frozen tool contract, embedded rather than restated.

contract/refactor-tools.v1.json was recorded from the shipping JavaScript implementation. It is compiled into the binary and is the only source of the tool catalog, so the Rust host cannot drift from the schemas agents already depend on: a change to a name, a schema or a status has to change that file, and changing it is a contract-version decision.

Structs§

ResultState
A status an operation is allowed to answer with.
ToolContract
One tool exactly as the contract records it.

Functions§

catalog_value
The catalog exactly as the contract records it, ready for an MCP tools/list.
declares
Whether name is one of the frozen tools.
permits_state
Whether state is a status the contract permits an operation to answer with.
tools
Every tool the contract freezes, in contract order.