Skip to main content
Glama

modx_virtualpage_create_route

Create a VirtualPage route for a given URL and HTTP method, optionally binding an event plugin to handle dynamic page requests.

Instructions

Create a VirtualPage route and bind its event plugin if needed.

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": {
      "route": "<route>",
      "method": "<method>"
    },
    "name": "modx_virtualpage_create_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
rankNo
eventNo
routeYes
activeNo
methodYes
handlerNo
event_nameNo
propertiesNo
descriptionNo
handler_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

C2.7/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 behavioral burden and discloses almost nothing: no mention of permissions, duplicate-route behavior, whether binding creates records as a side effect, or whether the operation is reversible. It conveys only that creation is a mutation, which the verb already implies.

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 no redundancy and no filler. It is efficient, though the brevity is partly the cause of the under-specification rather than a virtue in itself.

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

Completeness2/5

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

For a mutation tool with 10 parameters (including a nested object), zero schema descriptions, no annotations and no output schema, one sentence is far from sufficient. An agent cannot determine required field formats, defaults for rank/active, or what the call returns.

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 10 parameters, so the description must compensate and it barely does — it hints at 'route' and 'event' but never explains types or meanings. Fields like rank, active, method, handler_name, event_name and the nested 'properties' object are entirely undocumented anywhere.

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?

States a specific verb and resource ('Create a VirtualPage route') and adds a distinguishing secondary action ('bind its event plugin'), which separates it from modx_virtualpage_update_route, modx_virtualpage_create_event and modx_virtualpage_create_handler. It does not, however, clarify how route creation relates to those sibling event/handler tools.

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 explicit when-to-use guidance: nothing says whether the referenced event/handler must already exist (via modx_virtualpage_create_event / create_handler) before calling this tool, nor when to skip binding. The phrase 'if needed' implies a conditional but never defines the condition.

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