Skip to main content
Glama

step_instruction

Executes a single instruction step on a J-Link target to inspect firmware execution flow and diagnose low-level behavior.

Instructions

Step one instruction / 单步执行一条指令.

Returns: Step result / 单步执行结果

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only restates the name and the return value. It does not explain that this mutates target CPU state, what happens if the target is running or disconnected, or what 'step' means at the instruction vs source level.

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 body is very short and front-loaded, with no filler prose. The 'Returns' block is somewhat redundant given an output schema exists, and the bilingual duplication adds length without new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although the tool is simple (zero params) and an output schema covers the return value, the description omits the operational prerequisites that matter most for a debugger single-step: target connection state, halt requirement, and effect on CPU/program counter.

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?

The tool takes zero parameters and the schema description coverage is 100%, so there is nothing to disambiguate. The description does not need to add parameter meaning and does not introduce confusion.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource: 'Step one instruction' (single-step the target CPU). It is unambiguous what the tool does, but it makes no attempt to distinguish itself from related siblings such as halt_cpu or get_cpu_state.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing about needing a halted, connected target, nor when to prefer batch stepping or gdb_batch. The agent must infer all invocation context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.