Skip to main content
Glama

modx_remove_locks

Clears stale MODX manager edit locks left by dead sessions, freeing locked resources or elements so editing can resume.

Instructions

Clear stale manager edit locks (when an element/resource is reported locked by a dead session).

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_remove_locks"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does frame the operation as safe by qualifying the locks as 'stale' and tied to a 'dead session', but it never states the scope of the mutation (does it clear all locks globally, given zero parameters?), the permission level required, or whether the action is reversible. For a mutation tool with zero annotation coverage, these are real omissions.

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?

A single sentence with the action front-loaded and the qualifying condition in a tight parenthetical. There is no filler, and the most important information (what is cleared and why) appears first.

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

Completeness4/5

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

For a zero-parameter operation with no output schema and no annotations, the description supplies the essentials: what it does and the situation that warrants it. It stops short of describing the effect scope and required privileges, which an agent would still want before invoking a lock-clearing mutation.

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 no parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description does not falsely suggest any selectable scope, though it also does not clarify that the operation is global rather than targeted.

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 concrete verb ('Clear') and a specific resource ('stale manager edit locks'), and the parenthetical narrows the target to locks left by a dead session. It does not name any sibling, but no other lock-related tool exists in the sibling list, so the operation is naturally distinguishable.

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?

The trigger condition is stated explicitly: use it 'when an element/resource is reported locked by a dead session.' That is meaningful routing context. The gap is the absence of when-NOT-to-use guidance, e.g. that live-session locks should not be cleared and that the dead session should be confirmed first.

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