Skip to main content
Glama

remove_breakpoint

Delete a breakpoint by ID, function name, or file and line to stop debugging at that location immediately, whether the program is running, paused, or exited before relaunch.

Instructions

Remove a breakpoint by breakpointId (returned by set_breakpoint / list_breakpoints), by function name, or by file + line (removes all breakpoints at that location). Takes effect immediately while the program is running or paused; also works after the program exits, before a relaunch

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoAlternative addressing: source file path (use together with line)
lineNoAlternative addressing: line number (use together with file)
functionNoAlternative addressing: remove all function breakpoints with this symbol name. Applies the same per-language rewrite as set_breakpoint (e.g. a bare Go "main" matches the stored "main.main"); the response reports the effective name as functionName and, when rewritten, the original as requestedName
sessionIdYes
breakpointIdNoBreakpoint id from set_breakpoint or list_breakpoints. Takes precedence over file + line

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.25.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the destruction scope ('removes all breakpoints at that location') and the lifecycle window in which the removal is honored. It omits failure behavior, e.g. what happens when no matching breakpoint exists or the id is stale.

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?

Two dense sentences with zero filler; the primary addressing mechanism and the immediate-effect semantics are front-loaded before the secondary lifecycle note.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the definition covers targeting and effect timing well enough to call it correctly. The remaining gap is the absence of error/confirmation behavior when no breakpoint matches.

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 description coverage is 80%, so the schema already documents each addressing field, including the function-name rewrite details and breakpointId precedence. The description restates the three modes but adds no syntax or edge-case detail beyond the schema, so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb and resource (remove a breakpoint) and enumerates three distinct addressing modes with their resolution sources, so an agent knows exactly what the call does. It references siblings set_breakpoint and list_breakpoints as id sources but never distinguishes itself from clear_breakpoints, which is the closest alternative for bulk removal.

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?

Gives clear operational context: the removal takes effect immediately while running or paused, and also works after the program exits but before a relaunch. It does not say when to prefer this over clear_breakpoints or how to choose among the three targeting modes when more than one applies.

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