Skip to main content
Glama

run_selftest

Load selftest gateware and run hardware self-tests for the debug module, PHYs, and HyperRAM, stopping current gateware; optionally reboot flashed gateware afterward.

Instructions

Load the selftest gateware and run the hardware self-tests (debug module, PHYs, HyperRAM). Stops the running gateware.

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

Input Schema

NameRequiredDescriptionDefault
restore_afterNoReboot the flashed gateware once tests are done.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the description's disclosure that this 'stops the running gateware' adds genuinely useful state-change context the agent would otherwise not have. It still does not say whether the board is left in selftest mode, what happens if a test fails, or how long the run takes.

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?

Two short sentences, zero filler, with the action front-loaded and the disruptive side effect stated second where it is most likely to be read. Every clause earns its place.

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?

An output schema exists, so return values need not be explained, and the annotations plus the 'stops the running gateware' note cover the safety profile. What is missing is failure behavior and the resulting board state after the run, which matters for a tool that interrupts live gateware.

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?

The single parameter restore_after already has a full schema description ('Reboot the flashed gateware once tests are done'), so coverage is 100% and the baseline of 3 applies. The description mentions no parameter behavior, leaving the schema to carry the load.

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?

Names a specific verb ('run') and resource ('hardware self-tests') and enumerates the test targets (debug module, PHYs, HyperRAM), which distinguishes it from run_gateware by the selftest gateware it loads. It does not explicitly name the sibling it differs from, so it falls short of the top band.

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: reach for this when you want hardware self-tests rather than normal gateware operation. There is no explicit when-not-to-use statement, no named alternative (e.g., run_gateware), and no prerequisites such as whether a board must be connected or idle.

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