Skip to main content
Glama

set_breakpoints

Set line, conditional, hit-count, or log breakpoints in a source file for an active debug session so you can pause execution at the exact code locations you need.

Instructions

Set breakpoints in a source file for an active debug session.

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": {
      "file": "<file>",
      "breakpoints": "<breakpoints>"
    },
    "name": "set_breakpoints"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesAbsolute path to the source file
sessionIdNoSession ID (omit if only one session is active)
breakpointsYesBreakpoints to set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and delivers only the prerequisite that a session must be active. It does not say whether the call replaces all existing breakpoints in the file or appends, whether the session must be paused, what happens on an invalid line, or whether the operation is reversible — all material for a mutation-style debug tool.

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?

One front-loaded sentence with no filler or redundancy. It is efficient, though the extreme brevity leaves no room to structure prerequisite or side-effect information.

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?

The schema is rich and self-documenting, and no output schema exists, so the description does not need to explain returns. For a 3-parameter write-style tool with zero annotations, however, the single sentence leaves key operational facts (replace semantics, session state requirements) unstated.

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 100%, so file, sessionId, and the nested breakpoint fields (line, condition, logMessage, hitCondition) are already fully documented. The description adds nothing about how multiple breakpoints are merged or about the single-session sessionId omission rule, so it sits at the baseline.

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 ("Set breakpoints in a source file") and scopes it to a debug session, which separates it from list_breakpoints and set_exception_breakpoints by implication. It stops short of naming those siblings explicitly, so the differentiation is not airtight.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "for an active debug session" implies the precondition that a session must already exist, and the schema's sessionId note reinforces that. There is no explicit when-to-use vs. when-to-use-an-alternative guidance, no mention of set_exception_breakpoints for exception breakpoints, and no note about clearing or replacing existing breakpoints.

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