Skip to main content
Glama

Purge the WordPress cache

wp_cache_purge
Destructive

Empty the page cache and the object cache of a live WordPress site, so the next visit shows the current content. Refusals: not-live, migration-open, deploy-open, busy, failed.

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": {
      "serviceId": "<serviceId>"
    },
    "name": "wp_cache_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceIdYesthe id of a service on this account

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / serviceId / description
      Previous value: -"the service id from list_services"New value: +"the id of a service on this account"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds valuable behavioral context beyond annotations: it scopes the operation to both page and object caches of a live site, states the visible effect, and enumerates concrete refusal states (not-live, migration-open, deploy-open, busy, failed).

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?

Two tightly written sentences with zero waste. The purpose and effect are front-loaded, and the refusal states are listed compactly at the end.

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?

An output schema exists, so return values need not be described. Annotations cover destructiveness. The description adds scope, effect, and refusal modes, making it largely complete for a one-parameter destructive tool. Minor gap: no mention of whether the purge is synchronous or eventually consistent.

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?

With one parameter and 100% schema description coverage, the schema fully documents serviceId. The description adds only an implied constraint that the target must be live, which is already reflected in the schema's service ID semantics. Baseline 3 is appropriate.

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 ('Empty') and resource ('page cache and the object cache of a live WordPress site'), plus the user-facing effect ('next visit shows the current content'). No sibling tool performs cache purging, so it is immediately distinguishable.

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 'so the next visit shows the current content' implies the tool is used when stale content is suspected, and the refusal list hints at conditions (migration-open, deploy-open) under which it will fail. However, there is no explicit when-to-use guidance or naming of alternatives, leaving usage inferred.

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