Skip to main content
Glama
grandMA2 MCP
by drohi-r

assert_selection_count

Verifies that the selected fixture count matches an expected value within tolerance, helping detect world, filter, or park issues during selection checks.

Instructions

    Assert that $SELECTEDFIXTURESCOUNT matches an expected value.

    Eval step for SelectionAgent. Reads from snapshot — zero telnet cost.
    A mismatch usually indicates a world/filter/park issue.

    Args:
        expected: Expected fixture count.
        tolerance: Acceptable delta (default 0 — exact match).

    Returns:
        str: JSON with passed bool, actual count, expected count, and message.
    

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": {
      "expected": "<expected>"
    },
    "name": "assert_selection_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
expectedYes
toleranceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 behavioral burden and does well: it discloses that the check reads from a snapshot with zero telnet cost, making clear it is a local, side-effect-free read. It also discloses the failure semantics (mismatch indicates world/filter/park issues). It does not cover any permission or state-precondition requirements, which keeps it from a 5.

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?

The core assertion is front-loaded in the first sentence, with context, args, and returns following in a predictable order. The Args/Returns blocks are justified because the schema has no descriptions, though the block formatting is slightly bulkier than necessary for two parameters.

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 two-parameter assertion step, the definition covers purpose, cost profile, failure interpretation, inputs, and return shape. The Returns section partially duplicates the existing output schema, but nothing an agent needs in order to invoke this 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?

Schema description coverage is 0%, so the description must compensate, and it addresses both parameters. The gloss on `expected` is thin (essentially restating the name), but the gloss on `tolerance` adds real meaning: acceptable delta, default 0 meaning exact match, which tells the agent how the comparison is enforced.

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 names a specific verb and resource: asserting that $SELECTEDFIXTURESCOUNT equals an expected value. That system-variable-level specificity immediately separates it from siblings like assert_fixture_exists or assert_preset_exists, which assert different resources.

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 the usage context plainly (an eval step for SelectionAgent) and adds a diagnostic rule of thumb: a mismatch usually points to a world/filter/park issue. It stops short of naming explicit alternatives or when-not-to-use conditions, so it falls just below the top tier.

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