Skip to main content
Glama
grandMA2 MCP
by drohi-r

scan_page_executor_layout

Scans executor slots on a grandMA2 page and maps occupied, blocked, and free ranges so you can verify adjacent slots are free before setting an executor width.

Instructions

Scan a range of executors on a page and return their slot occupancy map (SAFE_READ).

Queries each executor in the range via 'List Executor page.id' (KEY=VALUE format),
extracts Name, Sequence, and Width. Builds an occupancy map showing which consecutive
slots are blocked by wide executors, and lists free slots.

Use this BEFORE setting width on an executor to confirm the adjacent slot is free.
A width=2 executor at slot N blocks slot N+1; the console will silently fail or wrap
if N+1 is already occupied.

Args:
    page: Page number to scan (default 1).
    executor_id_start: First executor ID to check (default 201).
    executor_id_end: Last executor ID to check (default 240).

Returns:
    str: JSON with:
      - executors: list of {id, name, sequence, width, slots_occupied}
      - blocked_slots: set of slot IDs consumed by multi-wide executors
      - free_slots: slot IDs in range with no assignment

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_page_executor_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
executor_id_endNo
executor_id_startNo

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?

No annotations are supplied, so the description has to carry the whole burden. It labels the operation SAFE_READ, explains the underlying query mechanism ('List Executor page.id' in KEY=VALUE format), and warns about the concrete failure mode when a slot collision happens. It doesn't discuss cost or performance (40 executor queries), whether it is paginated, or any permission requirements.

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 structure is front-loaded: the one-line summary comes first, followed by the mechanism, the usage guidance, then Args and Returns. The Args and Returns sections restate schema defaults and the output schema, which is slightly redundant, but nothing is filler to the point of being clearly wasted.

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 read-only scanning tool with three optional parameters, the description covers the purpose, the mechanism, when to use it, and the shape of the output. Since an output schema exists, the Returns block is not required, and the only real gap is guidance on range size or scanning cost.

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 has to explain the parameters itself, and it does document all three, including their defaults and what each one bounds. It implies that executor IDs correspond to slot numbers but does not say explicitly whether they do or how to handle an inverted range.

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 and resource: 'Scan a range of executors on a page and return their slot occupancy map'. It also scopes the result to slot occupancy, which separates it from sibling listing tools like get_page_map or scan_console_indexes without needing their schemas.

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 gives an explicit precondition: 'Use this BEFORE setting width on an executor to confirm the adjacent slot is free', and it explains the cost of skipping the check (the console silently fails or wraps). It doesn't name a specific alternative or a when-not-to-use case, which keeps it short of 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