Skip to main content
Glama

modx_virtualpage_update_route

Update a VirtualPage route by ID to change its path, handler, event, rank, method, active status, or properties. Use it to correct or reconfigure routing for dynamic MODX pages.

Instructions

Update a VirtualPage route by id.

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": {
      "id": "<id>"
    },
    "name": "modx_virtualpage_update_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
rankNo
eventNo
routeNo
activeNo
methodNo
handlerNo
event_nameNo
propertiesNo
descriptionNo
handler_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden for a mutation tool, and it discloses almost nothing. It does not say whether omitted optional fields are left unchanged or reset, whether the update is destructive or reversible, what permissions are required, or whether the route cache is invalidated (a notable concern given modx_virtualpage_clear_cache exists).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, which is structurally good. However, at this level of brevity it becomes under-specification rather than conciseness for an 11-parameter mutation tool.

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

Completeness1/5

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

With 11 parameters, zero schema coverage, no annotations, no output schema, and a nested object, this definition omits essentially everything an agent needs to invoke the tool safely. The agent cannot know valid values, update semantics, or side effects from this description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 11 parameters, so the description must compensate and does not. 'By id' confirms that id is the lookup key, but the ten other parameters (rank, event, route, active, method, handler, event_name, properties, description, handler_name) receive no explanation, and the nested 'properties' object is entirely opaque. The numeric typing of 'active' and 'handler' is likewise unexplained.

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?

The description gives a specific verb and resource ('Update a VirtualPage route') and states the key ('by id'), which cleanly separates it from the many other virtualpage siblings such as _update_event and _update_handler. It stops short of any differentiation beyond the resource name, but the resource name is distinctive enough to identify the tool.

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?

There is no guidance on when to use this versus modx_virtualpage_create_route, _get_route, or _resolve_route, and no prerequisites or preconditions are stated. The agent must infer that the route must already exist from the word 'Update' alone.

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