Skip to main content
Glama

Generate article

generate_article
Destructive

Write a new AI article for a keyword. It uses the same research-and-cite writer as Autopilot: real sources, links only to pages that exist, a closing call to action, and Article and FAQ schema. This counts as 1 article from the plan, whatever the keyword (check get_plan_and_credits first). The article is generated in the background and is NOT published: call publish_article for that. Retries with the same idempotency_key never spend twice.

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": {
      "keyword": "<keyword>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "generate_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
toneNo
lengthNoAccepted and ignored. Every article is written at one standard length and counts as 1 article.
keywordYesThe topic or search keyword
languageNo
article_typeNoauto (default, chosen from the keyword), how_to, explainer, comparison, reference or listicle
integration_idNoA connected CMS in this workspace, used for internal links and later publishing
idempotency_keyYes

Output Schema

NameRequiredDescriptionDefault
articleYes
next_stepNo
credits_spentNo
already_existedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / article / properties / live
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / length / description
      Previous value: -"short 1,200-1,600 words, medium 1,600-2,400 (default), long 2,400-3,200, comprehensive 3,200-4,200"New value: +"Accepted and ignored. Every article is written at one standard length and counts as 1 article."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, idempotentHint=false and readOnlyHint=false, and the description adds real context beyond them: the cost model ('counts as 1 article from the plan, whatever the keyword'), that generation is asynchronous/background, and that output is not published. The only ambiguity is that 'never spend twice' is narrowly scoped to credits while idempotentHint=false says repeat calls are not idempotent — this is a scoping nuance rather than a contradiction, but it does leave the agent guessing whether a retry yields a duplicate article.

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?

Four sentences, each carrying a distinct load-bearing fact: what it produces, what it costs, that it is async and unpublished, and the retry guarantee. Key constraints (cost check, publish follow-up) are front-loaded rather than buried, and there is 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?

For a 7-parameter, credit-consuming, async generation tool with an output schema, the description covers everything an agent needs to call it correctly: prerequisite check, cost, non-publishing behavior, retry semantics, and the follow-up tool. Return values need not be described because an output schema exists.

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 57%, so about half the parameters carry their own documentation (keyword, article_type, integration_id, length are all described in-schema). The description contributes meaningful semantics only for idempotency_key (retry/billing behavior) and reinforces that length is 'accepted and ignored', while tone and language remain unexplained in both places. That matches the baseline 3 for a partially documented schema.

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?

The opening sentence gives a specific verb and resource ('Write a new AI article for a keyword') and immediately scopes it against siblings by stating the output is NOT published and that publish_article handles that. It also names the writer pipeline and the artifacts produced (real sources, live links, CTA, Article and FAQ schema), so an agent can tell it apart from replace_article or bulk_replace_articles without opening any schema.

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?

It gives explicit prerequisites ('check get_plan_and_credits first'), an explicit exclusion with the correct alternative ('The article is generated in the background and is NOT published: call publish_article for that'), and a retry rule ('Retries with the same idempotency_key never spend twice'). When-to-use and when-not-to-use are both present with no inference required.

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.