Skip to main content
Glama

Quote Generation

quote_generation
Read-onlyIdempotent

Exact credit cost of a generate_image, edit_image or generate_video call before making it, with the caller's balance and plan eligibility. Use it whenever price or budget comes up instead of estimating. Free; nothing is reserved or started.

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": {
      "tool": "<tool>"
    },
    "name": "quote_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYesThe call being priced
countNogenerate_image only: how many parallel variations to price (1–4, default 1; capped by plan concurrency: Free 1, Basic 2, Pro 3, Studio 4)
modelNoModel id as that tool accepts it; omitted means the tool's default
qualityNogenerate_image and edit_image with gpt-image-2.6 only
durationNogenerate_video only: seconds
resolutionNogenerate_video: 480p, 720p, 768p, 1080p or 4k. generate_image and edit_image: 1k, 2k or 4k. Omitted means the model's default.
with_imageNogenerate_video only: true when an image_url will be animated
image_countNoedit_image only: how many image_urls will be passed (default 1); extra images cost more on gpt-image-2.6
output_formatNogenerate_image and edit_image with gpt-image-2.6 only: gif for an animated GIF
with_reference_imagesNogenerate_video only: true when reference_image_urls will be passed
reference_video_secondsNogenerate_video only: length of the reference_video_url, rounded up to whole seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / duration / minimum
      Previous value: -4New value: +3
  2. Changed1 schema field changed
    • changedInput schema / properties / resolution / description
      Previous value: -"generate_video: 480p, 720p, 768p or 1080p. generate_image and edit_image: 1k, 2k or 4k. Omitted means the model's default."New value: +"generate_video: 480p, 720p, 768p, 1080p or 4k. generate_image and edit_image: 1k, 2k or 4k. Omitted means the model's default."
  3. Changed1 schema field changed
    • addedInput schema / properties / count
      Added value: +{
      +  "description": "generate_image only: how many parallel variations to price (1–4, default 1; capped by plan concurrency: Free 1, Basic 2, Pro 3, Studio 4)",
      +  "maximum": 4,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / reference_video_seconds
      Added value: +{
      +  "description": "generate_video only: length of the reference_video_url, rounded up to whole seconds",
      +  "maximum": 15,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / with_reference_images
      Added value: +{
      +  "description": "generate_video only: true when reference_image_urls will be passed",
      +  "type": "boolean"
      +}
  5. Changed3 schema fields changed
    • addedInput schema / properties / image_count
      Added value: +{
      +  "description": "edit_image only: how many image_urls will be passed (default 1); extra images cost more on gpt-image-2.6",
      +  "maximum": 9,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / output_format
      Added value: +{
      +  "description": "generate_image and edit_image with gpt-image-2.6 only: gif for an animated GIF",
      +  "enum": [
      +    "png",
      +    "gif"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "generate_image and edit_image with gpt-image-2.6 only",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high"
      +  ],
      +  "type": "string"
      +}
  6. Changed2 schema fields changed
    • changedInput schema / properties / resolution / description
      Previous value: -"generate_video only"New value: +"generate_video: 480p, 720p, 768p or 1080p. generate_image and edit_image: 1k, 2k or 4k. Omitted means the model's default."
    • changedInput schema / properties / resolution / enum
      Previous value: -[
      -  "480p",
      -  "720p",
      -  "768p",
      -  "1080p"
      -]New value: +[
      +  "480p",
      +  "720p",
      +  "768p",
      +  "1080p",
      +  "1k",
      +  "2k",
      +  "4k"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / resolution / enum
      Previous value: -[
      -  "480p",
      -  "720p",
      -  "1080p"
      -]New value: +[
      +  "480p",
      +  "720p",
      +  "768p",
      +  "1080p"
      +]
  8. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. The description adds useful context beyond that: the quote is free and nothing is reserved or started, which is important for a preflight cost check.

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?

The description is three short sentences, front-loads the core purpose, and adds only high-value guidance. There is no redundant or filler wording.

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?

For a quote tool with 11 parameters and no output schema, the description explains what is returned at a high level: cost, balance, and plan eligibility. It does not describe the response structure or how multiple parameter combinations affect the quote, but the schema carries the detailed parameter burden.

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 the input schema already documents all 11 parameters in detail. The description does not add meaning about individual parameters or conditional combinations, so the baseline of 3 is appropriate.

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 verb and resource: it returns the exact credit cost of a generate_image, edit_image, or generate_video call, plus the caller's balance and plan eligibility. This is precise enough to distinguish it from generation tools and from a generic balance check.

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 gives explicit usage guidance: use it whenever price or budget comes up instead of estimating. It does not explicitly compare against get_credits or say when a quote is unnecessary, but the intended context is clear.

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