Skip to main content
Glama
grandMA2 MCP
by drohi-r

scan_console_indexes

Iterate numeric indexes under a chosen console path to list child objects and reset to a base location; stops after consecutive empty indexes to map pools and cues.

Instructions

Scan numeric indexes via cd N → list → cd <reset_to>.

For each index N from 1 to max_index:
  1. cd N           — navigate into that index
  2. list           — enumerate children there
  3. cd <reset_to>  — return to the base location for the next iteration

The reset_to destination controls what each cd N is relative to:
  - "/"          (default) scan root-level indexes (Showfile, TimeConfig, …)
  - "Sequence"   reset to Sequence pool → cd N enters Sequence N → list shows its cues
  - "Group"      reset to Group pool → cd N enters Group N

Stops early after stop_after_failures consecutive indexes with no entries.

Args:
    reset_to: Where to navigate after each list before the next cd N (default "/").
    max_index: Highest index to try (default 50).
    stop_after_failures: Stop after this many consecutive empty indexes (default 3).

Returns:
    str: JSON with a list of scan results — one entry per index that
         returned list output, each with index, location, object_type,
         and parsed entries (object_type, object_id, name).

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

Input Schema

NameRequiredDescriptionDefault
reset_toNo/
max_indexNo
stop_after_failuresNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does well on the algorithm and on early termination ('stops early after stop_after_failures consecutive indexes with no entries'), but it never states that the tool moves the live console location or where the console is left after the scan finishes — a material behavioral fact for a navigation-driven tool. Permission requirements and failure/error behavior are also unaddressed.

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 purpose is front-loaded in a single line, and the numbered loop plus the reset_to table are easy to parse. The trailing 'Returns:' block largely restates what the declared output schema already covers, so a small amount of the text does not earn its place.

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 three-parameter, loop-driving tool this covers the loop mechanics, the meaning of each argument, and the stopping rule; the output schema handles return values. What is missing is post-scan state (final console location) and any note on partial failures mid-scan.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 entirely, and it does: all three arguments are documented with defaults and, for reset_to, a table of accepted values with their meanings. That goes well beyond the bare type/title/default the schema provides.

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 (scan numeric indexes on the console) and immediately explains the mechanism: iterate N from 1 to max_index via cd N, list, cd reset_to. The worked examples ('Sequence' → cues, 'Group' → groups) make the scope concrete enough to distinguish it from straightforward navigation or state-reading siblings.

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?

Usage context is conveyed through the reset_to table, which tells the agent which base location to choose for each scanning goal (root-level objects, Sequence pool, Group pool). It stops short of naming alternatives such as navigate_console or get_console_state for single reads, and offers no explicit 'do not use when' guidance.

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