Skip to main content
Glama

pg_plan_mode

Inspect or toggle a kernel-level read-only discussion lock to block writes during planning, with optional timed unlocks and pre-unlock snapshots.

Instructions

Inspect or toggle kernel-level Read-Only Discussion Lock (Plan Mode: macOS chflags uchg, browser write gate, daemon exemption, pre-unlock snapshot, optional timed unlock ttl_minutes).

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": {
      "op": "<op>"
    },
    "name": "pg_plan_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
reasonNo
projectNo
ttl_minutesNo
include_daemonsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior beyond the schema: OS-level enforcement via chflags uchg, a browser write gate, a daemon exemption, and a pre-unlock snapshot. However it omits the consequences of unlocking (does the snapshot survive?), required permissions, whether the lock persists across reboots, and how the agent itself is affected while locked.

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 verb and resource are front-loaded, which is good, but the remainder is a single overloaded parenthetical that packs four unrelated mechanisms plus a parameter reference into one clause. It is short but dense rather than genuinely structured.

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 five-parameter mutation tool with no annotations and no output schema, the description covers the mechanism side reasonably well, but nothing is said about what a status call returns or what the agent should expect after a successful lock or unlock. That is a notable gap given the complete absence of structured behavioral metadata.

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 five parameters, so the description must compensate and it largely does not. Only ttl_minutes is connected to its meaning ('optional timed unlock'); reason, project, and include_daemons are left entirely unexplained, with include_daemons only hinted at by the phrase 'daemon exemption'.

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 states a concrete verb pair ('Inspect or toggle') against a named resource ('kernel-level Read-Only Discussion Lock'), and the parenthetical enumerates the enforced mechanisms (chflags uchg, browser write gate, daemon exemption, pre-unlock snapshot). An agent can tell this is a system-level write-lock control rather than a review or slot tool. It loses a point for jargon density and for not contrasting itself with any sibling.

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 statement of when to lock versus unlock versus just check status, no prerequisites, and no indication of when this tool should be preferred over related siblings like pg_slot_open or pg_checkpoint. The reader must infer the workflow entirely from the enum values in the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.