Skip to main content
Glama

Generate draft with AI

generate_document

Writes a draft Markdown document on a topic with the Anole AI writer and saves it in Content Studio. Uses AI credits (free with an Own Key plan). Not public until published.

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": {
      "topic": "<topic>"
    },
    "name": "generate_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.
titleNo
topicYes

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.8/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the description's job is to add context — which it does by disclosing credit consumption, the Own Key exemption, and that output remains unpublished. It stops short of noting that repeated calls create new distinct drafts (non-idempotent) or any rate limits, but the added cost and visibility information is genuinely valuable.

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 short sentences, zero padding, front-loaded with the action and resource before the cost and visibility caveats. Every sentence carries distinct information an agent would otherwise lack.

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?

For a 4-parameter generation tool with no output schema, the description covers action, mechanism, billing, and publication state adequately. The main missing piece is what the call returns (a document ID or URL) so the agent can chain into publish_document or get_document, which is left unstated.

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 50%: 'lang' and 'site' are documented in the schema, while 'title' and 'topic' are bare. The description only covers 'topic' ('on a topic') and says nothing about whether 'title' is optional, auto-derived, or overrides AI titling — a meaningful gap for the second-most important input. Roughly baseline for this coverage level.

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 ('writes a draft Markdown document on a topic') and identifies the mechanism ('Anole AI writer') plus destination ('Content Studio'). It implicitly contrasts with the sibling create_document by emphasizing AI generation, but never names that sibling explicitly, leaving the boundary to inference.

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?

Useful context is present: 'free with an Own Key plan' signals a billing prerequisite, and 'Not public until published' hints that publish_document is a follow-up step. However, there is no explicit when-to-use guidance versus create_document or update_document, and the follow-up workflow is only implied.

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.