Skip to main content
Glama

Clear caches

fleet__purge_caches
Idempotent

Clear the page cache on each chosen site (up to 50) with the cache plugin it has: ForgeCache, then LiteSpeed Cache, then W3 Total Cache. Optional site_ids (default every connected site). Content is not changed and pages are cached again as visitors load them, so it runs at once with nothing to undo; the reply gives each site's cache plugin and lists sites with none.

Input Schema

NameRequiredDescriptionDefault
site_idsNoRestrict to these site ids. Omit for every eligible site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare non-destructive and idempotent, and the description adds genuinely new behavior: content is untouched, pages re-cache naturally on visitor load, there is nothing to undo, and it executes immediately. It also discloses the response payload — each site's cache plugin plus a list of sites with none.

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?

Front-loaded with the action and scope, then plugin order, then parameter default, then safety/return behavior. Every clause carries information; nothing is repeated from the title or schema.

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?

With no output schema, the description covers the reply shape, and for a one-optional-parameter mutation it covers safety, reversibility, batching limits, and plugin fallback. An agent has everything needed to call it and interpret the result.

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 100%, so site_ids is already documented, but the description adds two facts the schema lacks: the omit-default of every connected site and the 50-site cap on a single call. That is meaningful added semantics beyond the structured field.

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 ('Clear the page cache') plus the exact scope ('on each chosen site') and the plugin precedence order (ForgeCache → LiteSpeed → W3 Total Cache). No sibling tool performs cache purging, and the definition makes that scope unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: the default is every connected site when site_ids is omitted, and the batch is capped at 50. It does not name any when-not-to-use conditions (e.g., mid-deploy or during a maintenance window), but with no comparable sibling the routing risk is low.

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