Skip to main content
Glama

Create a draft

create_draft

Creates a new page, collection entry or global as a draft in one region and locale. It is never live until a person publishes it; finish with submit_for_review. Check the content type's fields and blocks with get_schema first. Returns the new draft's id, name, url, contentType and status. Refused with the reason when a field is invalid, the address is already taken, or you may not write to that environment or region (see list_scopes). Landing pages, popups, banners and shop products use draft_special_content instead.

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": {
      "contentType": "<contentType>",
      "name": "<name>"
    },
    "name": "create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
seoNoOnly the SEO fields you give change; the others are kept.
nameYesThe name people see in the CMS; also the page title unless a field sets one.
slugNoThe last part of the address, such as winter-trips. Made from the name when left out. Only for content types with addresses.
fieldsNoField values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep.
localeNoLocale code, such as de-DE. Defaults to the region's default locale.
regionNoRegion key, such as germany. Defaults to the default region.
folderIdNoThe folder to create it in, from list_pages. Leave out for the top level.
componentsNoThe page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id.
contentTypeYesThe content type key from get_schema, such as page or article.
environmentNoEnvironment key. Defaults to "staging".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / components / description
      Added value: +"The page's blocks, in the blockShape from get_schema. This replaces the whole block list: keep each block you leave unchanged, with its id."
    • addedInput schema / properties / contentType / description
      Added value: +"The content type key from get_schema, such as page or article."
    • addedInput schema / properties / fields / description
      Added value: +"Field values by field key, in the shapes get_schema gives for this content type. On update this replaces all the draft's fields: include the ones you keep."
    • addedInput schema / properties / folderId / description
      Added value: +"The folder to create it in, from list_pages. Leave out for the top level."
    • addedInput schema / properties / name / description
      Added value: +"The name people see in the CMS; also the page title unless a field sets one."
    • addedInput schema / properties / seo / description
      Added value: +"Only the SEO fields you give change; the others are kept."
    • addedInput schema / properties / seo / properties / description / description
      Added value: +"Meta description shown in search results, ideally 120 to 160 characters. null clears it."
    • addedInput schema / properties / seo / properties / ogDescription / description
      Added value: +"Description when the page is shared on social media. null clears it, so the meta description is used."
    • addedInput schema / properties / seo / properties / ogTitle / description
      Added value: +"Title when the page is shared on social media. null clears it, so the meta title is used."
    • addedInput schema / properties / seo / properties / title / description
      Added value: +"Meta title shown in search results, ideally 50 to 60 characters. null clears it."
    • addedInput schema / properties / slug / description
      Added value: +"The last part of the address, such as winter-trips. Made from the name when left out. Only for content types with addresses."
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare the write-but-non-destructive profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), and the description adds real context: drafts are never live until published, and failures are refused with a reason for invalid fields, taken addresses, or insufficient environment/region permissions. It does not, however, disclose that fields/components replace whole sets, which is left to the schema text.

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?

Five short sentences, each with a distinct job: purpose, lifecycle, prerequisite, return values, failure modes, and alternative routing. Critical information (what it creates, that it is not live) is front-loaded with no filler.

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?

There is no output schema, and the description compensates by naming the returned fields (id, name, url, contentType, status). Combined with a 10-parameter schema that is fully documented, the lifecycle note, and the sibling exclusion, an agent has everything needed to call this correctly on the first attempt.

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 every parameter already carries its own description, so the baseline applies. The description adds only indirect guidance (region/locale scoping, content type comes from get_schema) and no format or syntax detail beyond what the schema states.

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?

Opens with a specific verb and resource ("Creates a new page, collection entry or global as a draft") and scopes it to one region and locale. It explicitly carves out the sibling draft_special_content for landing pages, popups, banners and shop products, so an agent can distinguish the two without inspecting schemas.

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?

Gives a prerequisite ("Check the content type's fields and blocks with get_schema first"), a follow-up step ("finish with submit_for_review"), and a named alternative for excluded content types. It also points at list_scopes for permission questions, covering when-not and where-else.

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