Skip to main content
Glama

Replace an article

replace_article
DestructiveIdempotent

Replace an article's title, meta description, slug or full HTML body. Send only the fields to change. The slug must be unique in the workspace, and a published article keeps its slug. Open tracked changes are dropped when the body changes. This saves the article in Rankwise; live_update and next_step in the result say how a published article's live post takes the edit. update_live_post updates the live post in place on WordPress (Rankwise plugin), Next.js (@rankwise/next), Rails (rankwise-rails), the webhook integration and Shopify. On the Rankwise-hosted blog and Framer a saved edit is already live (Framer at its next sync), so there is nothing to push. Webflow, Wix, Notion, Ghost and WordPress.com cannot update a live post from Rankwise: change the post in that CMS by hand. Free.

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": {
      "article_id": "<article_id>"
    },
    "name": "replace_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoThe full article body as HTML. It is sanitised: scripts, styles, frames, forms and event handlers are removed.
slugNo
titleNo
article_idYes
meta_descriptionNo

Output Schema

NameRequiredDescriptionDefault
articleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / article / properties / live_update
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / article / properties / next_step
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true) by naming the specific destructive side effect: open tracked changes are dropped when the body changes. It also explains platform-dependent live-update behaviour and that Framer edits appear at the next sync, which the annotations cannot convey.

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?

Purpose and partial-update rule are front-loaded in the first two sentences, and every paragraph carries real decision-relevant content. The platform enumeration near the end is long, but it directly determines whether a follow-up update_live_post call is needed, so it largely earns its place.

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?

Covers what an agent needs for a destructive mutation: which fields change, side effects on tracked changes and slugs, and how the live-post follow-up differs per platform. With an output schema present, it appropriately only references the live_update and next_step fields rather than describing the full return shape.

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 only 20% (only html is documented in the schema), so the description must compensate. It usefully establishes partial-update semantics for all four optional fields and adds constraints for slug ('must be unique in the workspace', published articles keep it), but adds nothing about title or meta_description formats or limits. Adequate, not compensating fully for the gap.

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 ('Replace an article's title, meta description, slug or full HTML body') and immediately scopes it as a partial update ('Send only the fields to change'). It also distinguishes the tool from its sibling update_live_post by explaining that this one only saves the article in Rankwise.

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?

Explicitly says when to use this tool versus update_live_post, and when not to use the live update flow at all (Webflow, Wix, Notion, Ghost, WordPress.com – edit by hand). It also gives concrete calling conditions: partial field submission, slug uniqueness, published articles keep their slug.

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.