Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_mock

Define per-URL request rules to block requests or return custom status, body, and headers in a browser tab; replaces existing rules and supports up to 50.

Instructions

Set request rules by URL glob/substring: block, or reply with status, body and headers. rules replaces all; [] clears. Limit: 50.

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": {
      "tabId": "<tabId>"
    },
    "name": "browser_mock"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNo
tabIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

B3.1/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. It does disclose two important traits: rules replace the entire set rather than appending, and an empty array clears them, plus a 50-rule ceiling. But it never says whether rules are per-tab, whether they survive navigation, whether existing pages need a reload to pick them up, or what permissions are required — significant gaps for a state-mutating tool.

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 dense sentences with no filler; the core capability is front-loaded and the replacement/clearing semantics follow immediately. Every clause carries information the agent needs.

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 a nested 50-item rules array and no annotations or output schema, the description covers the rules payload adequately but leaves tabId and the lifetime/scope of applied rules undocumented. It is workable but incomplete for a mutation tool with zero structured documentation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and only partially does. It explains what a rule does (match by glob/substring, block or synthesize status/body/headers) and that the array is wholly replacing, but the required tabId parameter is never mentioned, leaving the scoping of the operation unexplained.

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 ("Set request rules") plus the matching mechanism (URL glob/substring) and the two behaviors (block, or reply with status/body/headers). An agent can tell this is a request-mocking tool without opening the schema, though it never distinguishes itself from browser-level siblings like browser_navigate or browser_emulate.

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?

Usage is only implied: the description suggests it is for stubbing network responses, and it does state that "rules replaces all" and "[] clears", which is operational guidance. There is no explicit when-to-use, no prerequisites, and no mention of alternatives such as browser_emulate for device/network emulation.

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