Skip to main content
Glama

Make a template with the user's product

recreate_template

Make one of PopNow's marketing templates with the user's own product: the same look, model and quality as the sample, with their product (and avatar or line where the template takes one). Pick the template with list_studio_templates studio marketing. Always call it first without max_credits: it returns the exact total and a confirmation id. Tell the user the total and wait for a clear yes, then call it again with the same arguments plus max_credits (that total) and confirmation (that id). Nothing is charged without both; if anything changes in between, ask again with the new quote. Failed pieces are refunded. Then call get_template_run.

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": {
      "template_id": "<template_id>",
      "product_image_urls": "<product_image_urls>"
    },
    "name": "recreate_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOnly for templates that take a line (headline, callouts or what the person says), kept word for word, up to the template's limit.
countNoOnly for image templates that list count as changeable: 1 to 4 images.
consentNoNeeded with an avatar photo the user brought. Set true only after the user confirms the person in it is them or agreed to it, is 18 or over, and it won't be used to mislead anyone, including about who someone is, or for anything unlawful.
project_idNoOptional: one of the user's own marketing projects on popnow.ai (b_mkt_…) to keep the finished pieces in. Other people's projects are refused.
resolutionNoOnly if the template lists resolution as changeable: 480p, 720p or 1080p for video.
max_creditsNoRequired to start: the quoted total the user agreed to. Leave it out to get the quote; nothing is charged without it.
template_idYesThe template id from list_studio_templates with studio marketing (only the ones marked recreate_template).
aspect_ratioNoOnly if the template lists aspect as changeable.
confirmationNoRequired to start, together with max_credits: the confirmation id from the quote, passed back exactly. It only covers this template, these photos and text and that total.
product_nameNoWhat the product is called, up to 80 characters.
avatar_image_urlNoOnly for templates with an avatar: a photo of the person who appears (popnow:// link), or one of PopNow's own avatars.
product_image_urlsYes1 to 4 photos of the one product, front first: popnow:// links from get_upload, import_product or list_products. Other links are not accepted; use request_upload for files from the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical two-step billing flow: the first call returns a total and confirmation id, nothing is charged without both max_credits and confirmation, changes require a new quote, and failed pieces are refunded. This is exactly the operational context an agent needs for a non-idempotent, open-world creation tool.

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 front-loaded with purpose, then flows through template selection, quoting, confirmation, billing, and follow-up in a compact paragraph. Every sentence contributes operational information, with no repetition or filler.

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?

For a 12-parameter creation tool with charging, consent, asset, and follow-up steps, the description supplies the essential workflow and billing safeguards, while the rich schema covers individual parameter details. The only minor omission is an explicit when-not-to-use or alternative-creation statement.

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 parameter descriptions already carry most semantics. The description still adds the relational two-call pattern for max_credits and confirmation, clarifying that the second call repeats the same arguments plus those two values.

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 opens with a specific verb and resource: 'Make one of PopNow's marketing templates with the user's own product.' It scopes the operation to template-based recreation using the user's product, avatar, or line, which is clearly distinct from generic creation tools.

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?

It gives explicit invocation guidance: select the template via list_studio_templates studio marketing, call first without max_credits for a quote, then call again with max_credits and confirmation, and finally call get_template_run. It does not state when to avoid this tool or which alternative to use for non-template creation.

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.