Skip to main content
Glama
microhenrio

io.github.microhenrio/openocd-mcp

by microhenrio

add_conditional_breakpoint

Set a breakpoint that halts execution only when a TCL condition evaluates true, using register and memory values for conditional debugging.

Instructions

Add a conditional breakpoint. The target halts at address only if condition evaluates true; otherwise resume/reset-run skips past it.

address : hex address for the breakpoint condition : a TCL expression/block. Use get_reg and get_mem ?width?. It is evaluated when the breakpoint is hit; non-zero = halt.

Examples: 'expr {[get_reg r0] > 100}' 'expr {[get_mem 0x20000000] == 0xdeadbeef}' 'incr ::hit_count; expr {$::hit_count >= 5}'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
conditionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description provides key behavioral details: condition is a TCL expression evaluated at breakpoint hit, non-zero causes halt, and resume/reset-run skips past if false. Examples clarify evaluation binding.

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?

Concise three-paragraph structure: purpose, parameter details, examples. Every sentence adds value, though could be slightly more streamlined.

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?

Covers the core functionality and parameters well, but lacks any description of return values or side effects despite the presence of an output schema. No mention of overwrite behavior or success/failure indication.

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 has 0% description coverage; the description fully compensates by explaining address as hex, condition as TCL expression with get_reg/get_mem syntax, and providing concrete examples.

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?

Clearly states the tool adds a conditional breakpoint, specifying that halting occurs only when condition evaluates true, and differentiates from unconditional breakpoints and resume/skip behavior.

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?

No explicit guidance on when to use this tool versus sibling tools like add_breakpoint or add_watchpoint. Doesn't mention prerequisites or scenarios for choosing conditional over unconditional.

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/microhenrio/openocd-mcp'

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