Skip to main content
Glama

create_drafts

Call prompt_suggest first and base the prompt on the top result. Submit a batch of platform drafts for one engine artifact (a digest issue, a generated content batch, anything). Prefer this name for new integrations; create_digest_drafts is the same tool under an older name. Drafts are ALWAYS created pending_approval and NEVER auto-publish: a human must approve_draft (or use the dashboard) before anything is scheduled. Idempotent on external_ref: resending a batch updates still-pending drafts, never resurrects approved or rejected drafts, and never overwrites a draft a human edited in the dashboard. Returns the created or updated drafts per variant. Per-field rules (platform aliases, thread segments, schedule_hint, account_ids) are on the variants fields. STYLE: follow the server writing-style instructions: write like the human owner, read list_posts first, no em or en dashes, 0-1 hashtags. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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": {
      "external_ref": "<external_ref>",
      "variants": "<variants>"
    },
    "name": "create_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoBrand/niche attribution tag for per-play rollups (e.g. "emplaw-watchdog"); NOT the AI BrandVoice writing-style profile
variantsYesOne entry per platform draft to create; each is reviewed and approved separately.
external_refYesYour own stable id for this batch (e.g. the digest id). Reusing it updates the same drafts instead of duplicating them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • changedInput schema / properties / external_ref / description
      Previous value: -"Engine-side id for idempotency (e.g. digest id)"New value: +"Your own stable id for this batch (e.g. the digest id). Reusing it updates the same drafts instead of duplicating them."
    • addedInput schema / properties / variants / description
      Added value: +"One entry per platform draft to create; each is reviewed and approved separately."
    • addedInput schema / properties / variants / items / properties / link / description
      Added value: +"URL (e.g. an archive link) appended to the final segment at approval when not already present."
    • addedInput schema / properties / variants / items / properties / media / description
      Added value: +"Images or video to attach to this draft."
    • addedInput schema / properties / variants / items / properties / media / items / properties / alt / description
      Added value: +"Alt text describing the media for accessibility."
    • addedInput schema / properties / variants / items / properties / media / items / properties / url / description
      Added value: +"Public URL of the media file."
    • addedInput schema / properties / variants / items / properties / platform / description
      Added value: +"Provider key to draft for, e.g. twitter, linkedin, instagram, tiktok, wordpress, tumblr. The aliases x, x_post and x_thread all map to twitter."
    • addedInput schema / properties / variants / items / properties / provider_metadata / properties / pinterest / description
      Added value: +"Pinterest pin fields."
    • addedInput schema / properties / variants / items / properties / provider_metadata / properties / pinterest / properties / altText / description
      Added value: +"Accessibility alt text describing the image."
    • addedInput schema / properties / variants / items / properties / provider_metadata / properties / pinterest / properties / dominantColor / description
      Added value: +"Optional hex color hint, e.g. \"#6B4F3B\"."
    • addedInput schema / properties / variants / items / properties / provider_metadata / properties / pinterest / properties / link / description
      Added value: +"Destination URL the pin links to."
    • addedInput schema / properties / variants / items / properties / provider_metadata / properties / pinterest / properties / title / description
      Added value: +"Pin title."
    • changedInput schema / properties / variants / items / properties / schedule_hint / description
      Previous value: -"\"optimal\" or a future ISO datetime"New value: +"When to publish after approval: \"optimal\" picks a time from the org's own best-times model at approval; otherwise a future ISO 8601 datetime with timezone. Omit to let the approver choose."
    • addedInput schema / properties / variants / items / properties / segments / description
      Added value: +"Post text. One element is a single post; two or more on twitter become a thread, one tweet per element, published as chained replies."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: drafts are ALWAYS pending_approval and NEVER auto-publish, and re-sending on the same external_ref updates still-pending drafts without resurrecting approved/rejected ones or overwriting human dashboard edits. It also states the return shape (created/updated drafts per variant) and a token capability boundary ('Safe for a draft-only agent token'). The scoped 'Idempotent on external_ref' claim is consistent with idempotentHint=false, since new external_ref values still create new drafts.

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 prerequisite and the core submit action, then labeled STYLE and CAPABILITY blocks. Dense but largely purposeful; the writing-style recital ('no em or en dashes, 0-1 hashtags') is server-wide boilerplate that consumes space without helping tool selection.

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 everything an agent needs for a mutation tool with no output schema: approval gating, non-publication guarantee, idempotency/update semantics, return shape, and token permissions. The per-variant field rules are delegated to the fully described schema.

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 description coverage is 100% and the nested variant fields already document platform aliases, thread segments, schedule_hint, account_ids, and media. The description mainly points back at the schema ('Per-field rules ... are on the variants fields') and frames external_ref as the batch identity, adding little semantic detail the schema does not already carry.

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 and resource: 'Submit a batch of platform drafts for one engine artifact (a digest issue, a generated content batch, anything)'. It also disambiguates from the sibling create_digest_drafts by declaring it the same tool under an older name, and routes new integrations to this one.

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 ordering ('Call prompt_suggest first and base the prompt on the top result'), explicit alias resolution ('Prefer this name for new integrations; create_digest_drafts is the same tool under an older name'), and the downstream human step (approve_draft or dashboard). It also names a prerequisite read (list_posts) for style matching.

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.