Skip to main content
Glama

get_cpu_state

Retrieve the current CPU state from a J-Link target so you can verify execution status and diagnose STM32 runtime behavior.

Instructions

Get CPU state / 获取 CPU 状态.

Returns: CPU state information / CPU 状态信息

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_cpu_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.3/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether this requires a connected target, whether it is a blocking or cached read, or what the state comprises. The bilingual restatement of the name is the only content, leaving behavior entirely opaque.

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 definition is short and front-loaded, which is good, but half its length is a duplicated Chinese translation and a Returns section that repeats the same words. Every sentence technically earns its place, but collectively they convey almost no information.

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?

The tool is simple (no parameters, no nested objects, and an output schema exists that documents the return value), so the description needn't explain the payload. However, the lack of annotations means the description should at least state connection/prerequisite requirements, and it does not.

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 zero parameters, so there is nothing for the description to disambiguate and the baseline applies. Nothing is misleading about the absence of parameter discussion.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get CPU state" merely restates the tool name and the Returns section restates it again as "CPU state information", adding no specificity. Given siblings like halt_cpu and run_cpu, an agent still cannot tell what "state" covers (running/halted flag, register dump, core count) or how this differs from those tools.

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 such as an active device connection, and no pointer to any alternative tool. The agent must infer everything about applicability from the name alone.

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