Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

network_clear_requests

Clears stored network request data for a browser context to free memory. Use it to reset captured traffic between debugging sessions or when request logs grow large.

Instructions

Clear stored network request data for a browser context to free memory

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": {
      "contextId": "<contextId>"
    },
    "name": "network_clear_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextIdYesBrowser context ID from browser_launch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose what gets destroyed (stored network request data for a given context) and why. It does not say whether clearing is irreversible, whether capture continues afterward, or whether subsequent network_get_requests calls will return empty.

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 tight sentence that front-loads the action and follows with scope and rationale; no filler or redundancy. It could only be improved by adding routing or side-effect detail rather than by trimming.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter cleanup tool with no output schema, the description covers action, scope, and motive, which is nearly enough to call it correctly. The remaining gap is post-clear state (is data gone permanently, does capture resume), which matters for a destructive operation lacking annotations.

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?

Only one parameter exists and schema coverage is 100%, with the schema already explaining contextId as coming from browser_launch. The description adds no additional meaning about the parameter, so the baseline of 3 applies.

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 ('Clear stored network request data') scoped to a browser context, plus a stated rationale ('to free memory'). It is clearly distinguishable from read-side siblings like network_get_requests, though it never names them explicitly.

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 'to free memory' implies the motivating situation, which is a reasonable usage cue. However, there is no explicit when-to-use/when-not guidance and no mention of adjacent cleanup tools such as console_clear_logs or storage_clear_data, leaving selection to inference.

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