Skip to main content
Glama

agent-media

quote

Read-onlyIdempotent

Price a generate_image / generate_video / generate_audio call WITHOUT running it. Pass the same input you would pass to the tool. Returns credits (1 credit = $0.01), the model that would run, and the breakdown. Costs nothing. Use it before spending when the user asked about cost, when choosing between models, or before a clip longer than a few seconds.

Input Schema

NameRequiredDescriptionDefault
kindYes
inputYesThe exact arguments you would pass to generate_<kind>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds value beyond them by stating the call is free ('Costs nothing'), that it returns credits at a stated conversion (1 credit = $0.01), the model that would run, and a breakdown. The 'Pass the same input' contract is also a behavioral rule not captured by annotations.

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, front-loaded with the core action and the 'WITHOUT running it' distinction in the first line, followed by return shape and then usage triggers. No filler.

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?

With no output schema, the description supplies the return contents (credits, model, breakdown) that would otherwise be unknown. It also covers cost and the input-passthrough contract, so an agent has everything needed for a 2-param preview tool.

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 50%, with the `kind` enum and the `input` object already described structurally. The description reinforces the key semantic constraint that `input` must be exactly the arguments you would pass to generate_<kind>, and semantically ties kind to the corresponding sibling tool, which is meaningful beyond the schema.

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 (price) and resource (a generate_* call) and explicitly distinguishes itself from the sibling generate_image/generate_video/generate_audio tools by saying it runs nothing. An agent can tell instantly what it does and what it does not do.

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 trigger conditions: before spending when the user asks about cost, when choosing between models, or before a clip longer than a few seconds. It also names the alternative behavior implicitly (call generate_* directly to actually run), leaving nothing to inference.

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