Skip to main content
Glama

quote

Read-only

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

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

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, or a speech model charges by the length it actually speaks, and only up to credits is charged
modelYes
creditsYeswhat is reserved; for a fixed price also what is charged; for a speech model priced by length, the most it charges
estimated_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / credits / description
      Previous value: -"what is reserved; for a fixed price also what is charged"New value: +"what is reserved; for a fixed price also what is charged; for a speech model priced by length, the most it charges"
    • changedOutput schema / properties / exact / description
      Previous value: -"true when the price is fixed; false when the model decides part of it and only up to credits is charged"New value: +"true when the price is fixed; false when the model decides part of it, or a speech model charges by the length it actually speaks, and only up to credits is charged"
  2. 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 idempotentHint=false, and the description is consistent with them. It adds genuinely useful behavior beyond the annotations: the result is denominated in credits and no generation is actually produced, but it says nothing about cost variability (why idempotent is false) or whether quoting reserves anything.

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 sentences, front-loaded with the core definition and followed by the action directive. Every clause earns its place with zero filler.

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 a fully described four-parameter schema (including a nested references object), an output schema, and annotations covering safety, the description only needs to convey purpose and timing, which it does. Minor gaps remain on cost volatility and whether the same parameters must match the eventual generate call.

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 the required model id and the nested references slots, so the schema carries the parameter burden. The description adds no meaning about how prompt, parameters, or references affect the quoted price, which is the one thing an agent might want to know.

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 precise verb and resource: it returns the credit cost of a generation without performing it. The clause 'without making it' implicitly separates it from the sibling 'generate', but no sibling is actually named, so the differentiation is inferred rather than explicit.

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?

'Tell the user before generating' gives clear, actionable when-to-use guidance tied to a concrete moment in the workflow. It does not state any when-not conditions or name the alternative tool (generate) explicitly, leaving that to be inferred from the sibling list.

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.