Skip to main content
Glama

pyocd_target_wait_halt

Resume target execution and wait for halt to inspect breakpoints, watchpoints, or manual stops. Returns halt reason, PC, registers, and backtrace.

Instructions

Resume target execution and wait for it to halt (breakpoint hit, watchpoint triggered, or manual halt). This is the KEY tool for 'set breakpoint → run → wait for hit → inspect' debugging workflow. Returns halt reason, PC, and registers when the target stops. Sends progress notifications to prevent AI client timeouts during long waits. Automatically includes a compact backtrace (top 4 frames) showing the call chain when halted. Also detects CPU LOCKUP state (double fault) immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNoMax seconds to wait (default 30)
user_hintNoMessage to include in progress notifications (e.g. 'Please send serial data now')
resume_firstNoResume target before waiting (default True)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description carries full burden and excels by disclosing multiple behaviors: progress notifications to prevent timeouts, automatic backtrace inclusion, CPU LOCKUP detection, and return details (halt reason, PC, registers).

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 three sentences, concise and well-structured. It front-loads the core purpose, then details workflow, returns, and special features. No unnecessary words.

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?

Given that an output schema exists (per context), the description adequately covers return values and special behaviors. It provides enough information for an AI agent to understand the tool's complete functionality and usage.

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 100%, so baseline is 3. The description mentions progress notifications (related to 'user_hint') but does not add significant new meaning beyond what the schema already describes for each parameter.

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?

The description clearly states the tool's action ('Resume target execution and wait for it to halt') and the specific debugging workflow it supports ('set breakpoint → run → wait for hit → inspect'). It distinguishes itself from sibling tools like pyocd_target_halt and pyocd_target_resume by focusing on waiting for a halt event.

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?

It explicitly describes the tool as the 'KEY tool' for a common debugging workflow, providing clear context for when to use it. However, it does not explicitly state when not to use it or contrast with alternatives, though the context strongly implies its role.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/konbakuyomu/pyocd-debug-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server