Skip to main content
Glama

Estimate cost

var2_estimate_cost
Read-only

Token-cost estimate for one or more planned create_* calls. Use when the user asks "how much".

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": {
      "items": "<items>"
    },
    "name": "var2_estimate_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / type / enum
      Previous value: -[
      -  "text-to-image",
      -  "image-to-image",
      -  "text-to-video",
      -  "image-to-video",
      -  "reference-to-video",
      -  "video-to-video",
      -  "audio-to-video",
      -  "create-music",
      -  "extend-music",
      -  "replace-music-section",
      -  "create-dialog",
      -  "image-to-3d",
      -  "upscale",
      -  "remove-bg",
      -  "draft-upgrade"
      -]New value: +[
      +  "text-to-image",
      +  "image-to-image",
      +  "text-to-video",
      +  "image-to-video",
      +  "reference-to-video",
      +  "video-to-video",
      +  "audio-to-video",
      +  "create-music",
      +  "cover-music",
      +  "extend-music",
      +  "replace-music-section",
      +  "create-dialog",
      +  "image-to-3d",
      +  "upscale",
      +  "remove-bg",
      +  "draft-upgrade"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / items / items / properties / params / description
      Added value: +"Same params as the create/modify call. topaz-upscale: pass image_url (or input_width + input_height) and upscale_factor for an exact quote."
  3. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / type / enum
      Previous value: -[
      -  "text-to-image",
      -  "image-to-image",
      -  "text-to-video",
      -  "image-to-video",
      -  "reference-to-video",
      -  "video-to-video",
      -  "audio-to-video",
      -  "create-music",
      -  "extend-music",
      -  "replace-music-section",
      -  "create-dialog",
      -  "image-to-3d",
      -  "upscale",
      -  "remove-bg"
      -]New value: +[
      +  "text-to-image",
      +  "image-to-image",
      +  "text-to-video",
      +  "image-to-video",
      +  "reference-to-video",
      +  "video-to-video",
      +  "audio-to-video",
      +  "create-music",
      +  "extend-music",
      +  "replace-music-section",
      +  "create-dialog",
      +  "image-to-3d",
      +  "upscale",
      +  "remove-bg",
      +  "draft-upgrade"
      +]
  4. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the bar is lower. The description adds that this is an estimate over planned calls (not a real charge), but it never says whether the quote is exact or approximate, whether calling it is itself billed, or how the token unit maps to currency.

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?

Two short sentences with the purpose front-loaded and the trigger second — no filler. It is arguably over-trimmed rather than padded, leaving out information the nested schema needs.

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

Completeness2/5

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

This is a read-only quoting tool with a nested, enum-bearing input and no output schema, so the description should explain what an estimate returns (per-item breakdown, unit, total). It says nothing about the response shape or how to interpret the estimate against an actual create_* call, leaving a real gap for a pre-flight tool.

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

Parameters2/5

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

Schema description coverage is 0% at the property level, and the single 'items' parameter hides four sub-fields (type enum, params, model_id, quantity) plus minItems 1 / maxItems 50 constraints. The phrase 'planned create_* calls' does explain that each item mirrors a create call, but the description never covers quantity, the 50-item cap, or that 'params' must be the same object the create call would take.

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?

States a specific verb and resource ('Token-cost estimate') and scopes it to 'one or more planned create_* calls', which distinguishes it from the create_* and get_*result siblings. It stops short of naming an alternative tool, but the resource and unit (tokens) are unambiguous.

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?

Provides a concrete trigger phrase ('Use when the user asks "how much"'), which implies the pre-flight/quoting scenario. It gives no exclusions, no note that the estimate should precede the actual create call, and no statement of what to do if the estimate differs from actual cost.

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