Skip to main content
Glama

Estimate credits

estimate_generation
Read-onlyIdempotent

Use before anything likely to cost over 100 credits, or whenever the user asks what something costs. Free. Returns the credits a call would reserve and how the price is worked out.

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

Input Schema

NameRequiredDescriptionDefault
countNo
modelNoModel id; the category default if omitted.
secondsNoSeconds of music or sound.
categoryNo
durationNoSeconds of video.
charactersNoCharacters of speech.
resolutionNoTier, e.g. 1k, 2k, 720p, 1080p.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description still adds real context beyond them: the call is free and it returns both the reserved amount and the pricing breakdown, which tells the agent this is a safe, side-effect-free probe.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the usage trigger front-loaded, then the cost-free property, then the return shape. Nothing is redundant or padded.

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?

With no output schema, the description appropriately summarizes what comes back (reserved credits and the price breakdown). For a simple, side-effect-free estimator this is nearly complete, with the only gap being guidance on which parameter combinations are valid for each category.

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 71% across seven parameters, so the schema carries most of the load. The description only implies that you pass the same inputs as the call being priced (category, model, seconds, duration, resolution) without explaining any of them, so it adds little beyond the structured fields.

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?

The description gives a specific verb and resource: it returns the credits a call would reserve and explains how the price is derived. That clearly distinguishes it from a balance lookup, though it never names get_credits_balance or any other sibling as the alternative for balance-only questions.

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?

It provides a concrete trigger ('anything likely to cost over 100 credits') plus a user-intent trigger ('whenever the user asks what something costs'), which is strong when-to-use guidance. It stops short of explicit when-not conditions or naming sibling tools for related cost questions.

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.