Skip to main content
Glama

Estimate Cost

estimate_cost

Calculate image generation, editing, or analysis costs by model and operation before running jobs, showing per-image and per-call pricing to support budgeting.

Instructions

Estimate the cost of an image operation.

Shows pricing per model per operation to help with budgeting.

Input Schema

NameRequiredDescriptionDefault
modelNoModel to estimate for (default: all models that support the operation). Image models price generate/edit per image at 1K; text models price analyze per call.
operationYes"generate", "edit", or "analyze"
number_of_imagesNoNumber of images (default: 1)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / model / description
      Previous value: -"Model to estimate for (default: all models)"New value: +"Model to estimate for (default: all models that\nsupport the operation). Image models price generate/edit\nper image at 1K; text models price analyze per call."
  2. First observedv0.5.4

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It explains that the tool shows pricing per model per operation, but does not explicitly state that it is a read-only estimate, that it does not execute the operation, or how exact the estimate is.

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?

The description is two short sentences, front-loaded with the core purpose and followed by useful budgeting context. There is no unnecessary wording.

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 simple three-parameter, read-only estimation tool with a complete input schema and an output schema, the description is largely sufficient. The main remaining gap is the lack of explicit behavioral clarification that this estimates cost rather than performing the image operation.

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 description coverage is 100%, so the schema already documents model, operation, and number_of_images in detail. The description adds only the high-level idea of 'per model per operation' pricing, which is a baseline contribution rather than new parameter meaning.

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?

The description gives a specific verb-and-resource pair: 'Estimate the cost of an image operation.' This is clearly distinct from sibling tools that actually generate, edit, or analyze images, though it does not explicitly name those siblings as alternatives.

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 phrase 'to help with budgeting' implies the tool is used before or alongside image operations, but the description does not explicitly state when to use it versus alternatives or any exclusions.

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