Skip to main content
Glama

Publish workflow

publish_workflow
DestructiveIdempotent

Publish a tested workflow from this chat to the public library at emero.studio/workflows and add it to today's email digest draft. Live immediately. Calling again with the same slug replaces that post.

You write the words; the server fills every fact. Never write a model name, a cost, or a prompt in the body: each {{gen:...}} token becomes the media plus its model, real cost and exact prompt.

Media tokens (each sits alone on its own line in the body; images render inline, videos as an inline looping player):

  • A generation: {{gen:job:#}}, with the id generate / check_generation returned (#n = which output, #0 for a single one). Shows the media plus its model, real cost and exact prompt.

  • An upload (the user's own file, e.g. original source footage, or a file rendered outside emero and added with request_upload): {{upload:}}, with the id request_upload returned (upload:). If the upload holds several files, name one: {{upload:#}} (0-based, in the order they were added; inspect(upload:, include_details:true) lists them). Shows the media and its alt text only, no model, cost or prompt. Use it for before/after: the upload, then the generation made from it.

  • alts: one entry per token, keyed by the token's id without the braces: "job:#" for a generation, "upload:" (or "upload:#") for an upload.

  • cover: any token's id in the same form, generation or upload; for a video, a still is taken from it. A bad id, or one from another account, is refused and nothing is published. Example body lines and alts: {{upload:9b1c0f2e-1a2b-4c3d-8e9f-0a1b2c3d4e5f}} {{gen:job:3e6bb619-7a5d-47e8-bec4-6d841e941634#0}} alts: { "upload:9b1c0f2e-1a2b-4c3d-8e9f-0a1b2c3d4e5f": "The original phone clip of the man sitting on the floor", "job:3e6bb619-7a5d-47e8-bec4-6d841e941634#0": "The same shot as a trapped miner in a sinking concrete room" }

  • slug: [use-case]-[model], lowercase-hyphens, e.g. "jewelry-video-ad-seedance". Never change it after publishing.

  • title: models first, then the use case. Comparing models: "Seedance 2.5 vs MiniMax H3 - jewelry ad from two photos". One model: "GPT Image 2.5 - photo to ink illustration in five styles". Use the model names the generations show.

  • seo_title: max 60 chars. Lead with the model people search for, then the outcome, e.g. "Seedance 2.5 Jewelry Video Ad from 2 Photos: Prompts + Cost", "Kling 3.0 Fashion Ad: Ostrich Hands Over a Bag".

  • summary: max 100 chars, one plain sentence on what the workflow does. No terminal period.

  • Brands: never put a real brand or its trademarks in the slug, title, seo_title, summary or teaser: no house names (Gucci, Prada, Louis Vuitton) and no product marks (Damier, Intrecciato, GG, Kelly). Describe the look instead: "orange monogram bucket hat", "woven leather bag". In the body, name a brand only where the workflow needs it, never as if the post were their ad. Every post shows a no-affiliation disclaimer.

  • teaser: a short noun phrase with its article for the email, e.g. "a 10 second jewelry ad from two photos".

  • body: markdown only (## headings, paragraphs, lists, bold, links), no HTML. Open with why the approach works, then "## 1. " per step, each step a short paragraph followed by its token (see Media tokens). End with "## Why it works".

  • alts: alt text per token (keys above): what the media shows, e.g. "Emerald ring and necklace on black velvet". On a generation the model name is appended automatically.

  • cover (optional): the id of the token that represents the post in share previews, the library card and the top of the post. Pick the strongest single frame, e.g. the delivery shot of a fashion spot, not the empty background plate. Must be one of the body's tokens. A video works, a still is taken from it. Omitted = the first generation in the body. To change the cover later, publish again with the same slug and the new cover.

  • replaces (optional): when you publish a post under a NEW slug to rename an existing one, pass the old slug here. The old post is taken down and its URL redirects to the new one, keeping its date. Never publish a renamed post without it, or the library shows the post twice.

Voice: concise, first person, plain words, no em dashes. Show the user the full post and get their go before calling.

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": {
      "slug": "<slug>",
      "title": "<title>",
      "seo_title": "<seo_title>",
      "summary": "<summary>",
      "teaser": "<teaser>",
      "body": "<body>",
      "alts": "<alts>"
    },
    "name": "publish_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
altsYes
bodyYes
slugYes
coverNo
titleYes
teaserYes
summaryYes
replacesNo
seo_titleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that publishing is live immediately, that the same slug replaces an existing post, that old posts are taken down and redirected when replaces is used, that brand names are restricted, and that a no-affiliation disclaimer is shown. This is substantial context for a destructive, open-world, idempotent operation.

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?

The description is long, but the length is justified by nine parameters with strict formatting and token rules. It is front-loaded with the purpose and organized with bullets, though there is some repetition in the media token explanations and the density could be tightened slightly.

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 complex publishing tool with no output schema and no schema descriptions, the definition covers what is published, how tokens render, what happens on replacement or rename, and what causes failure. Nothing an agent needs in order to construct a valid call is missing.

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?

With 0% schema description coverage, the description carries the full burden and does so thoroughly: it specifies slug format and immutability, title ordering rules, seo_title and summary length limits, teaser style, body markdown structure, alts keying and content, cover selection and default, and replaces behavior. Every parameter is given meaning beyond its bare type.

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: publish a tested workflow from this chat to the public library and add it to today's email digest. It clearly distinguishes publishing from unpublish_workflow and from generation tools by naming the public library and email digest destination.

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 explains that calling again with the same slug replaces the post, that replaces should be used when renaming under a new slug, and that the user must see the full post and approve before calling. It also states that bad ids cause the publish to be refused, which tells the agent when not to proceed.

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