Skip to main content
Glama

estimate_cost

Read-only

Price one or more generations exactly, without submitting anything, and compare with the user's balance. Pass media and items for generate_image / generate_video, or tool and input to price an editing tool (relight_image, relight_video, upscale_image, upscale_video, reframe_video, extend_video, edit_video, create_depth_map) with the same arguments you would call it with. For an editing tool the answer carries max_coins (the most the job can cost) and the confirmation and affordability checks use it; nothing is submitted or charged. Pricing an editing tool inspects the media exactly as that tool does, needs the same permission to generate, and is limited like the tool. Generating through an AI assistant is charged in VerseIn coins. Unlimited-plan allowances do not apply here.

Input Schema

NameRequiredDescriptionDefault
toolNoan editing tool to price instead of generations (with input)
inputNothe arguments that tool takes, exactly as for calling it (request_id and confirmation_token are ignored)
itemsNo1 to 12 generations to price (with media)
mediaNoimage or video (with items; not with tool)

Output Schema

NameRequiredDescriptionDefault
errorNopresent only when the call failed
itemsNo
balanceYes
invalidNo
max_coinsNoediting tools only: the most the job can cost (a job may switch to a backup model); equals total_cost_coins when the price is final. requires_confirmation and affordable are judged on it
affordableYes
billing_noteYes
price_verifiedNoediting tools only: false when the price is checked again at submit and some settings may be refused then
total_cost_coinsYes
requires_confirmationYestrue when generating needs a confirmation_token (the generate call returns one with needs_confirmation)
confirmation_threshold_coinsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description goes further by disclosing that editing-tool pricing inspects the media exactly as the real tool does, needs the same generate permission, and is limited like the tool. It also explains that the result carries max_coins used by confirmation and affordability checks — real behavioral context beyond the annotations. Minor gap: no statement about what a pricing failure or over-limit request looks like.

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?

Front-loaded with the core action and then the two calling modes; every sentence carries information. It is dense and slightly long for a single description, but nothing is padding.

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?

With an output schema present, the description need not explain return values, yet it still calls out max_coins and the affordability comparison, so the agent understands what the call is for. Complete enough for correct invocation, with only failure-mode detail left out.

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?

Schema coverage is 100%, so the schema carries parameter documentation. The description still adds meaning the schema does not: that tool and input are alternatives to media and items, and that input accepts the same arguments as the tool you would call, with request_id and confirmation_token ignored. That is genuine semantic guidance rather than repetition.

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?

States a specific verb and resource — price generations exactly, without submitting — and names its relationship to generate_image / generate_video and the editing tools. An agent can tell this apart from the sibling generation tools immediately because the description says it is the dry-run counterpart.

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

Usage Guidelines5/5

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

Gives explicit routing: pass media and items for generate_image / generate_video, or tool and input to price an editing tool, and names all eight editing tools. It also flags the exclusions an agent would otherwise get wrong (nothing is submitted or charged, unlimited-plan allowances do not apply).

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.

Resources