Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

add_intercept_rule

Define rules to pause, modify, mock, or fail matching network requests, letting you control intercepted traffic during Chrome debugging sessions.

Instructions

Add a rule for how to handle intercepted requests.

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": {
      "pattern": "<pattern>",
      "action": "<action>"
    },
    "name": "add_intercept_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to take
patternYesURL pattern to match (glob or /regex/)
mockBodyNoResponse body (for action=mock)
modifyUrlNoNew URL (for action=modify)
failReasonNoError reason (for action=fail)
mockStatusNoResponse status (for action=mock)
mockHeadersNoResponse headers (for action=mock)
modifyHeadersNoHeaders to add/modify (for action=modify)
resourceTypesNoResource types to match

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It doesn't say rules persist, how multiple matching rules are ordered, whether interception must be enabled first, or how a 'pause' action is later resolved (continue/fail/fulfill sibling tools). For a mutation tool with nine parameters this is a substantial behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, but it is short to the point of under-specification rather than genuine concision. Nothing in it is wasted, yet it leaves almost everything an agent needs unsaid.

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?

With nine parameters, nested objects, an action enum with four divergent behaviors, and no annotations or output schema, the definition needs considerably more than one sentence. Key facts — rule scope/ordering, activation prerequisite, and how mock/modify/fail fields map to behavior — are only recoverable from the schema, not the prose.

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%, and the schema itself documents each parameter and the conditional relevance of mock/modify/fail fields. The description adds no meaning beyond that, so the baseline 3 for complete schema coverage applies.

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 gives a verb and resource ('Add a rule for how to handle intercepted requests'), so the general purpose is inferable. But it doesn't name what kind of rule or what interception means in this API, and it does nothing to separate it from remove_intercept_rule or list_intercept_rules beyond the verb.

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?

There is no guidance on when to use this versus the sibling rule-management tools, no stated prerequisite (e.g. that request interception must be active for the rule to take effect), and no mention of what to remove or replace. The agent must guess the workflow from tool names alone.

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