Skip to main content
Glama
grandMA2 MCP
by drohi-r

assert_showfile_unchanged

Verify the currently open show matches the baseline captured at last hydration before committing destructive changes, preventing edits to the wrong show.

Instructions

    Verify the currently open show matches the baseline captured at last hydration.

    Performs a live ListVar read and compares $SHOWFILE against the cached
    ConsoleStateSnapshot. Use this before committing a batch of DESTRUCTIVE
    changes to confirm the operator has not loaded a different show since
    the last hydrate_console_state call.

    Returns:
        JSON with {"ok": true, "showfile": name} when unchanged.
        JSON with {"ok": false, "expected": baseline, "actual": live}
        when the show has changed.
        JSON with {"ok": false, "reason": "..."} when not yet hydrated
        or telnet is unavailable.

    Risk tier: SAFE_READ
    

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

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 present, the description carries the full burden and does so well: it discloses that a live ListVar read (network I/O) is performed against a cached snapshot, declares the SAFE_READ risk tier, and enumerates failure modes (not yet hydrated, telnet unavailable). It stops short of describing latency, concurrency safety, or what side effects the live read might have on a connected console.

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 purpose sentence followed by the operational rationale and a structured Returns block; every sentence is useful. The Returns block partially duplicates the existing output schema, which is mild redundancy, but it aids scanning.

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?

For a zero-parameter guard/assertion tool, an agent gets everything needed: purpose, prerequisite (prior hydration), the destructive-change context that motivates calling it, the exact success and failure response shapes, and the risk tier. Nothing required to invoke 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 correctly frames the tool as operating on implicit session state (current show, cached snapshot) rather than on arguments.

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?

States a specific verb and resource (verify the open show matches the baseline snapshot) and names the exact mechanism ($SHOWFILE read vs. cached ConsoleStateSnapshot). This clearly distinguishes it from get_showfile_info (raw read) and hydrate_console_state (snapshot creation).

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?

Explicitly says when to use it: before committing a batch of DESTRUCTIVE changes, to confirm the operator has not loaded a different show since the last hydrate_console_state call. That also establishes the prerequisite ordering. It does not state a when-not condition or contrast with a specific alternative assertion tool, keeping it just below a 5.

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