Skip to main content
Glama

复位目标

reset
DestructiveIdempotent

Restore the target MCU to its initial variable values while keeping breakpoints intact. The target then halts at the entry point; set run_after to resume automatically.

Instructions

复位目标 MCU(变量回到初值、断点保留)。行为说明(真机实测,与旧描述不同):复位后目标停在复位向量、处于停止态,程序不会自行往下跑——必须再调 run(或 run_timeout / run_to_line)才会开始执行;实测复位后 get_status 返回"已停止",正因为不 run 就没有任何串口输出。返回带 state_after_reset(stopped/running)与 stopped_after_reset 说明这一点;run_after=true 可在复位成功后自动 run(等价于复位后自己再调一次 run),适合「重新跑一遍看串口输出」的场景。 【参数】必填: 无;可选: run_after 【调用示例】{} 【风险】高——不可逆:会改写目标 Flash/内存,或关闭/重启用户的 Keil 实例。执行前确认目标与工程正确。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_afterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

A4.8/5.0
Behavior5/5

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

The description goes far beyond the annotations (destructiveHint=true, readOnlyHint=false) by disclosing the exact post-reset state (stopped at reset vector), the need for an explicit run, the get_status result, and the irreversible nature (rewrites flash/memory or restarts Keil). It also explains the run_after parameter's behavior.

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?

The description is structured with bold headers (行为说明, 参数, 调用示例, 风险) and front-loads the core purpose and critical behavioral change. Every sentence adds value, and the risk warning is clearly highlighted.

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

Completeness5/5

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

For a destructive, irreversible operation, the description covers the reset behavior, return fields (state_after_reset, stopped_after_reset), parameter semantics, call example, and risk warning. Even though an output schema exists, the description adds critical context about the return values and post-reset state.

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

Parameters5/5

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

Schema coverage is 0%, so the description fully compensates by explaining run_after: optional, default false, and its purpose (auto-run after reset). The example {} clarifies that no parameters are required.

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

Purpose5/5

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

Description states a specific action (reset target MCU), the resource (target MCU), and clarifies that variables return to initial values while breakpoints are preserved. It clearly distinguishes the purpose from siblings like run or stop.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly explains that after reset the target stops at the reset vector and requires a subsequent run call, and notes run_after for auto-run scenarios. It doesn't explicitly list alternatives for when not to use it, but the context (e.g., '重新跑一遍看串口输出') provides clear usage guidance.

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