Skip to main content
Glama

modx_virtualpage_clear_cache

Clears VirtualPage route and cache files, then refreshes the MODX cache to resolve stale routing or outdated cached content.

Instructions

Clear VirtualPage route/cache files and refresh MODX cache.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "modx_virtualpage_clear_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It implies a mutation (files are deleted and caches refreshed) but says nothing about scope (all routes vs. one), whether routes are regenerated afterwards, permission requirements, or irreversibility. That is thin for a cache-destroying operation.

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?

A single front-loaded sentence with the action verb first and no filler. It is appropriately sized for a zero-parameter operation, though it could have used one more clause to scope behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple no-param tool with no output schema the description covers the essential action, but the absence of annotations means the behavioral side (destructiveness, scope, follow-up needed) is left entirely unstated, so it is only minimally adequate.

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?

The tool takes zero parameters, so the baseline of 4 applies. The description correctly implies no scoping input is needed, consistent with the empty schema.

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?

Names a specific verb ('Clear') and specific resources ('VirtualPage route/cache files'), plus a secondary effect ('refresh MODX cache'). It does not, however, distinguish this from the sibling modx_clear_cache, leaving real overlap ambiguity 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 Guidelines2/5

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

No statement of when this should be invoked versus modx_clear_cache or the VirtualPage route tools (create/update/delete/list_routes). Usage must be inferred from the name alone; no prerequisites or exclusions are given.

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