dry_run
Estimate a chain's cost before running it: get floor, expected and upper prices, per-row detail and missing API keys, with no model calls.
Instructions
Price a chain without calling any model. chain is a chain name as list_chains shows it, never a path; leave it out to price the default chain (the answer names it). json: true returns one JSON document instead of text: the floor, the expected price and the upper estimate (every planned call at the whole output allowance of its seat, with re-asks and network retries at their expected cost), every row, which seat lacks which API key, and, for a layered chain with a round limit of its own (maxOverseerRounds and layerRevisions; the shipped planning chains have none and get no such figure), callCeiling: the most Council calls the chain's rules allow, counted in calls and not in money, with no continue added.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dry_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | ||
| chain | No | ||
| rounds | No | ||
| claude_route | No | where the chain's Claude seats are called: "auto" (the default: straight to Anthropic, or through OpenRouter when only an OpenRouter key is set), "anthropic", "openrouter" or "session". With "session" every Claude seat is answered by the person's own Claude Code session, one session for each seat: the run pauses at each such seat the way it does at an external stage, and those seats cost no API money. Only the person chooses it; leave it out unless the person chose a route. A run that began as a session run stays one when nothing is typed. | |
| persona_form | No | title or voice: whether every named seat of the chain is given its title or its voice for this run (the CLI's --persona-form). The chain must already switch seat_personas on, or the call is refused. Left out: the chain's own form. A resume keeps the form its run began with. | |
| zero_retention | No | "on" or "off": with "on" every call through OpenRouter names only the hosts that OpenRouter's list gives for its model as zero-retention hosts, and a seat no such host serves is named and the start refused. Seats called straight to their lab are not covered. Leave it out unless the person chose; a run that began with it on keeps it. |