Skip to main content
Glama

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

NameRequiredDescriptionDefault
jsonNo
chainNo
roundsNo
claude_routeNowhere 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_formNotitle 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_retentionNo"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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.4
    • addedInput schema / properties / claude_route
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / persona_form
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / rounds
      Added value: +{
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / zero_retention
      Added value: +{
      +  "description": "\"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.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.8.3
    • removedInput schema / required
      Removed value: -[
      -  "chain"
      -]
  3. First observedv0.8.1

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does substantial work: it declares that no model is invoked, that the default chain is named in the answer, and that json:true changes the shape of the response and enumerates what that document contains (floor, expected, upper estimate, per-row data, missing API keys, callCeiling). The notable gap is the default text output, which is never characterized.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the one-line purpose before any parameter detail, and the ordering (purpose, chain, json) follows how an agent would fill the arguments. The json sentence is a long run-on stack of parentheticals that could be broken up, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no annotations and no output schema, the description supplies the pricing semantics and most of the return-value detail an agent needs. The uncharacterized text-mode output and the undocumented rounds parameter keep it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents claude_route, persona_form and zero_retention in depth but leaves json, chain and rounds bare, and the description fills in the two most important of those: chain is a name not a path with a default, and json selects a single JSON document with named contents. rounds and its 1-5 bound remain unexplained by either source, which is the only real shortfall.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Price a chain without calling any model" gives a specific verb (price), resource (a chain) and an explicit non-effect (no model calls), which immediately separates it from start_run and the other execution siblings. An agent can tell this is a cost-estimation tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the key usage facts: chain must be a name as list_chains shows it and never a path, and omitting it prices the default chain. What it does not do is explicitly say when to prefer it over start_run (e.g. "call before starting a run"), so the contrast with actually running is implied by "without calling any model" rather than stated as routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.