Skip to main content
Glama
grandMA2 MCP
by drohi-r

assert_fixture_exists

Checks whether a fixture ID exists in the console patch before selection or programming, using an indexed snapshot or live telnet lookup.

Instructions

    Assert that a fixture ID exists in the console patch.

    Two-tier lookup:
      1. If a ConsoleStateSnapshot is available and the Fixture pool is
         indexed, performs a zero-telnet check against the in-memory index.
      2. Otherwise sends `list fixture {id}` via telnet and checks for
         "NO OBJECTS FOUND" in the response (same mechanism as park_fixture).

    Use this before any selection or programming operation when the fixture
    ID is not guaranteed to be in the current patch.

    Args:
        fixture_id: The numeric fixture ID to check (e.g. 101).

    Returns:
        str: JSON with exists, fixture_id, source ("snapshot" or "live_telnet"),
             and a hint if the fixture is not found.
    

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": {
      "fixture_id": "<fixture_id>"
    },
    "name": "assert_fixture_exists"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixture_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the two execution paths (in-memory snapshot check vs. live telnet 'list fixture {id}'), the exact failure string it looks for, and the shape of the returned JSON. An agent knows the cost profile (may hit telnet) and the result fields before calling.

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 purpose, then the lookup mechanics, then usage. Information is well organized, but the multi-line docstring formatting is slightly verbose for the amount of content.

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?

Complete for a read-only assertion tool: it explains mechanism, fallback behavior, guidance, parameter meaning, and return fields, even though an output schema already exists.

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?

Schema coverage is 0%, so the description must compensate; it documents the single parameter as a numeric fixture ID with a concrete example (101). That is adequate for a one-parameter tool, though it could note any valid range or formatting constraints.

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: 'Assert that a fixture ID exists in the console patch.' The two-tier lookup and the differing siblings (assert_preset_exists, assert_selection_count) make it clear what this tool uniquely does.

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?

Gives explicit when-to-use guidance: 'Use this before any selection or programming operation when the fixture ID is not guaranteed to be in the current patch.' It also names the sibling mechanism it shares with park_fixture, though it gives no explicit when-not 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