Skip to main content
Glama

全速运行

run

Start target MCU execution at full speed after a halt. Stop the target before reading memory or registers.

Instructions

让目标 MCU 全速运行(启动执行)。注意:run 后目标全速运行,此时读内存/寄存器/表达式会失败或错位(异步消息堆积),需先 stop 再读。目标运行期间 UVSOCK 会推送异步消息。若期望'运行到某断点停住',请以 get_current_location 实测 PC 停靠位置为准,run 本身返回的停靠信息不可信(PC 可能为脏值)。关于'看不到现象':调试是 halt 式的——只要 MCP/Keil 保持调试连接,目标要么被挂起、要么在被断点拦停,外设现象(LED、串口输出、周期动作)会随之停滞,这是调试的本质而非工具缺陷。要看真实运行现象,请在 run 之后不要再 stop/读内存/读寄存器,让目标自由运行;需要恢复观察时先 exit_debug(退出调试后目标按复位/运行设置自由执行)。 【参数】无(直接调用) 【调用示例】{} 【风险】中——会改变目标状态或占用共享资源(调试态/串口/Keil 实例),必要时可回退。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations (readOnlyHint=false, idempotentHint=false): the async message pileup that corrupts memory/register reads while running, the unreliable dirty PC value in run's return, the halt-type debug nature where peripherals stall while the debugger is connected, and the UVSOCK async message push. These are critical, non-obvious behaviors that annotations cannot express. No contradiction with annotations — mutation semantics match readOnlyHint=false.

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?

Front-loaded with the core purpose, then caveats, then the free-run guidance. Each section carries genuinely useful information for correct use. It is on the verbose side — the 看不到现象 philosophical explanation of halt-type debugging could be tightened — but for a debug tool with these non-obvious behaviors, the length is largely justified and every sentence earns its place.

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?

Complete for a tool of this complexity: output schema covers return values, annotations cover the safety profile, and the description thoroughly covers the behavioral gotchas (async pileup, dirty PC, halt-type semantics, free-run procedure) plus the medium risk and call example. Nothing an agent needs to call it correctly is 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?

Zero parameters with 100% schema coverage (trivially, an empty schema), so the baseline of 4 applies. The description explicitly notes 无(直接调用) and shows the empty call example, confirming no parameters need explanation. Nothing more is needed.

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?

States a specific action — 让目标 MCU 全速运行(启动执行) — with a clear resource (target MCU) and verb (full-speed run/start execution). It implicitly distinguishes itself from siblings like step (single-step) and run_timeout (timed run), and the title 全速运行 reinforces the purpose. Nothing is vague or tautological.

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?

Provides strong contextual guidance: warns that reading memory/registers after run will fail and that stop is required first, and instructs using get_current_location to verify PC position instead of trusting run's returned stop info, plus exit_debug for free-running. However, it never explicitly routes to named siblings (e.g., 'use step for single-stepping' or 'use run_timeout for bounded runs'), so the when-to-use vs alternative guidance is rich but not fully explicit.

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