Skip to main content
Glama
grandMA2 MCP
by drohi-r

list_macro_jump_targets

Parse a macro's lines to list all Go Macro jump targets, their current target line numbers, and total line count. Use it before inserting or deleting lines to build an index-shift table.

Instructions

Parse a macro's lines and return all jump targets (Go Macro N."name".L references).

Reads macro lines via the console command tree and identifies all jump
instructions, their current target line numbers, and the total line count.
Use this before inserting or deleting macro lines to build an index-shift table.

Args:
    macro_id: The macro pool ID to inspect.

Returns JSON with:
- macro_id: int
- total_lines: int
- jump_targets: list of {source_line, target_line, raw_command}
- line_listing: ordered list of {line_num, command}

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": {
      "macro_id": "<macro_id>"
    },
    "name": "list_macro_jump_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
macro_idYes

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, the description carries the burden and does reasonably: it says lines are read via the console command tree and that the tool reports current target line numbers plus total line count, implying a read-only inspection. It does not explicitly state that nothing is mutated or whether the macro must exist, but the read-oriented framing is consistent and clear.

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 and usage guidance, then structured Args/Returns sections. The Returns block largely duplicates the existing output schema, which is some dead weight, but the prose itself is tight and readable.

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?

Complete enough for a single-parameter read tool: purpose, trigger condition, parameter meaning, and return shape are all present, and an output schema exists so return values needn't be spelled out. The redundant return listing and missing failure behavior are the only gaps.

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% and the schema only offers 'Macro Id', so the description's clarification that this is 'the macro pool ID to inspect' adds real disambiguation between a pool ID and a macro name. It stops short of format/range details.

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 ('Parse a macro's lines and return all jump targets') and defines jump targets concretely as Go Macro N."name".L references, which no sibling list_* tool covers. An agent can tell exactly what this returns without opening the schema.

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 tells the agent when to reach for it: 'Use this before inserting or deleting macro lines to build an index-shift table.' No alternatives or exclusions are named, but the trigger condition is unusually specific and actionable.

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