Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

set_breakpoint

Set a JavaScript breakpoint by URL or regex and line number to pause execution for inspection, even before the target script loads.

Instructions

Set a breakpoint by URL pattern and line number. Works even before script is loaded.

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": {
      "lineNumber": "<lineNumber>"
    },
    "name": "set_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoExact URL of the script
urlRegexNoRegex pattern to match script URL
conditionNoBreakpoint condition expression
lineNumberYesLine number (0-based)
columnNumberNoColumn number (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does add one valuable trait: pending breakpoints apply before the script loads. It is silent on the mutation semantics that matter here—whether setting a duplicate replaces or adds a breakpoint, how url and urlRegex interact when both, one, or neither is supplied, and what is returned on success.

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?

Two short sentences, front-loaded with the action and immediately followed by the non-obvious behavioral fact. Nothing is padded, though the second sentence could be folded into the first for tighter structure.

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?

For a five-parameter debugger tool with no annotations and no output schema, the description covers purpose and one behavior but leaves the agent guessing about url/urlRegex precedence, duplicate handling, and error cases. Adequate to attempt a call, not adequate to call it confidently in edge cases.

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 coverage is 100%, so the schema already documents all five parameters including that line numbers are 0-based and the condition expression. The description reinforces the URL-pattern-plus-line addressing but adds no exclusivity rule between url and urlRegex, which is the one ambiguity in the schema.

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 a breakpoint") and names the addressing mechanism (URL pattern + line number), which implicitly separates it from the id-based and DOM/event/XHR breakpoint siblings. It never names a sibling outright, so the differentiation is inferential rather than explicit.

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 clause "Works even before script is loaded" gives one real usage condition, telling the agent it can be called pre-emptively. There is no when-not guidance, no statement about preferring a sibling when an id or event target is already known, and no prerequisites.

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

Deploy Server

Other Tools