Skip to main content
Glama
puppeteer-mcp-claude

puppeteer-mcp-claude

by jaenster

puppeteer_set_request_interception

Enable request interception for a browser tab to block resource types or inject custom headers before requests load.

Instructions

Enable request interception for a tab. Optionally block resources by type or inject headers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "puppeteer_set_request_interception"
  }
}

Input Schema

NameRequiredDescriptionDefault
enableNo
pageIdNo
modifyHeadersNo
blockResourcesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short. It only says "Enable," never disclosing that enable=false disables interception, whether blocking applies to subsequent requests only, or whether injected headers affect all request types. Side effects of interception on page behavior are unmentioned.

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, front-loaded sentences with no wasted wording. It is efficient, though the brevity contributes to the disclosure gaps noted elsewhere.

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?

For a tool with a nested object parameter, an enum-bearing array, no annotations, and no output schema, this description is too thin. An agent could not confidently determine how to disable interception or which tab is targeted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters. The description only loosely gestures at blockResources and modifyHeaders; it says nothing about the semantically critical `enable` toggle (which contradicts the "enable" framing) or `pageId` (which tab, and whether it defaults to the current one).

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 ("Enable request interception for a tab") and adds the two optional capabilities. An agent can tell what it does, though it never contrasts itself with siblings such as puppeteer_navigate or puppeteer_evaluate, which is acceptable here since the action is 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 when-to-use or when-not-to-use guidance. Critically, nothing says interception should be configured before navigation so requests are actually captured, and no prerequisites or alternative approaches are mentioned.

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