Skip to main content
Glama

jtag_scan

Enumerate the JTAG chain through Apollo and return device IDCODEs for chain inspection. Requires Apollo to own the port; running gateware is handed off and can be restored later.

Instructions

Enumerate the JTAG chain through Apollo and return IDCODEs (0x21111043 = LFE5U-12F). Needs Apollo to own the port: if gateware is running it is handed off (its USB disappears; use reconfigure_fpga or run_gateware to get it back). Does not alter the FPGA configuration or flash.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds the crucial non-obvious side effect that the running gateware's USB device disappears and how to recover it, plus an explicit negative guarantee that FPGA configuration and flash are untouched. That is exactly the context an agent needs to avoid surprising a user, and it is consistent with readOnlyHint=false since a handoff is a state change.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with purpose and return value, then the prerequisite and side effect, then the negative guarantee. Nothing is repeated or filler, and the parenthetical IDCODE mapping earns its space.

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

Completeness5/5

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

With zero parameters, an output schema present, and annotations covering open/closed and destructive flags, the remaining burden is the port-ownership side effect and recovery path — both stated. Nothing an agent needs in order to call this safely 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?

The tool takes zero parameters, so there is no parameter meaning to convey and the baseline is 4. The description instead spends its words on the return semantics (IDCODE values), which is the useful information here.

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 ('Enumerate the JTAG chain through Apollo') and names the concrete return value (IDCODEs) with an example decoding (0x21111043 = LFE5U-12F). An agent can distinguish this from the register-level siblings jtag_register_read/jtag_register_write and from reconfigure_fpga without opening any 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?

Explains the operational precondition (Apollo must own the port) and the consequence that triggers an alternative path: if gateware is running it is handed off, and reconfigure_fpga or run_gateware is named to restore it. It does not explicitly contrast with jtag_register_read/write, but the chain-enumeration framing makes the distinction implicit.

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