Skip to main content
Glama
vola-trebla

playwright-network-chaos-mcp

by vola-trebla

trigger_system_network_error

Simulate system-level network errors like unreachable host or access denied by aborting matching requests, then verify your app's fallback behavior and recovery.

Instructions

Aborts requests matching a URL pattern with a system-level network error code, simulating OS-level failures like unreachable hosts or access denied. Use to answer: does the app recover when the DNS resolution fails or the OS rejects a connection?

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the page to test
wait_msNoMilliseconds to wait after navigation before checking fallback (default: 2000)
viewportNoViewport size (default: 1280×720)
error_codeYesSystem network error code: addressunreachable (DNS/routing failure), connectionaborted (mid-flight drop), accessdenied (firewall/OS block), aborted (generic abort)
fallback_selectorNoCSS selector for the fallback UI that should appear (e.g., '.network-error')
intercept_patternYesGlob pattern for requests to abort (e.g., '**/api/payment**')
Behavior4/5

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

With no annotations, the description must disclose behavior. It states the tool aborts matching requests and simulates specific OS-level failures, which is transparent about the primary effect. However, it omits potential side effects (e.g., whether the page becomes non-interactive, whether the intervention is temporary) and does not warn about testing environments.

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

Conciseness5/5

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

Two sentences; the first states the action and simulation type, the second gives a concrete test question. No redundant content or padding.

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?

The tool has 6 params and no output schema; the description conveys the core purpose but does not outline the end-to-end workflow (e.g., navigating to the URL, waiting, and evaluating the fallback selector). It gives the 'why' but not the full 'how', which the agent must infer from the schema.

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?

The schema describes all parameters fully (100% coverage), so the baseline is 3. The description only mentions 'URL pattern' in passing and does not add details about format, units, or interplay between parameters beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Aborts') and identifies the resource ('requests matching a URL pattern') and distinguishes it by focusing on system-level network error codes that simulate OS-level failures, unlike siblings that simulate API or latency issues. The use-case question further clarifies unique purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly frames when to use it: to test app recovery from DNS resolution failures or OS connection rejections. It implies this tool is for OS-level network failures but does not name alternatives or state when not to use it, so no exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vola-trebla/playwright-network-chaos-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server