Skip to main content
Glama

Estimate the cost of a call

autoshort_estimate_cost
Read-onlyIdempotent

Price a paid call BEFORE making it: pass {tool, arguments} — the tool name and the exact arguments you would send (or just {draftId} to price autoshort_render_draft). Returns the most credits it can commit, the balance it needs, whether the balance and this key's daily cap cover it, and when it is charged. Nothing is created or charged. For a clip tool (autoshort_generate_motion_clip, autoshort_generate_image_to_video) it also returns priceClass ("standard" | "lower"), standardCredits and lowerCredits (null when none) of exactly this call, and creditsThisAccountPays = credits: quote credits, never standardCredits. approxUsd: the credits converted to USD at what one credit is worth on your plan (a conversion of the plan price; only credits are charged). Free.

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": "autoshort_estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolNoe.g. autoshort_generate_video, autoshort_render_draft, autoshort_ugc_render_batch
draftIdNoShortcut: price autoshort_render_draft for this draft (same as {tool: "autoshort_render_draft", arguments: {draftId}}).
argumentsNoThe arguments you would pass to that tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds real substance: nothing is created or charged, the call is free, and the estimate is an upper bound ('the most credits it can commit') plus when it is charged. It also discloses the clip-tool nuance that creditsThisAccountPays equals credits, never standardCredits, which an agent could otherwise get wrong.

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 instruction and the 'Free / nothing charged' reassurance early. The middle section covering priceClass, standardCredits, lowerCredits, creditsThisAccountPays, and approxUsd is a dense run-on that takes effort to parse, though nearly every clause carries information.

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

Completeness5/5

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

There is no output schema, so the description must carry the return contract — and it does: credits upper bound, required balance, coverage and daily-cap result, charge timing, clip-specific pricing fields, and the USD conversion caveat. For a free, nested-argument estimation tool this is sufficient to call it correctly.

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 baseline is 3; the description adds the important constraint that arguments must be the exact ones you would send to the target tool, and clarifies the draftId shortcut relationship. It does not document argument-shape variations per target tool, but it goes beyond the schema.

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 a paid call BEFORE making it') and immediately defines the input contract ({tool, arguments} or {draftId}). It is unmistakably a cost-estimation tool, not a generation tool, which separates it from the generate_* siblings without needing to name them.

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?

Gives clear timing guidance ('BEFORE making it') and the draft shortcut for autoshort_render_draft. It does not explicitly say when to skip this tool in favor of siblings like autoshort_get_credit_balance or autoshort_get_limits, though mentioning that it already reports balance coverage partly closes that gap.

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