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.

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": {
      "product": "<product>"
    },
    "name": "plan_product_ad"
  }
}

Input 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. Changed1 schema field changed
    • changedInput schema / properties / video_model / enum
      Previous value: -[
      -  "h3-max-turbo",
      -  "grok-imagine",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.0",
      -  "seedance-2.5",
      -  "gemini-omni-1.2-flash",
      -  "veo-3.1-fast",
      -  "kling-2.5-turbo"
      -]New value: +[
      +  "h3-max-turbo",
      +  "grok-imagine",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.0",
      +  "seedance-2.5",
      +  "gemini-omni-1.2-flash",
      +  "veo-3.1-fast",
      +  "kling-4.0-flash",
      +  "kling-4.0",
      +  "kling-2.5-turbo"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / video_model / enum
      Previous value: -[
      -  "h3-max-turbo",
      -  "grok-imagine",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.0",
      -  "seedance-2.5",
      -  "veo-3.1-fast",
      -  "kling-2.5-turbo"
      -]New value: +[
      +  "h3-max-turbo",
      +  "grok-imagine",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.0",
      +  "seedance-2.5",
      +  "gemini-omni-1.2-flash",
      +  "veo-3.1-fast",
      +  "kling-2.5-turbo"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / video_model / enum
      Previous value: -[
      -  "h3-max-turbo",
      -  "grok-imagine",
      -  "seedance-2.0-mini",
      -  "veo-3.1-fast",
      -  "kling-2.5-turbo"
      -]New value: +[
      +  "h3-max-turbo",
      +  "grok-imagine",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.0",
      +  "seedance-2.5",
      +  "veo-3.1-fast",
      +  "kling-2.5-turbo"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / video_model / enum
      Previous value: -[
      -  "h3-max-turbo",
      -  "grok-imagine",
      -  "seedance-1.5-pro",
      -  "seedance-2.0-mini",
      -  "veo-3.1-fast",
      -  "kling-2.5-turbo"
      -]New value: +[
      +  "h3-max-turbo",
      +  "grok-imagine",
      +  "seedance-2.0-mini",
      +  "veo-3.1-fast",
      +  "kling-2.5-turbo"
      +]
  5. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, but the description adds substantive behavior: this call costs nothing and never kicks off a generation, and it returns prices, prompts, budget guidance and output checks. It does not clarify persistence of the plan or how the user-selection step is subsequently driven.

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?

Four compact sentences, each carrying distinct information, with the workflow shape front-loaded and the cost caveat placed early. No filler, though the return-value list is slightly compressed into a run-on.

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 six-parameter planning tool with no output schema, the description conveys scope, cost model, and the general shape of the response (prices, prompts, budget guidance, checks) plus what happens when image_url is missing. Minor gap: it does not say how the agent should proceed after receiving the plan to reach the selection and video steps.

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 coverage is 100%, so every parameter is already documented, including the max_credits STOP behavior and the video_model fallback rules. The description only gestures at the two-image-plus-clip scope and budget guidance, adding little beyond the schema; baseline 3 applies.

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?

Names a concrete deliverable (a plan for a two-image-direction plus short-video workflow) with an explicit verb and resource, plus what it returns. 'Free: never starts a generation' distinguishes it from the sibling generate_image/generate_video tools without needing their schemas.

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?

'Use before making product ads or product videos' gives a clear triggering context, and the free/no-generation note clarifies why an agent should call it first. It stops short of naming a specific alternative (e.g., quote_generation) or stating when not to use it.

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