Skip to main content
Glama

Plan a Product Ad

plan_product_ad
Read-onlyIdempotent

Plan a complete product-photo workflow: two image directions from one original product photo, user selection, then a short video. Returns exact account prices, prompts, budget guidance and output checks. Free: never starts a generation. Use before making product ads or product videos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productYesProduct name or short description
durationNoClip length in seconds. Must be supported by video_model; use list_models to see valid durations. Omitted uses the model default.
preserveNoProduct details that must stay unchanged
image_urlNoPublic URL of the original product photo. If absent, the plan explains how to upload on the website.
max_creditsNoTotal budget in credits for the whole workflow (two images and one clip, retries included). The plan says STOP when the itemized total is above it. This call itself costs nothing.
video_modelNoChoose any supported image-to-video model. If omitted, uses the free H3 preset when eligible, otherwise the cheapest preset supporting the requested duration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

The description discloses that the call is free, never starts a generation, and returns exact account prices, prompts, budget guidance, and output checks. This is consistent with the readOnlyHint and idempotentHint annotations, adding practical detail about what the agent will receive without contradicting the annotations.

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 concise, with three sentences covering purpose, return value, cost, and usage timing. It is well-structured and free of redundancy, making it easy for an agent to parse quickly.

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

Completeness5/5

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

Despite having no output schema, the description sufficiently informs the agent of what to expect (prices, prompts, budget guidance, output checks) and references related tools like list_models for duration validity. This is complete enough for correct selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All six parameters have clear descriptions. For example, max_credits explains the full budget scope, retries included, and the STOP behavior; video_model explains the fallback logic; image_url explains the behavior when absent. Schema coverage is 100% and each description adds meaningful context.

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 explicitly states the tool's purpose: to plan a complete product-photo workflow, returning prices, prompts, budget guidance, and output checks. It clearly distinguishes its role from generation tools by instructing to use it before making product ads or videos and noting it never starts a generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides explicit usage guidance: 'Use before making product ads or product videos.' It also clarifies cost behavior ('Free: never starts a generation') and describes how budget and model selection are handled, steering agents to this planning step before invoking sibling generation tools.

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