Skip to main content
Glama

Plan a generation

plan_generation
Read-only

Work out what generating an email, a PDF, a Substack post or a document would use, rendering nothing and spending no draft or credit. Give it the kind and whatever the user has said so far; it answers with the template it would use and that template's fields with their defaults, which required fields are still missing, the brand kit it would resolve to and the other kits with their ids, the page, orientation and footer a PDF would take from the kit, the templates the user has saved, the free drafts left, the unlock cost, and ready. Call it once before generate_email or generate_pdf, then generate in the same turn unless one open choice would change the result.

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": {
      "kind": "<kind>"
    },
    "name": "plan_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhat would be generated.
pageNoThe PDF page size, if they named one.
alignNoThe text alignment, if they asked.
propsNoTemplate text fields the user gave, all strings.
titleNoThe PDF title, if they gave one.
headerNoThe email header style, if they asked.
subjectNoThe email subject, if they gave one.
markdownNoThe body, if they gave one.
appearanceNoLight or dark, if they asked.
footer_textNoThe PDF footer line, if they gave one.
template_idNoThe template the user named, if any.
brand_kit_idNoA brand_kit_id from list_brand_kits.
page_numbersNoPDF page numbers, if they asked.
saved_template_idNoA saved_template_id from list_templates; its inputs seed the ones you pass.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / align / description
      Added value: +"The text alignment, if they asked."
    • addedInput schema / properties / appearance / description
      Added value: +"Light or dark, if they asked."
    • addedInput schema / properties / footer_text / description
      Added value: +"The PDF footer line, if they gave one."
    • addedInput schema / properties / header / description
      Added value: +"The email header style, if they asked."
    • addedInput schema / properties / kind / description
      Added value: +"What would be generated."
    • addedInput schema / properties / markdown / description
      Added value: +"The body, if they gave one."
    • addedInput schema / properties / page / description
      Added value: +"The PDF page size, if they named one."
    • addedInput schema / properties / page_numbers / description
      Added value: +"PDF page numbers, if they asked."
    • addedInput schema / properties / props / description
      Added value: +"Template text fields the user gave, all strings."
  2. Changed2 schema fields changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "og_image",
      -  "email",
      -  "pdf",
      -  "substack_post",
      -  "markdown"
      -]New value: +[
      +  "email",
      +  "pdf",
      +  "substack_post",
      +  "markdown"
      +]
    • removedInput schema / properties / size
      Removed value: -{
      -  "description": "Where the image will be posted. Sizes: 'og' 1200x630 (The card X, LinkedIn, Slack and iMessage show under a link); 'square' 1080x1080 (An Instagram, LinkedIn or Facebook feed post); 'portrait' 1080x1350 (A taller Instagram or LinkedIn feed post); 'story' 1080x1920 (An Instagram or Facebook story, or a Reels cover); 'landscape' 1280x720 (A YouTube thumbnail or a 16:9 slide); 'facebook_cover' 1640x624 (A Facebook page or profile cover photo, shown at 820 by 312); 'linkedin_banner' 1584x396 (The background image on a LinkedIn profile); 'x_header' 1500x500 (The header image on an X profile). Left out it is 'og'.",
      -  "enum": [
      -    "og",
      -    "square",
      -    "portrait",
      -    "story",
      -    "landscape",
      -    "facebook_cover",
      -    "linkedin_banner",
      -    "x_header"
      -  ],
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "og_image",
      -  "email",
      -  "pdf",
      -  "substack_post"
      -]New value: +[
      +  "og_image",
      +  "email",
      +  "pdf",
      +  "substack_post",
      +  "markdown"
      +]
  4. Added
  5. Removed
  6. Changed1 schema field changed
    • addedInput schema / properties / size
      Added value: +{
      +  "description": "Where the image will be posted. Sizes: 'og' 1200x630 (The card X, LinkedIn, Slack and iMessage show under a link); 'square' 1080x1080 (An Instagram, LinkedIn or Facebook feed post); 'portrait' 1080x1350 (A taller Instagram or LinkedIn feed post); 'story' 1080x1920 (An Instagram or Facebook story, or a Reels cover); 'landscape' 1280x720 (A YouTube thumbnail or a 16:9 slide); 'facebook_cover' 1640x624 (A Facebook page or profile cover photo, shown at 820 by 312); 'linkedin_banner' 1584x396 (The background image on a LinkedIn profile); 'x_header' 1500x500 (The header image on an X profile). Left out it is 'og'.",
      +  "enum": [
      +    "og",
      +    "square",
      +    "portrait",
      +    "story",
      +    "landscape",
      +    "facebook_cover",
      +    "linkedin_banner",
      +    "x_header"
      +  ],
      +  "type": "string"
      +}
  7. Changed1 schema field changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "og_image",
      -  "email",
      -  "pdf"
      -]New value: +[
      +  "og_image",
      +  "email",
      +  "pdf",
      +  "substack_post"
      +]
  8. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds the genuinely useful behavioral facts that nothing is rendered and no draft or credit is consumed. It also enumerates the preview payload (resolved template, defaults, missing required fields, resolved brand kit, free drafts left, unlock cost), which goes well beyond the annotation. It stops short of describing error or partial-information behavior, keeping it out of the top band.

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?

Purpose and the no-cost/no-render guarantee are front-loaded in the first clause, and every listed output item maps to something the caller must know before generating. The second sentence is a long comma-chained run-on that could be tightened, which keeps it from a 5.

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?

With 14 parameters, a nested props object and no output schema, the description carries the full burden of describing the return shape and does so item by item, alongside the sequencing rule relative to generate_email and generate_pdf. Nothing an agent needs in order to call it correctly appears to be missing.

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 baseline would be 3, but the description adds real meaning beyond it: 'Give it the kind and whatever the user has said so far' frames the other 13 parameters as optional partial context that is safe to omit, and it explains that results come back in terms of template fields with defaults and unresolved required fields. That is invocation guidance the schema alone does not convey.

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 (work out / plan) over a specific resource set (email, PDF, Substack post, document) and immediately contrasts itself with real generation by saying it renders nothing and spends no draft or credit. An agent can distinguish it from generate_email and generate_pdf without opening a schema.

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?

Explicit invocation rule: 'Call it once before generate_email or generate_pdf, then generate in the same turn unless one open choice would change the result.' Names the alternatives, the ordering, and the one exclusion condition, so the agent knows both when to call and when to stop and ask.

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.