Skip to main content
Glama

get_svd_peripherals

Retrieve all peripherals for a specified device to inspect its SVD-defined hardware features and identify available peripheral modules.

Instructions

Get all peripherals of specified device / 获取指定设备的所有外设.

Args: device_name: Device name (e.g., FC4150F1MBSxXxxxT1A) / 设备名称(如 FC4150F1MBSxXxxxT1A)

Returns: Peripheral list / 外设列表

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": {
      "device_name": "<device_name>"
    },
    "name": "get_svd_peripherals"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/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 behavioral burden. It discloses only that all peripherals are returned; it says nothing about what happens with an unknown device name, whether the call requires a connection, or whether the operation has any side effects.

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

Conciseness4/5

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

The one-line purpose is front-loaded and clear, followed by compact Args/Returns blocks. The verbatim bilingual duplication roughly doubles the length without adding information, which keeps it from a 5.

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?

An output schema exists, so the peripheral list format needn't be explained, and the parameter is illustrated with an example. However, the lack of any pointer to how a device_name is discovered or what errors to expect leaves a real gap for a one-required-parameter lookup tool.

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 0% — the single parameter has only a type, no description. The description partially compensates by providing a concrete example device name format (FC4150F1MBSxXxxxT1A), but it never says where to obtain a valid device_name (e.g., from a device-listing tool).

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 states a specific verb and resource: 'Get all peripherals of specified device', which is distinct from register-level or device-listing tools. It does not explicitly name or contrast with siblings such as get_svd_registers, so it stops short of a 5.

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 guidance on when to use this tool versus alternatives, nor prerequisites such as needing a connected target or a valid device from a device list. Usage is only implied by the verb 'Get'.

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