Skip to main content
Glama

Estimate credits

estimate_cost
Read-only

Credits a production plan would cost, before spending anything, with the workspace balance. Give items with a target id for an exact figure (the clip length and references of that scene), or a type with seconds/count for a rough one, e.g. [{type:"scene_video", seconds: 8, count: 12}].

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

Input Schema

NameRequiredDescriptionDefault
itemsYesWhat would be produced: each item has its type (scene_video, character_sheet, episode_music, render_episode…) and the id of its target.
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered structurally. The description does add meaningful behavioral context — that no credits are actually spent and that results are exact or rough depending on inputs — which goes beyond the annotations, but it says nothing about rate limits, auth, or precision/error behavior.

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 sentences, front-loaded with the cost/balance purpose before the input guidance, and the inline example does real work. The opening clause 'Credits a production plan would cost' is slightly awkward and 'with the workspace balance' is a compressed phrasing that takes a second read.

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 two-parameter, read-only estimator with a full output schema and full schema coverage, this is nearly complete — the item semantics and exact-vs-rough distinction are the things an agent could not infer from the schema alone. Only minor gaps remain around failure modes and what happens when an id is unknown.

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 earns an extra point by explaining the semantic relationship between inputs and output fidelity (id = exact, using that scene's clip length and references; type + seconds/count = rough) and by giving a concrete item example that clarifies the array shape.

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 — estimating the credit cost of a production plan — and adds the key scope qualifier 'before spending anything', which separates it from the generate_* siblings. It doesn't name an alternative tool explicitly (e.g. get_credit_balance), so differentiation is implicit rather than spelled out.

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 guidance on the two modes of use: supply a target id for an exact figure, or a type plus seconds/count for a rough one. What's missing is when to call the tool at all versus just running a generate_* job, though 'before spending anything' strongly implies pre-flight estimation.

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.