Skip to main content
Glama

Open Treasure

Estimate exact credit cost before running

estimate_cost
Read-only

Calculate the exact upfront credit cost and approximate USD price for an Open Treasure video, image, or text model at a specific resolution and duration.

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

Input Schema

NameRequiredDescriptionDefault
modelYesModel id or alias: wan-3.0, seedance-2.0, seedance-2.5, nano-banana-2, nano-banana-pro, gpt-image-2.5-flare-medium, gpt-image-2.5-flare-high, deepseek-v4.1-flash, deepseek-v4-pro.
durationNoOptional clip length in seconds (4-15 for Wan 3.0 / Seedance 2.0; 4-30 for Seedance 2.5).
resolutionNoOptional resolution (e.g. 480p, 720p, 1080p for video; 1k, 2k, 4k for image).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered, and the description adds a genuinely useful nuance: credits are exact while USD is approximate. Since there is no output schema, it should say more about the shape of the returned figures (per-item vs total, currency assumptions), which it does not.

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?

A single dense sentence with the verb and both outputs front-loaded and no filler. It is efficient, though it packs two distinct cost notions into one clause without separating them.

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?

For a read-only cost calculator with no output schema, the description covers what is computed but leaves the returned value shape and the behavior when optional pricing inputs are omitted unspecified. Given the tool's sole job is producing numbers, those gaps matter.

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

Parameters3/5

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

Schema description coverage is 100%, so model ids, duration ranges and resolution values are all documented in the schema; baseline 3 applies. The description adds only that duration/resolution determine the price, and notably does not explain what happens when the optional duration or resolution is omitted despite describing the price as being "at a specific resolution and duration."

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 concrete verb ("Calculate") plus two resources (credit cost and USD price) and the scoping inputs (model type, resolution, duration), so an agent knows exactly what it gets back. It does not differentiate itself from the sibling get_pricing, which an agent would have to disambiguate by other means.

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?

Usage is only implied by the phrase "upfront credit cost" and the title's "before running" – the description itself never says to call this before a generation job, nor does it exclude or point to get_pricing as an alternative. An agent can infer intent but gets no explicit when/when-not guidance.

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.