Skip to main content
Glama

Cost estimate

tool_cost_estimate
Read-only

Free. The exact price of a paid tool for given arguments, asked from the same door that will charge. Pass the result as confirm_cents. Studio steps (studio_render, ai_short_create) answer the server quote; the other gate steps (studio_voice, studio_visual, studio_music, studio_create_from_audio) answer cost_cents null: call them with confirm_cents: 0 to learn the price. song_analyze / music_video_director: free or 3¢.

Args: tool: generate_image | generate_thumbnail | generate_video_clip | generate_music | generate_voiceover | transcribe_audio | studio_render (arguments.project_id) | ai_short_create (arguments.plan) | any other tool (a free tool answers 0). arguments: that tool's arguments, without confirm_cents / idempotency_key / quote_only.

Returns: {ok, tool, cost_cents, price_cents, confirm_cents, notes?}

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": {
      "tool": "<tool>"
    },
    "name": "tool_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYes
argumentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that while adding real context: the call is free, prices come from the charging endpoint itself, some tools yield null cost_cents and require a second call, and song_analyze/music_video_director are free or 3¢. It stops short of covering edge cases such as error behavior for unknown tools or whether quotes expire, which keeps it off a 5.

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 key fact (free, exact price, pass as confirm_cents) and organized into Args and Returns sections with no filler. The middle sentence about studio versus other gate steps is dense and slightly convoluted, but every clause carries operational 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?

Despite having no output schema, the description documents the return shape ({ok, tool, cost_cents, price_cents, confirm_cents, notes?}) and explains the meaning of each field's variability across tools. Combined with the argument exclusions and per-tool quirks, an agent has everything needed to invoke and interpret this tool correctly.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden and does so: it enumerates the valid tool values, notes the special argument shapes (arguments.project_id for studio_render, arguments.plan for ai_short_create), and explains that arguments is the target tool's own arguments minus confirm_cents, idempotency_key, and quote_only.

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: it returns the exact price of a paid tool for given arguments, sourced from the same endpoint that will charge. It further distinguishes itself from the paid generation tools by naming which ones it covers and noting that any free tool answers 0, so an agent can tell what this tool is and is not for.

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 when-to-use guidance: call it first, then pass the returned value as confirm_cents. It also gives per-target routing instructions (studio_render and ai_short_create return the server quote; studio_voice, studio_visual, studio_music, studio_create_from_audio return cost_cents null and should be called with confirm_cents: 0), which is actionable rather than implied.

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