Skip to main content
Glama

Create draft document

create_document

Creates a draft Markdown document in Content Studio, from Markdown text or by converting a web page (source_url) to Markdown. Drafts are not public until published.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code, e.g. en, pl. Defaults to the site language.
siteNoSite domain, e.g. example.com. Optional when the account has one site.
slugNoDefaults to a slug of the title
titleNo
markdownNoMarkdown body (YAML frontmatter allowed)
source_urlNoPage to convert to Markdown instead of markdown
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / site / description
      Previous value: -"Site domain, e.g. example.com (see list_sites). Optional when the account has one site."New value: +"Site domain, e.g. example.com. Optional when the account has one site."
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, non-idempotent, non-destructive write behavior, and the description is consistent with them; fetching an external page via source_url explains the open-world flag. The description does add lifecycle context that annotations cannot convey ('Drafts are not public until published'). It does not address slug/title collisions, failure modes when source_url is unreachable, or permission requirements.

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?

Two compact sentences, front-loaded with the core action and the two input modes; the trailing sentence about draft visibility is short and carries real decision value. Nothing is redundant or padded.

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 seven-parameter, zero-required creation tool with no output schema, the description covers the essential things an agent needs: what is created, the two mutually exclusive content inputs, and the resulting unpublished state. Return-value detail is out of scope since no output schema exists, and the remaining parameter nuances are mostly handled by the 71% schema coverage.

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 coverage is 71%, so the schema documents most parameters on its own, and the description largely restates the markdown vs. source_url distinction that the schema already spells out. Meaningful gaps remain unaddressed in prose: whether one of markdown or source_url is mandatory, why title has no schema description and how it drives the default slug, and when lang/site can be omitted.

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?

The description states a specific verb and resource ('Creates a draft Markdown document in Content Studio') and distinguishes two input modes (raw Markdown text vs. converting a web page via source_url). It does not name sibling tools such as generate_document or update_document, so an agent must infer the boundary from the word 'draft', but the core purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: this produces unpublished drafts, so publishing is a separate, later step (publish_document). That implication is useful but never made explicit, and no alternative is named despite a sibling set containing generate_document, update_document, and crawl_site. An agent has to reason about when to create a document versus generating or updating one.

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.