putty
MCPContracts

Contracts

The Contract & Hook Studio's preset catalogue, with each preset's parameters, defaults, and audit label.

The Contracts category is one tool, contract_presets: the catalogue of every contract the studio can generate, with each preset's parameters in constructor order, their types and defaults, the OpenZeppelin files it is built on, its licence, its wizard feature flags, and its audit label.

It takes no arguments, is public, and is free. Call it before generating anything — params is per-preset, so the catalogue is the only place to read a preset's shape from. A required parameter that is missing is refused naming it; an optional one falls back to its declared default.

audit is the label the deploy path will enforce for a clean generation of that preset. It is a label on putty's own template, not an external audit of anything a user has written.

Generation is not here, on purpose

POST /contracts/generate debits the caller's credits for the generate, the compile, and the tests together. It is not exposed as an MCP tool, and the omission is a decision:

Putty's only gate for work that spends money is the run approval path — a step the plan marks as cost does not run until a person says yes. A direct MCP tool call has no run and therefore no approval to ask through. Exposing generation here would mean one of two wrong things: charge without asking, or silently not charge and hand out metered work for free.

A missing tool is the honest third option. Ask the person to run the deploy path, which prices the whole thing together.

On this page