Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

set_xhr_breakpoint

Sets an XHR/fetch breakpoint that pauses execution when a request URL contains the given pattern, enabling inspection of request-triggered code.

Instructions

Break when an XHR/fetch request is made to a URL containing the pattern.

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": {
      "url": "<url>"
    },
    "name": "set_xhr_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL substring to match

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 burden, and it does disclose the core behavior: the breakpoint fires on XHR/fetch requests whose URL contains the pattern. However, it omits prerequisites (debugger must be enabled), persistence across navigations, and whether a breakpoint identifier is returned for later removal.

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?

A single front-loaded sentence with no filler; the trigger condition comes first and the matching rule follows. It is appropriately sized for a one-parameter tool, though it leaves no room for the prerequisite context noted above.

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 simple one-parameter breakpoint setter with no output schema, the description covers the trigger condition adequately. It is still incomplete on the operational context an agent needs: debugger-enabled prerequisite, persistence, and the removal path via remove_xhr_breakpoint.

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% and the single parameter is already documented as 'URL substring to match'. The description's 'URL containing the pattern' reinforces substring semantics but adds no new detail such as case sensitivity or matching scope.

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?

The description names a specific verb (break) and a specific resource (XHR/fetch request) plus the matching condition (URL containing the pattern), which implicitly separates it from line-based set_breakpoint and set_event_breakpoint. It does not explicitly name a sibling to contrast against, so it stops short of a 5.

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?

Usage is only implied by the 'Break when...' phrasing; there is no statement of when to prefer this over set_breakpoint or set_event_breakpoint, and no mention of the paired remove_xhr_breakpoint for cleanup. An agent can infer the scenario but must reason about alternatives itself.

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