Skip to main content
Glama

Draft a blog post with AI

generate_article
Destructive

Use this when someone asks you to write a new blog post on a topic or saved topic idea. Returns the draft's id, URL, title, word count and internal links (text only; published only with autoPublish). It uses paid AI and can take about a minute, and a call that times out can still save the draft. Not for saving your own text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicNoTitle and optional angle to write about; omit when topicIdeaId is given
blogIdYesBlog to write for
localeNoLanguage of the post, an ISO 639-1 code; defaults to the blog's default locale
persistNofalse returns a preview without saving anything; defaults to true
autoPublishNotrue publishes the post immediately; defaults to false, a draft
topicIdeaIdNoSaved topic idea to write about; omit when topic is given
sitemapMaxUrlsNoHow many sitemap URLs to offer as internal links, from 1 to 500; defaults to 150

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
articleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / autoPublish / description
      Previous value: -"Publish immediately. Default false (saves as draft)."New value: +"true publishes the post immediately; defaults to false, a draft"
    • changedInput schema / properties / blogId / description
      Previous value: -"Target blog id"New value: +"Blog to write for"
    • changedInput schema / properties / locale / description
      Previous value: -"Locale code (defaults to blog defaultLocale)."New value: +"Language of the post, an ISO 639-1 code; defaults to the blog's default locale"
    • changedInput schema / properties / persist / description
      Previous value: -"Save to Mongo. Default true. Set false for a dry-run preview."New value: +"false returns a preview without saving anything; defaults to true"
    • changedInput schema / properties / sitemapMaxUrls / description
      Previous value: -"Max sitemap URLs to feed the LLM as the allowed internal-link pool (default 150)."New value: +"How many sitemap URLs to offer as internal links, from 1 to 500; defaults to 150"
    • changedInput schema / properties / topic / description
      Previous value: -"Topic to write about. Skip if using topicIdeaId."New value: +"Title and optional angle to write about; omit when topicIdeaId is given"
    • changedInput schema / properties / topicIdeaId / description
      Previous value: -"Use a previously-saved topic idea instead of supplying topic.title."New value: +"Saved topic idea to write about; omit when topic is given"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safety profile (destructive, non-idempotent, open-world); the description adds behavior an agent cannot get from them: paid AI cost, ~1 minute latency, and the critical warning that a timed-out call can still persist the draft. It also ties persist=false to a preview and autoPublish to immediate publishing, which is essential context for a destructive, non-idempotent tool.

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?

Four tight sentences, front-loaded with the trigger condition and zero filler. The enumeration of return fields is mildly redundant given an output schema exists, but it is brief and sandwiched between higher-value disclosures.

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 7-parameter destructive mutation with an output schema, the description covers triggers, cost, latency, timeout behavior, preview and publish semantics, and exclusions. Remaining gaps (authorization/permission requirements, whether blogId must reference an existing blog) are minor given the schema covers parameters and returns.

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 (topic, topicIdeaId, locale, persist, autoPublish, sitemapMaxUrls) is documented in the schema itself. The description only echoes the topic/topicIdeaId choice at a high level, adding no syntax or format detail, so the baseline of 3 applies.

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?

Names a specific verb and resource ('write a new blog post on a topic or saved topic idea') and scopes it to AI generation rather than manual authoring. The closing exclusion, 'Not for saving your own text,' implicitly separates it from create_article, so an agent can route without opening the schema.

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 a clear trigger ('when someone asks you to write a new blog post') and a when-not ('Not for saving your own text'). It stops short of naming the alternative sibling explicitly, leaving the agent to infer that create_article handles user-supplied text.

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