Skip to main content
Glama

Generate snacks

generate_snacks
Destructive

Kick off an ASYNC snack generation job for a brand. SPENDS CREDITS (18–26 — call estimate_snack_cost first). Requires a brandId: call list_brands first, or create_brand if the brand doesn't exist yet. Returns immediately with a jobId; then poll get_job. GENERATION TAKES AT LEAST ~2 MINUTES (typically 2–3 min) — set the user's expectations and don't poll as if it'll be instant. Pass render=true if you want viewable MP4/PNG assets shown inline in chat; without render the result is a layered manifest you open via the dashboard viewUrl. Credits are refunded automatically if generation fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
renderNoAlso render PNGs/MP4s server-side (+3 credits)
brandIdYesBrand UUID to generate snacks for
excludeNoSnack types to skip; excluding 'ai-ugc' saves 5 credits
callbackUrlNoReserved for forthcoming webhook delivery
influencerIdNoInfluencer Vault UUID to source person-facing assets from. The influencer must belong to your account and either be linked to this brand or be account-wide. Its character sheet becomes the AI-UGC actor, and its static stills / swapped b-roll feed slides and text-wall.
influencerModeNoHow to use the vault when influencerId is set. 'prefer' (default) uses vault assets first and falls back to the global library per slot; 'require' refuses global fallback for influencer-aware slots (a slot may be skipped if the vault can't fill it). Ignored when influencerId is absent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYes
renderNo
statusYes
excludeNo
pollUrlYes
offeringIdNo
influencerIdNo
influencerModeNo
creditsReservedYes
snackTypeSequenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / exclude / items / enum
      Previous value: -[
      -  "slides",
      -  "text-wall",
      -  "ai-ugc",
      -  "broll-demo",
      -  "greenscreen-meme",
      -  "meme-edit",
      -  "single-image",
      -  "sticker-pack",
      -  "static-ad",
      -  "ugc-ad",
      -  "animated-ad",
      -  "greenscreen-ad"
      -]New value: +[
      +  "slides",
      +  "text-wall",
      +  "ai-ugc",
      +  "broll-demo",
      +  "greenscreen-meme",
      +  "meme-edit",
      +  "single-image",
      +  "sticker-pack",
      +  "static-ad",
      +  "ugc-ad",
      +  "animated-ad",
      +  "greenscreen-ad",
      +  "music-ad"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / exclude / items / enum
      Previous value: -[
      -  "slides",
      -  "text-wall",
      -  "ai-ugc",
      -  "broll-demo",
      -  "greenscreen-meme",
      -  "meme-edit",
      -  "single-image",
      -  "sticker-pack"
      -]New value: +[
      +  "slides",
      +  "text-wall",
      +  "ai-ugc",
      +  "broll-demo",
      +  "greenscreen-meme",
      +  "meme-edit",
      +  "single-image",
      +  "sticker-pack",
      +  "static-ad",
      +  "ugc-ad",
      +  "animated-ad",
      +  "greenscreen-ad"
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare a destructive, non-idempotent, open-world write, and the description adds credit cost (18–26), automatic refunds on failure, the ~2–3 minute minimum latency with polling guidance, and the render-vs-manifest output difference — all context beyond the structured fields.

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 action and cost, then sequencing, then timing, then render behavior. Dense with heavy all-caps emphasis and em-dashes, but nearly every clause carries operational value; mildly over-signposted.

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?

Covers cost, prerequisites, async lifecycle, follow-up polling, timing expectations, render output differences, and failure refunds. With an output schema present for the job result, nothing essential is missing for correct invocation.

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 86%, so the schema already documents most params. The description still adds meaningful semantics for render (inline viewable assets vs. layered manifest opened via dashboard viewUrl) and reinforces the brandId dependency, going beyond the schema's terse '+3 credits' note.

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+resource+mode: 'Kick off an ASYNC snack generation job for a brand'. This distinguishes it from siblings like generate_influencer_snack, create_slides, and generate_meme by naming the async job nature and brand scoping.

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?

Explicitly names prerequisite steps ('call estimate_snack_cost first', 'call list_brands first, or create_brand'), the follow-up tool (poll get_job), and when to pass render=true. An agent has a complete routing path.

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