Skip to main content
Glama

intercept_network

Manage network requests by blocking or mocking with URL glob patterns. Add rules and call refresh() to apply them on page load.

Instructions

Manage network interception rules. Block or mock requests matching URL glob patterns. Rules are additive — each call adds a rule. Use refresh() after adding rules to replay the page load with rules active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesblock: abort matching requests. mock_response: return synthetic response. remove_rule: remove by rule_id. clear_all: remove all rules.
mockNoSynthetic response for mock_response action.
patternNoURL glob matched against the full request URL. '*' matches across path separators (e.g. '*ads.com*' blocks any URL containing ads.com; '*/api/v2/*' matches that path on any host). Prefix with 're:' for a regular expression (e.g. 're:api/v[0-9]+'). Required for block/mock_response.
rule_idNoRule ID to remove (for remove_rule action).
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It reveals rules are additive and refresh() needed to apply, but does not mention persistence across navigations, side effects, or rule lifecycle (e.g., whether rules survive tab refresh). Partial but not comprehensive.

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?

Three sentences, each adding distinct value: purpose, additive behavior, and usage tip. No wasted words; front-loaded with main action.

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 complex tool with 4 parameters and nested objects, description covers basic usage but misses details like how to view active rules, rule ordering, or conflict resolution. Adequate but not thorough.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. Description adds value by explaining glob pattern syntax with examples and regex prefix ('re:'), which goes beyond the schema's brief descriptions.

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 explicitly states the tool manages network interception rules, with actions like block and mock. It clearly distinguishes from sibling inspection tools (e.g., inspect_request) by focusing on modifying network behavior.

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?

Provides usage guidance: rules are additive and require refresh() after adding. Lacks explicit when-not-to-use or alternatives, but the additive nature and refresh requirement are helpful context.

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/Mingye-Lu/AgenticCrawler'

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