Skip to main content
Glama

mcp_clean_revisions

Deletes old WordPress post revisions while keeping the newest specified number per post to reduce database clutter.

Instructions

Delete old post revisions, keeping the newest keep per post

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": {
      "site": "<site>"
    },
    "name": "mcp_clean_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNoNewest revisions to keep per post (default 5; 0 deletes all)
siteYesSite id (see list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.14.0
    • changedInput schema / properties / keep / description
      Previous value: -"Revisions to keep per post"New value: +"Newest revisions to keep per post (default 5; 0 deletes all)"
    • addedInput schema / properties / keep / minimum
      Added value: +0
    • changedInput schema / properties / keep / type
      Previous value: -"number"New value: +"integer"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "site"
      +]
  3. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the key behavioral trait that the newest N revisions per post are preserved and the rest removed, which is genuinely useful scoping information. However, it never states that deletion is irreversible, what permissions or site scope are required, or what happens on failure — notable gaps for a destructive mutation tool with zero annotation coverage.

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?

A single front-loaded clause with zero filler; the destructive action and the retention rule appear in the first few words. Nothing could be removed without losing meaning.

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 two-parameter tool with complete schema coverage and no output schema, the description covers the essential semantics of the operation. It falls short only on destructive-operation context (irreversibility, scope of effect, permissions) that annotations would normally supply.

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%: `keep` already documents the default of 5 and that 0 deletes all, and `site` points to list_sites. The description's mention of `keep` restates rather than extends the schema, and it adds nothing about the required `site` parameter. Baseline 3 applies given the schema does the heavy lifting.

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?

States a specific verb and resource ('Delete old post revisions') plus the retention rule ('keeping the newest `keep` per post'), so the operation is unambiguous. It does not name or contrast with a sibling such as mcp_clean_comments, so it stops short of full sibling differentiation.

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?

The phrase 'old post revisions' implies a cleanup context in which the tool applies, but there is no explicit when-to-use or when-not guidance and no mention of alternatives or prerequisites (e.g., backup before mass deletion). Usage is inferable rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools