Skip to main content
Glama

Draft an article

create_article_draft

Drafts an article about one of the signed-in person's products: what they built, learned or launched. The body is Markdown (headings, lists, tables, links, code; no raw HTML). Calling twice makes two drafts. To show a product's tech stack, draft the text and then call add_stack_embed rather than typing a table of tools: the card stays current and links each tool. For search: the title is the page's search title, so keep it to 60 characters with the phrase people search for first; the subtitle is its search description, so make it one sentence of 120 to 160 characters saying what the reader gets; open with a paragraph that answers the title; give the body ## headings (they build the contents) and 300+ words; link to related Shipfolio pages. searchHints in the result says what this draft could still change. The article is saved as a draft only: nothing is published. The author reviews it, adds a cover image or data embeds and publishes it in the Shipfolio editor at editUrl. Needs the write scope. Before calling, show the user exactly what will change and wait for them to confirm.

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": {
      "listing": "<listing>",
      "title": "<title>",
      "body": "<body>"
    },
    "name": "create_article_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe article in Markdown, at most 40,000 characters
titleYesThe headline and search title: 60 characters or fewer shows in full on Google, at most 120
listingYesThe listing's slug or id the article is about
subtitleNoA one-sentence standfirst under the headline, used as the search description: 120 to 160 characters, at most 240
nicheTagsNoUp to 3 niche slugs from list_niches, e.g. ["invoicing"]

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
titleYes
statusYes
editUrlYes
productYes
subtitleYes
nicheTagsYes
wordCountYes
publishedAtYes
searchHintsYes
publishesLeftYes
readingMinutesYes
allowanceResetsAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / subtitle / description
      Previous value: -"A one-line standfirst under the headline, at most 240 characters"New value: +"A one-sentence standfirst under the headline, used as the search description: 120 to 160 characters, at most 240"
    • changedInput schema / properties / title / description
      Previous value: -"The headline, at most 120 characters"New value: +"The headline and search title: 60 characters or fewer shows in full on Google, at most 120"
    • addedOutput schema / properties / searchHints
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "title",
      -  "subtitle",
      -  "status",
      -  "product",
      -  "wordCount",
      -  "readingMinutes",
      -  "nicheTags",
      -  "publishedAt",
      -  "url",
      -  "editUrl",
      -  "publishesLeft",
      -  "allowanceResetsAt"
      -]New value: +[
      +  "id",
      +  "title",
      +  "subtitle",
      +  "status",
      +  "product",
      +  "wordCount",
      +  "readingMinutes",
      +  "nicheTags",
      +  "publishedAt",
      +  "url",
      +  "editUrl",
      +  "publishesLeft",
      +  "allowanceResetsAt",
      +  "searchHints"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already disclose non-read-only, non-idempotent, non-destructive; the description adds the rest: the result is a draft only, nothing is published, non-idempotency (two calls = two drafts), a required write scope, and the human confirmation gate. The only remaining gap is that it doesn't say what the response payload contains beyond "searchHints in the result," though the output schema covers that.

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?

Front-loads the core action and the key constraint (draft, not published), and the add_stack_embed redirect is well placed. However, the middle section is a dense multi-topic run-on mixing SEO rules, structural rules, and result hints without breaks, so scanning costs more than it should.

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 content-creation tool with a rich output schema, it covers everything an agent needs: inputs, content requirements, the follow-up embed tool, the confirmation requirement, permissions, and the handoff to the editor at editUrl. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds editorial meaning the schema lacks: body is Markdown without raw HTML, headings build a table of contents, 300+ words, internal links to Shipfolio pages, and title/subtitle character guidance for search. It stops short of explaining listing or nicheTags semantics, which are only inferable from the schema examples.

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?

States a specific verb and resource with scope: "Drafts an article about one of the signed-in person's products: what they built, learned or launched." It also distinguishes itself from the edit path by warning "Calling twice makes two drafts," so an agent can tell it apart from update_article_draft.

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 explicit routing: instead of typing a tool table, "draft the text and then call add_stack_embed." It also states a pre-call obligation ("show the user exactly what will change and wait for them to confirm") and a clear termination state ("saved as a draft only: nothing is published"), including who does the remaining work.

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