Skip to main content
Glama

scan_target_devices

Scans the JTAG chain or SWD bus to identify all connected target devices before flashing or debugging an STM32 project.

Instructions

Scan devices on target bus / 扫描目标总线上的设备.

Scans all devices on the JTAG chain or SWD bus. 扫描 JTAG 链或 SWD 总线上的所有设备。

Returns: Scan results / 扫描结果

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

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.2/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It discloses the bus types and says it returns scan results, but it does not state whether the scan is read-only, whether a connection must already exist, whether it can disturb the target, or what prerequisites apply.

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

Conciseness3/5

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

The description is short and front-loads the core action, but the English and Chinese versions repeat the same information, and 'Returns: Scan results' is largely tautological given that an output schema exists. Some words do not add meaning beyond what is already structured.

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

Completeness3/5

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

For a zero-parameter scan tool with an output schema, the description covers the basic action and bus scope. However, with no annotations, it should ideally say whether prior connection is required and whether scanning has side effects; those operational details are 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 has zero parameters, so there is no parameter semantics gap to compensate for. The baseline score of 4 is appropriate because the description does not need to explain inputs.

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 and resource, 'Scan devices,' and clarifies the scope as the JTAG chain or SWD bus. It is clear what the tool does, but it does not explicitly distinguish itself from sibling listing tools such as list_jlink_devices or list_svd_devices.

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?

The phrase 'Scans all devices on the JTAG chain or SWD bus' implies the tool is used to discover devices on a target bus. However, it gives no explicit when-to-use guidance, no when-not-to-use conditions, and no alternative tools for related device-discovery needs.

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