Skip to main content
Glama

Quote a visual generation

plan_visual
Read-onlyIdempotent

Price an image job without spending. Submit the returned credits as expected_credit_cost on create_visual. A mismatch is refused. Send the same creative_kind, tier, batch, visual_type and references_count you will send to create_visual. A set (batch 2-4, or 2-4 options) costs the same as one picture; a carousel (creative_kind "carousel") is one flat price for the whole deck, however many slides.

Input Schema

NameRequiredDescriptionDefault
tierNo
batchNoThe same batch you will send create_visual (default 4, 3 for a thumbnail). A set costs the same as one picture
brand_idYesBrand workspace id from list_brands
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
visual_typeNoOne of product, environment, graphic, lifestyle, interface, in_scene_text; omit to have the subject read from the prompt
creative_kindYesWhat to make
references_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "Optional: the user's goal behind this call, in one short sentence of plain words (e.g. \"add a page so customers can book tables\"). No names, emails or other personal details.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/no destruction, and the description adds real behavioral content beyond them: nothing is charged, a price mismatch causes refusal on create_visual, a set (batch 2-4) prices the same as a single image, and a carousel is one flat price regardless of slide count. That pricing-invariance behavior is not derivable from any structured field.

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?

Front-loaded with the core promise ('Price an image job without spending') and only four substantive sentences with no filler. The trailing pricing rules are dense but each earns its place; slight denseness keeps it from a 5.

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 7-parameter, 2-required quote tool with no output schema, it covers the purpose, the workflow hand-off, the parameter-matching requirement and the return field name (`credits`). It stops short of describing the rest of the response or any failure/prerequisite conditions beyond mismatch refusal.

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 71%, so the schema carries most parameter documentation, but the description adds the crucial constraint that the parameter set must mirror what will be sent to create_visual, plus pricing semantics for `batch` and `creative_kind`=carousel. It leaves brand_id and user_goal unaddressed, so 4 rather than 5.

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?

Uses a specific verb ('price/quote') on a specific resource ('an image job') and immediately scopes it against its sibling create_visual by stating it does not spend credits. An agent can tell it apart from create_visual and from the planning siblings (plan_image_concepts, plan_logo) without opening any 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 a clear context of use and a concrete follow-on contract: pass the returned `credits` as `expected_credit_cost` on create_visual, and a mismatch is refused. It also requires sending the same creative_kind, tier, batch, visual_type and references_count used later. No explicit 'when not to use' or comparison to other plan_* siblings, so it stops short of a 5.

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