Skip to main content
Glama

detect_hardware

Identifies the connected debug adapter and physical MCU target so you can confirm hardware before compiling, flashing, or debugging embedded firmware.

Instructions

Identify the connected debug adapter and physical MCU target.

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

Input Schema

NameRequiredDescriptionDefault
board_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It says nothing about whether detection probes or resets the target, whether it can hang or time out, what happens when multiple probes are attached, or how failures are reported.

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 with no filler; the core action and its two resources come first. Nothing is wasted, though brevity here partly reflects under-specification elsewhere.

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?

For a detection entry point with no output schema, the description never indicates what the agent receives back (adapter type, MCU name, connection state) or how to interpret it. Combined with the undocumented board_name parameter, an agent cannot fully predict the call's behavior or result.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions board_name, so its meaning, format, and effect on detection (filter? override? fallback?) are completely undocumented. With one real parameter, this is a clear gap rather than the zero-parameter baseline.

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 uses a specific verb ('Identify') and names both resources it resolves: the connected debug adapter and the physical MCU target. This distinguishes it reasonably well from data-fetching siblings like get_debug_adapter_info, though it never states that distinction explicitly.

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, no mention of prerequisites (e.g., that a probe must be connected), and no reference to alternatives such as get_debug_adapter_info or get_gdb_status. The agent must infer the call context entirely from the purpose sentence.

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