Skip to main content
Glama

Estimate run cost

run_estimate
Read-only

Price a run (free, no side effects). Costs are in credits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_id": "<document_id>"
    },
    "name": "run_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
block_idsNoRun only these block ids (blocks[].id in document_content_get); omit for the whole document.
document_idYesThe language version to run the workflow over.
template_idNoA built-in template (id from workflow_template_list). Pass exactly one of workflow_id or template_id.
workflow_idNoA saved workflow (id from workflow_list). Pass exactly one of workflow_id or template_id.
updated_onlyNoTranslate only blocks whose source changed since their current translation; review steps keep full scope (default false).
parallel_modeNoLarge-parallel mode with shared glossary/style-guide passes, for long documents (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / block_ids / description
      Added value: +"Run only these block ids (blocks[].id in document_content_get); omit for the whole document."
    • addedInput schema / properties / document_id / description
      Added value: +"The language version to run the workflow over."
    • addedInput schema / properties / parallel_mode / description
      Added value: +"Large-parallel mode with shared glossary/style-guide passes, for long documents (default false)."
    • addedInput schema / properties / template_id / description
      Added value: +"A built-in template (id from workflow_template_list). Pass exactly one of workflow_id or template_id."
    • addedInput schema / properties / updated_only / description
      Added value: +"Translate only blocks whose source changed since their current translation; review steps keep full scope (default false)."
    • addedInput schema / properties / workflow_id / description
      Added value: +"A saved workflow (id from workflow_list). Pass exactly one of workflow_id or template_id."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description still adds real value by clarifying that the call itself is free and that returned costs are denominated in credits. It stops short of explaining how the estimate is computed or whether it can drift from the actual charge.

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

Conciseness5/5

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

Two short sentences, with the core action front-loaded and the cost unit appended as a caveat. Nothing is wasted or buried.

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

Completeness3/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 output schema, the description says little about what comes back beyond the credit unit, and it does not relate the estimate to the actual charge from run_start. It is adequate to call correctly but leaves the agent guessing about the result shape.

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

Parameters3/5

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

Schema coverage is 100%, so all six parameters are already documented in the schema, including the workflow_id/template_id exclusivity rule. The description adds no parameter-level meaning beyond that, which meets the baseline of 3.

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

Purpose4/5

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

"Price a run" gives a specific verb and resource that clearly separates this from run_start or run_get. It does not, however, distinguish it from the sibling group_run_estimate, so an agent must infer the scope difference from the name alone.

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

Usage Guidelines3/5

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

The parenthetical "free, no side effects" implies this is a safe pre-flight check to call before run_start, but the description never states that explicitly or names the alternative. Usage is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.