Skip to main content
Glama

Opus Growth, Ad Platforms MCP Connector

Purge WordPress Cache

wordpress_purge_cache
Destructive

Purge a connected WordPress site's page cache — the "Purge All" that a widget, option, SEO or theme-file change needs to actually go live.

wordpress_set_performance already purges LiteSpeed when it flips a speed setting, but editing a widget, an option, an SEO field or a theme file does NOT trigger a purge, so a cached page keeps serving the old version (a LiteSpeed page can stay cached for days). Call this after such a change. It clears whichever page-cache plugin the site runs — LiteSpeed, WP Rocket, W3 Total Cache, WP Super Cache, Cache Enabler, WP Fastest Cache — plus the object cache, and reports which ones it hit.

elementor_regenerate=true ALSO rebuilds Elementor's compiled CSS ("Regenerate CSS & Data"). Use it when a site moved from http to https and Elementor's cached CSS still has http:// font/asset URLs baked in (the usual cause of mixed-content warnings): regenerating rewrites them to https. Needs Connector 0.9.2 or newer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlNo
elementor_regenerateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Added
  12. Removed
  13. Added
  14. Removed
  15. Added
  16. Removed
  17. Added
  18. Removed
  19. Added
  20. Removed
  21. Added
  22. Removed
  23. Added
  24. Removed
  25. Added
  26. Removed
  27. Added
  28. Removed
  29. Added
  30. Removed
  31. Added
  32. Removed
  33. Added
  34. Removed
  35. Added
  36. Removed
  37. Added
  38. Removed
  39. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, and the description adds genuinely new behavioral context: it clears whichever page-cache plugin is installed (six named) plus the object cache, and reports which ones it hit. It also discloses the Elementor CSS rewrite side effect and a Connector version prerequisite (0.9.2+), which 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?

Front-loaded with the core action and the key sibling distinction, and every sentence carries information. It runs long because of the Elementor and plugin-list detail, but nothing is redundant 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?

An output schema exists, so return values needn't be explained, and the description covers the destructive scope, the triggering conditions, the sibling boundary, and the one non-obvious parameter. Nothing needed to call it safely is missing.

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 0%, so the description must carry the load. It explains elementor_regenerate thoroughly (rebuilds Elementor compiled CSS, rewrites stale http:// URLs to https, version requirement), but site_url — including what an empty default does — is only implied by 'a connected WordPress site' and never specified.

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+resource ('Purge a connected WordPress site's page cache') and immediately differentiates from the sibling wordpress_set_performance, which only purges LiteSpeed when flipping a speed setting. An agent can distinguish the two without opening either 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?

Gives explicit when-to-use conditions (after a widget, option, SEO field or theme-file change) and the reason it's needed (those edits don't trigger a purge, so the cache serves stale content for days). It also names the sibling that auto-purges and under what narrow condition, so the boundary is unambiguous.

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.