Skip to main content
Glama

get_target_voltage

Reads the supply voltage of a J-Link target chip so you can verify the target's power state before flashing or debugging STM32 firmware.

Instructions

Get target voltage / 获取目标电压.

Reads the supply voltage of the target chip. 读取目标芯片的供电电压。

Returns: Voltage information / 电压信息

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

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.4/5.0
Behavior3/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; 'Reads' implies a non-mutating operation, which is the main behavioral signal an agent needs for a zero-argument getter. However, it does not state that a connection to the target must be active or what happens (error vs. null) when the target is not connected or not powered.

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 purpose is front-loaded and stated in one short sentence, so scanning is fast. The trailing 'Returns: Voltage information / 电压信息' is largely wasted, especially since an output schema already documents the return shape, and the bilingual duplication doubles length without adding meaning.

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?

For a trivial zero-argument getter with an output schema covering return values, the description says enough about what is read and from where. The only material gap is the missing precondition about an active target connection, which matters for correct invocation.

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 takes no parameters, so there is no parameter meaning for the description to add; the baseline for a zero-parameter tool applies. Nothing in the schema is left unexplained.

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?

States a specific verb and resource: 'Reads the supply voltage of the target chip', which is more precise than the name alone. It does not differentiate against adjacent siblings such as get_target_info or get_cpu_state, so an agent must still infer which to pick when it wants general target state.

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 precondition (such as requiring an established device connection), and no mention of an alternative tool. The agent is left to guess the operational context entirely.

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