Skip to main content
Glama

Block Network

network_block

Block page requests by URL regex to stop unwanted network calls and reproduce controlled browser workflows.

Instructions

Block requests whose URL matches a regular expression for the active page.

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": {
      "urlPattern": "<urlPattern>"
    },
    "name": "network_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoPage id. Defaults to the active page.
urlPatternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and does not disclose whether the block is persistent across navigations, whether it applies to requests already in flight, whether it is reversible, or what the caller observes when a request is blocked. For a state-changing interception tool this is a significant gap beyond the one sentence of purpose.

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 well-formed sentence with the verb and the matching condition front-loaded and no filler. Brevity is appropriate, though the space saved is not used for any of the missing behavioral context.

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?

For a two-parameter tool with no annotations and no output schema, the definition covers purpose but leaves persistence, scope of effect, and interaction with the mock sibling unaddressed. It is minimally sufficient to attempt a call but not to predict consequences.

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 50%: pageId is documented in the schema, but urlPattern has no description there. The description does add the key semantic that urlPattern is a regular expression (not a literal URL), which the schema omits, but it gives no regex syntax, anchoring, or case-sensitivity details.

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 (block) applied to a specific resource (requests) with the selection condition (URL matches a regular expression) and default scope (active page). An agent can tell this is a request-interception tool, though it does not distinguish itself from the sibling network_mock_json by name.

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?

The description offers no when-to-use or when-not guidance and never mentions the closely related network_mock_json sibling, so the agent must infer whether to mock or block. Only the implicit condition 'URL matches a pattern' hints at applicability.

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