Skip to main content
Glama

removeBreakpoint

Remove a breakpoint from a debug session to continue program execution without interruption. Specify the session ID and breakpoint ID to clear debugging stops.

Instructions

Remove a breakpoint

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesID of the debug session
breakpointIdYesID of the breakpoint to remove

Implementation Reference

  • Switch case implementing the removeBreakpoint tool: extracts breakpointId, sends ClearBreakpoint command to the debug session via sendDelveCommand, deletes the breakpoint from session state, and returns a confirmation message.
    case "removeBreakpoint": {
      const { breakpointId } = args;
      await sendDelveCommand(session, "ClearBreakpoint", { id: breakpointId });
      session.breakpoints.delete(breakpointId);
    
      return {
        content: [{
          type: "text",
          text: `Removed breakpoint ${breakpointId}`
        }]
      };
    }
  • Input schema definition for the removeBreakpoint tool, specifying required sessionId (string) and breakpointId (number).
    {
      name: "removeBreakpoint",
      description: "Remove a breakpoint",
      inputSchema: {
        type: "object",
        properties: {
          sessionId: {
            type: "string",
            description: "ID of the debug session"
          },
          breakpointId: {
            type: "number",
            description: "ID of the breakpoint to remove"
          }
        },
        required: ["sessionId", "breakpointId"]
      }
    },
  • src/server.ts:410-413 (registration)
    Dispatch logic in CallToolRequest handler that routes removeBreakpoint (and other control commands) to the handleControlCommands function for execution.
    // Control commands
    if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) {
      return handleControlCommands(name, args);
    }
  • src/server.ts:64-397 (registration)
    The ListToolsRequestHandler that registers removeBreakpoint by including it in the returned list of available tools with its schema.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return {
        tools: [
          // Debug tools
          {
            name: "debug",
            description: "Start debugging a Go package",
            inputSchema: {
              type: "object",
              properties: {
                package: {
                  type: "string",
                  description: "Package to debug (defaults to current directory)"
                },
                buildFlags: {
                  type: "string",
                  description: "Build flags to pass to the compiler"
                }
              }
            }
          },
          {
            name: "attach",
            description: "Attach to a running process",
            inputSchema: {
              type: "object",
              properties: {
                pid: {
                  type: "number",
                  description: "Process ID to attach to"
                }
              },
              required: ["pid"]
            }
          },
          {
            name: "exec",
            description: "Debug a precompiled binary",
            inputSchema: {
              type: "object",
              properties: {
                binary: {
                  type: "string",
                  description: "Path to the binary"
                },
                args: {
                  type: "array",
                  items: { type: "string" },
                  description: "Arguments to pass to the binary"
                }
              },
              required: ["binary"]
            }
          },
          {
            name: "test",
            description: "Debug tests in a package",
            inputSchema: {
              type: "object",
              properties: {
                package: {
                  type: "string",
                  description: "Package to test (defaults to current directory)"
                },
                testFlags: {
                  type: "array",
                  items: { type: "string" },
                  description: "Flags to pass to go test"
                }
              }
            }
          },
          // Control tools
          {
            name: "setBreakpoint",
            description: "Set a breakpoint in the debugged program",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                },
                file: {
                  type: "string",
                  description: "File path where to set the breakpoint"
                },
                line: {
                  type: "number",
                  description: "Line number for the breakpoint"
                },
                condition: {
                  type: "string",
                  description: "Optional condition for the breakpoint"
                }
              },
              required: ["sessionId", "file", "line"]
            }
          },
          {
            name: "removeBreakpoint",
            description: "Remove a breakpoint",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                },
                breakpointId: {
                  type: "number",
                  description: "ID of the breakpoint to remove"
                }
              },
              required: ["sessionId", "breakpointId"]
            }
          },
          {
            name: "continue",
            description: "Continue program execution",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                }
              },
              required: ["sessionId"]
            }
          },
          {
            name: "next",
            description: "Step over to next line",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                }
              },
              required: ["sessionId"]
            }
          },
          {
            name: "step",
            description: "Step into function call",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                }
              },
              required: ["sessionId"]
            }
          },
          {
            name: "stepout",
            description: "Step out of current function",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                }
              },
              required: ["sessionId"]
            }
          },
          {
            name: "variables",
            description: "List local variables in current scope",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                }
              },
              required: ["sessionId"]
            }
          },
          {
            name: "evaluate",
            description: "Evaluate an expression in current scope",
            inputSchema: {
              type: "object",
              properties: {
                sessionId: {
                  type: "string",
                  description: "ID of the debug session"
                },
                expr: {
                  type: "string", 
                  description: "Expression to evaluate"
                }
              },
              required: ["sessionId", "expr"]
            }
          },
          // Advanced debug tools
          {
            name: "core",
            description: "Examine a core dump",
            inputSchema: {
              type: "object",
              properties: {
                executable: {
                  type: "string",
                  description: "Path to the executable that produced the core dump"
                },
                corePath: {
                  type: "string",
                  description: "Path to the core dump file"
                }
              },
              required: ["executable", "corePath"]
            }
          },
          {
            name: "dap",
            description: "Start a DAP (Debug Adapter Protocol) server",
            inputSchema: {
              type: "object",
              properties: {
                clientAddr: {
                  type: "string",
                  description: "Optional address where DAP client is waiting for connection"
                }
              }
            }
          },
          {
            name: "replay",
            description: "Replay an rr trace",
            inputSchema: {
              type: "object",
              properties: {
                tracePath: {
                  type: "string",
                  description: "Path to the rr trace directory"
                },
                onProcess: {
                  type: "number",
                  description: "Optional PID to pass to rr"
                }
              },
              required: ["tracePath"]
            }
          },
          {
            name: "trace",
            description: "Trace program execution",
            inputSchema: {
              type: "object",
              properties: {
                regexp: {
                  type: "string",
                  description: "Regular expression to match functions to trace"
                },
                pkg: {
                  type: "string",
                  description: "Package to trace (defaults to .)"
                },
                ebpf: {
                  type: "boolean",
                  description: "Use eBPF for tracing (experimental)"
                },
                stack: {
                  type: "number",
                  description: "Show stack trace with given depth"
                },
                pid: {
                  type: "number",
                  description: "Pid to attach to"
                }
              },
              required: ["regexp"]
            }
          },
          // Configuration tools
          {
            name: "version",
            description: "Get Delve version information",
            inputSchema: {
              type: "object",
              properties: {}
            }
          },
          {
            name: "setBackend",
            description: "Set the backend for debugging",
            inputSchema: {
              type: "object",
              properties: {
                backend: {
                  type: "string",
                  description: "Backend to use (default, native, lldb, or rr)",
                  enum: ["default", "native", "lldb", "rr"]
                }
              },
              required: ["backend"]
            }
          },
          {
            name: "configureLogging",
            description: "Configure debug logging",
            inputSchema: {
              type: "object",
              properties: {
                components: {
                  type: "array",
                  items: {
                    type: "string",
                    enum: ["debugger", "gdbwire", "lldbout", "debuglineerr", "rpc", "dap", "fncall", "minidump", "stack"]
                  },
                  description: "Components to enable logging for"
                },
                destination: {
                  type: "string",
                  description: "Log destination (file path or file descriptor)"
                }
              },
              required: ["components"]
            }
          }
        ]
      };
    });
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Remove a breakpoint' implies a mutation (deletion), but it doesn't specify effects (e.g., whether execution stops, if it's reversible, permissions needed, or error handling). For a mutation tool with zero annotation coverage, this leaves critical behavioral traits unexplained.

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 a single, efficient sentence with zero waste—'Remove a breakpoint' is front-loaded and directly states the action. It's appropriately sized for a simple tool, though this conciseness comes at the cost of detail in other dimensions.

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?

Given the tool's complexity (a mutation operation in debugging), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects, usage context, or return values, leaving significant gaps for an AI agent to understand how to invoke it correctly in a debugging workflow.

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?

The input schema has 100% description coverage, with clear documentation for 'sessionId' and 'breakpointId'. The description adds no additional meaning beyond the schema, such as explaining parameter relationships or constraints. With high schema coverage, the baseline score of 3 is appropriate as the schema handles parameter semantics adequately.

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

Purpose3/5

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

The description 'Remove a breakpoint' states the action (remove) and target (breakpoint), providing a basic purpose. However, it lacks specificity about what a breakpoint is in this context (debugging) and doesn't differentiate from sibling tools like 'setBreakpoint' or 'continue', making it vague rather than clearly distinct.

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 guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an active debug session), exclusions, or how it relates to sibling tools like 'setBreakpoint' (for adding breakpoints) or 'continue' (for resuming execution). The description alone offers no usage context.

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/dwisiswant0/delve-mcp'

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