Skip to main content
Glama

Create a draft from a template

create_draft_from_template

Fill a versioned template with required variables and save an independent draft with per-account variants for review. It creates no public post; inspect the variants and create a preview before publishing.

Instructions

Fill a versioned template and save an independent Draft with per-account variants. Required variables must be supplied; never invent facts. Account variant wins over platform variant, then base. Creates no public post or valid publishing preview; inspect variants and run preview_draft next.

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": {
      "templateId": "<templateId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "create_draft_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
valuesNo
accountIdsNo
templateIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare a non-read-only, non-destructive, non-idempotent, closed-world write. The description discloses the variant precedence chain (account > platform > base), the fact that the resulting draft is independent and not publishable-valid, and the downstream preview requirement.

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?

Three tight sentences, front-loaded with what the tool produces, then the constraint, then the precedence rule and the caveat. Every clause carries operational information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description covers the tricky parts: variant precedence and the absence of a valid preview. The remaining gap is the revision parameter, whose staleness/conflict behavior an agent would want spelled out for a non-idempotent write.

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 0% across five parameters, so the description must carry the load. It clarifies that 'values' must be supplied and how variant precedence resolves them, but says nothing about expectedRevision's optimistic-concurrency role, title, or the 20-account cap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: fill a versioned template and save an independent Draft with per-account variants. 'Independent' and the template-fill framing implicitly separate it from create_draft, but the contrast with that sibling is never made explicit.

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?

Gives clear routing: this creates no public post or valid publishing preview, so inspect variants and run preview_draft next. It also imposes a content rule (required variables must be supplied; never invent facts). It stops short of naming when to use create_draft or set_draft_variant instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.