Skip to main content
Glama

jtag_register_write

Write a 32-bit value to a specified gateware debug register over JTAG, such as setting LEDs via selftest register 2.

Instructions

Write a gateware debug register over the JTAG register bridge (e.g. selftest register 2 = LEDs).

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": {
      "address": "<address>",
      "value": "<value>"
    },
    "name": "jtag_register_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes32-bit value to write.
addressYesDebug register address (gateware-defined).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, so the safety profile is covered. The description adds that the write goes over the JTAG register bridge to a gateware-defined address space, which is useful context, but says nothing about whether the bridge must be initialized, whether writes persist past a reconfigure, or what errors surface on an invalid address.

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?

A single front-loaded sentence that names the mechanism, the target, and gives a concrete example, with no filler. Nothing could be removed without losing information.

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?

With an output schema present, return values need not be explained, and both parameters are fully documented in the schema. The only meaningful gap is operational context – whether a bitstream must be loaded first and what the register address space contains – which a slightly longer description could have supplied.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% – both address (0-255, gateware-defined) and value (32-bit) are fully documented in the schema, so the baseline is 3. The description adds only the illustrative mapping of address 2 to LEDs, which is a marginal semantic gain beyond what 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 gives a specific verb ("Write") plus a precise resource ("a gateware debug register over the JTAG register bridge"), and the verb alone separates it from the jtag_register_read sibling. The parenthetical example ("selftest register 2 = LEDs") concretely anchors what a register write does in this system.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is for poking gateware-defined debug registers, and the example shows one legitimate case. There is no explicit when-to-use/when-not guidance, no note about prerequisites such as a configured bitstream, and no pointer to alternatives like gpio_write for non-JTAG paths.

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