Skip to main content
Glama
grandMA2 MCP
by drohi-r

detect_console_divergence

Compare current grandMA2 console state to a saved baseline to detect changes made outside the MCP session, such as different shows, user/page shifts, or pool additions/deletions.

Instructions

Diff current console state against the recorded baseline (SAFE_READ).

Detects changes made outside this MCP session — a different show loaded,
user/page changes on the physical desk, pool objects added or deleted
(groups, sequences, macros, worlds, filters). Complements the tracked
snapshot for the write-only dimensions (MAtricks, park, filter VTE) that
have no telnet readback: when the pools or vars moved, assume those
write-trackers are stale too.

Call snapshot_console_baseline first; this tool errors without one.

Returns:
    str: JSON with diverged (bool), changed_vars, pool_changes
    (added/removed IDs per pool), baseline_age_seconds, risk_tier.

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": "detect_console_divergence"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden: it declares the operation safe/read-only, states the hard failure condition when no baseline exists, explains the write-only telnet dimension caveat, and sketches the response shape including risk_tier. It omits auth/permission needs and cost, but the behavioral profile is unusually well disclosed.

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?

Front-loaded with the core action, followed by scoping detail, prerequisite, and return shape in a logical order. The write-only-dimensions sentence is dense and slightly tangential, but it earns its place by explaining why the baseline matters.

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

Completeness5/5

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

Despite having an output schema, the description still tells the agent what the call yields and how to interpret it (stale write-trackers when pools/vars moved), plus the mandatory prerequisite. For a zero-parameter read tool with no annotations, nothing an agent needs to call it correctly is missing.

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 there is nothing to disambiguate and the baseline of 4 applies. The description usefully spends its words on return semantics (diverged, changed_vars, pool_changes, baseline_age_seconds, risk_tier) instead of parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: diff the current console state against a recorded baseline, tagged SAFE_READ. It then scopes exactly what kinds of divergence are detected (show load, user/page changes, pool object add/remove by pool type), which is far beyond restating the name.

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?

It states an explicit prerequisite — snapshot_console_baseline must be called first or the tool errors — and clarifies its role relative to the tracked snapshot for write-only dimensions. It stops short of naming an exclusion or alternative for overlapping reads, but the prerequisite and complement framing give clear usage context.

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