Skip to main content
Glama

electron_cdp_network

Capture, filter, and clear Electron app network requests via CDP, or set up mock responses by URL pattern to test app behavior without a live backend.

Instructions

Interact with network requests via CDP: get captured requests, clear history, or set up mocks

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

Input Schema

NameRequiredDescriptionDefault
mockNo
actionYesAction to perform: get entries, clear entries, or set up mock
filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 behavioral burden and mostly does not: it never says whether capture is always-on or must be started, whether 'clear' is irreversible and what scope it wipes, or whether a registered mock persists across navigations and affects later requests. For a tool containing a destructive reset operation, these omissions are material.

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, and the action list is placed where the reader will find it first. It is arguably over-compressed for a tool with this much branching, but nothing in it is wasted.

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 three parameters including a nested mock object, an enum action, no annotations, and no output schema, the description should say more about capture lifecycle, mock persistence, and what a 'get' returns. The current text covers the action space but leaves the operational context an agent needs to call it correctly mostly unstated.

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 only 33%, but the array-filter semantics remain undocumented: the description does not explain how 'filter.url' matches (pattern vs exact) or how url and method combine (AND vs either), nor that mock body is optional while url/status/contentType are required. The nested mock object, which determines what a mocked response looks like, gets only the two words 'set up mocks'.

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+resource (interact with network requests via CDP) and enumerates the three operations: getting captured requests, clearing history, and setting up mocks. That is enough to distinguish it from electron_cdp_console, electron_cdp_performance, and electron_cdp_evaluate, though it never explicitly contrasts itself with them.

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 three-branch enumeration ('get captured requests, clear history, or set up mocks') implies the use cases, so an agent can map intent to action. However, there is no guidance on prerequisites (does CDP capture need to be enabled?), on when to choose this over the other electron_cdp_* tools, or on which actions are safe to call repeatedly.

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