Skip to main content
Glama

set_breakpoint

Set a breakpoint at a specified memory address to pause STM32 firmware execution during J-Link debugging and inspect runtime behavior.

Instructions

Set breakpoint / 设置断点.

Args: address: Breakpoint address / 断点地址

Returns: Set result / 设置结果

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "set_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing: not whether the breakpoint persists across resets, whether it errors on a duplicate address, whether it requires a halted target, or whether the target must be connected. "Returns: Set result" conveys no actionable behavior.

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?

It is short and front-loaded, so there is no padding problem. However, the Args/Returns scaffolding and duplicated bilingual text occupy the entire body while conveying no information, so the brevity reflects under-specification rather than efficiency.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but for a debugger breakpoint tool the description omits critical operational context: connection state, halt requirements, breakpoint type, and duplicate handling. Relative to the tool's complexity in a hardware-debug workflow, this is not sufficient.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the description must compensate and it does not. "Breakpoint address / 断点地址" merely re-labels the schema's existing title "Address" without clarifying units, whether it is a flash/RAM absolute address, or whether a symbol name is also acceptable.

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?

The description restates the tool name verbatim ("Set breakpoint / 设置断点") and adds nothing about what kind of breakpoint or on what target. It does not differentiate from the sibling clear_breakpoint or explain the effect on a running/halted CPU, so an agent learns nothing beyond the name.

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 at all: no statement of prerequisites (device connected, CPU halted), no mention of interaction with clear_breakpoint, and no note about hardware vs. software breakpoints. The agent must infer the entire usage context from sibling names.

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