Skip to main content
Glama

quote

Read-only

What a generation would cost, in credits, without making it. Tell the user before generating.

Input Schema

NameRequiredDescriptionDefault
modelYesthe model id from list_models
promptNowhat to make; for speech models the text to read
parametersNothe model's settings by key (get_model); any left out take the model's default
referencesNouploaded files the model works from

Output Schema

NameRequiredDescriptionDefault
usdYescredits in US dollars at 1 credit = 0.01 USD
exactYestrue when the price is fixed; false when the model decides part of it and only up to credits is charged
modelYes
creditsYeswhat is reserved; for a fixed price also what is charged
estimated_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent nothing is mutated, and the description confirms the no-side-effect, no-generation nature plus the unit of return (credits). However, it leaves idempotentHint=false unexplained — an agent may wonder why a supposedly pure price lookup is non-idempotent (presumably pricing can change between calls) — and says nothing about whether the quote expires or must be reused.

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?

Two short clauses, front-loaded with what it returns and immediately followed by the caller's obligation. No filler, nothing to cut.

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?

The tool is conceptually simple, an output schema covers the return shape, and the schema documents all four parameters, so the description is close to sufficient. The remaining gap is behavioral: it doesn't say how stale or binding a returned quote is, which matters given idempotentHint=false.

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%, including nested reference slot ordering, so the schema carries the parameter burden. The description only implies that model/prompt/parameters drive the price and never says whether references affect cost, adding little 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?

The description states a specific operation — costing a generation in credits — and its key defining property, 'without making it', which separates it from the generate sibling. An agent can tell immediately this is a price-preview call, not a job submission.

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?

The imperative 'Tell the user before generating' gives a concrete trigger: call this prior to generation and surface the number. It implies the alternative (generate) without naming it explicitly, and gives no guidance on when a quote would be unnecessary.

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.