Skip to main content
Glama

estimate_ad_cost

Read-onlyIdempotent

Price a studio job before making it: a finished ad from a brief or storyboard (kind "ad"), a UGC creator video (kind "ugc"), a generated avatar (kind "avatar") or a competitor-ad decode (kind "decode"). Returns the credit lines, the total and a quote_id that generate_ad, generate_ugc_video, generate_avatar and decode_ad require. No account needed. For an ad, quote exactly the fields you will submit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoDefaults to ad.
briefNoThe ad brief: brandName, brandOneLiner, valueProps (1-8 strings), cta, intent, format (an id from list_ad_formats), shotCount (2-5), totalDurationSec (6-20), aspect (9:16 | 16:9 | 1:1), language, quality (fast | premium), modelTier (standard | cinematic), garmentImageUrl for the try-on formats.
qualityNoLip-sync tier. premium costs more per talking shot. Defaults to the brief's quality, else fast.
model_tierNocinematic renders on Seedance with director-grade camera work and costs more per shot; needs the brief.
storyboardNoThe storyboard returned by write_ad_storyboard, as is or edited. When present it is what renders; the brief is optional alongside it.
persona_modeNosynthetic lets the studio substitute one consistent generated creator for the avatar; exact-avatar (default) keeps the avatar as given.
needs_avatar_genNoTrue when the avatar still has to be generated (billed as a line).
needs_product_genNoTrue when the product still has to be generated (billed as a line).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
basisYes
linesYes
quote_idYesSigned quote. Pass it to the matching generate_* tool; it fixes the price and makes a retry safe.
next_stepYes
expires_atYesISO time after which the quote is refused.
credits_totalYesFor an ad, the most it can cost; the charge on success is never higher.
expires_in_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description adds genuinely new behavior: it returns credit lines, a total and a quote_id, states no account is required, and notes the quote_id is required by the four generation tools. It does not discuss quote expiry or whether a quote locks in pricing, which is the only material gap.

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?

Purpose is front-loaded in the first clause, then kinds, then return contract, then the two operational notes. Every sentence carries distinct information with no repetition of the schema, despite covering four modes.

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 an 8-parameter tool with nested brief/storyboard objects and an output schema, the description covers mode selection, downstream consumption, auth needs, and input consistency. Return values are properly left to the output schema, though the brief/storyboard precedence could have been spelled out slightly more explicitly.

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 100%, so the baseline would be 3, but the description adds real meaning: it ties the kind enum values to their artifact types and warns "For an ad, quote exactly the fields you will submit," which is a parameter-consistency rule the schema cannot express. The storyboard/brief interaction is also clarified.

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 specific verb (price/quote) and resource (a studio job), then enumerates all four kinds and maps each to the concrete artifact it prices. It even names the sibling generators that consume the quote_id, so an agent can distinguish it from generate_ad, decode_ad, and estimate_credit_cost without opening a 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?

"Price a studio job before making it" gives clear timing context, and it explicitly names the downstream tools that require the returned quote_id, telling the agent when this call is mandatory. It does not, however, contrast itself with the sibling estimate_credit_cost, so the alternative-tool dimension is left implicit.

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.