Skip to main content
Glama

Quote an image

quote_image
Read-only

Price an image generation call without spending credits by using upload, run, or asset references; failed or disabled generations charge nothing.

Instructions

Price one generate_image call WITHOUT spending credits. A reference is {upload_id, rights_confirmed: true} (you may use the people and works in it), {run_id} of a succeeded generate_image run until reusable_until, or {asset_id} of a picture asset. A generation that fails is charged nothing. While generations are closed it answers generations_disabled or generations_marking_pending and charges nothing.

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": {
      "prompt": "<prompt>",
      "model": "<model>",
      "aspect_ratio": "<aspect_ratio>"
    },
    "name": "quote_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
promptYes
keep_textNo
referencesNo
max_creditsNo
aspect_ratioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.72.0
    • changedInput schema / properties / aspect_ratio / enum
      Previous value: -[
      -  "9:16",
      -  "16:9",
      -  "1:1"
      -]New value: +[
      +  "9:16",
      +  "16:9",
      +  "1:1",
      +  "21:9"
      +]
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedream-5.0-flash",
      -  "flare",
      -  "gemini-3-pro-image",
      -  "gemini-nano-banana-2.1"
      -]New value: +[
      +  "seedream-5.0-flash",
      +  "seedream-5.5",
      +  "flare",
      +  "gemini-3-pro-image",
      +  "gemini-nano-banana-2.1"
      +]
  2. Changed3 schema fields changedv0.61.0
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedream-5.0-flash",
      -  "flare"
      -]New value: +[
      +  "seedream-5.0-flash",
      +  "flare",
      +  "gemini-3-pro-image",
      +  "gemini-nano-banana-2.1"
      +]
    • changedInput schema / properties / references / maxItems
      Previous value: -4New value: +14
  3. Changed1 schema field changedv0.56.0
    • addedInput schema / properties / keep_text
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed1 schema field changedv0.45.0
    • changedInput schema / properties / prompt / maxLength
      Previous value: -2000New value: +5000
  5. Changed2 schema fields changedv0.39.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / references / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "rights_confirmed": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "upload_id": {
      +        "pattern": "^upl_[a-f0-9]{32}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "upload_id",
      +      "rights_confirmed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "run_id": {
      +        "pattern": "^run_[a-zA-Z0-9]+$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "run_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "asset_id": {
      +        "pattern": "^ast_[a-f0-9]{32}$",
      +        "type": "string"
      +      },
      +      "rights_confirmed": {
      +        "const": true,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "asset_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  6. Addedv0.33.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with concrete billing behavior: no credits charged, failed generations charged nothing, disabled-state responses charge nothing. It also discloses two named non-error response states (generations_disabled, generations_marking_pending) and the reusable_until expiry on run_id references. It does not describe the shape of the returned price, which matters since there is no output schema.

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

Conciseness4/5

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

Three tight sentences, front-loaded with the core claim (price without spending credits) followed by reference forms and failure modes. Dense but no filler. The jargon tokens generations_disabled and generations_marking_pending are compact and precise rather than wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the resource-reference vocabulary and billing/availability behavior well, which is the hardest part of this tool. But with no output schema and no parameter descriptions, the definition leaves the agent guessing what a quote response looks like and what max_credits and keep_text do. Adequate for a read-only pricing call, but incomplete for correct invocation.

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 0%, so the burden is on the description. It does substantial work on references, explaining all three accepted forms and the meaning of rights_confirmed ('you may use the people and works in it') and the reusable_until window for run_id, none of which the schema conveys. However, keep_text and max_credits are explained by neither schema nor description, leaving real gaps for a 6-parameter tool.

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 concrete verb and resource: price one generate_image call without spending credits. That single clause distinguishes it from generate_image and from the other quote_* siblings, which price different resources (actor, video, trends). An agent knows exactly what this returns conceptually before opening the schema.

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?

Gives clear context for use: estimate cost ahead of a real generation, with the explicit guarantee of no credit spend. It also tells the agent what happens when generations are disabled. It stops short of saying 'call generate_image to actually produce the image' explicitly, so the handoff to the sibling is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.