Skip to main content
Glama

google_mock

Intercept and mock browser responses via CDP Fetch to test frontend handling of server errors, custom statuses, or bodies.

Instructions

拦截并伪造响应(CDP Fetch),用于调试前端如何响应服务端异常。op=set/status/off。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "google_mock"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNo
bodyNo
rulesNo
statusNo
tab_idNo
patternsNo
hit_countNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/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 burden. It discloses that responses are intercepted and fabricated, but says nothing about persistence or whether injected rules survive navigation, how 'off' cleans up state, what hit_count does, or whether interception is scoped per tab or global. For a tool that mutates browser network behavior across three modes, this is a meaningful gap.

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

Conciseness3/5

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

The text is short and front-loads the core action, with no filler sentences. However, the brevity here reads as under-specification rather than disciplined concision, since the trailing op list adds enumeration without meaning.

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?

For an eight-parameter, three-mode interception tool with no annotations and no output schema, the description is far too thin. An agent would not know how to construct rules or patterns, how to scope interception to a tab, or what the tool returns after a set or status call.

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% across 8 parameters, so the description must compensate and largely does not. Listing 'op=set/status/off' echoes the enum without explaining what each mode does, and body, rules, status, tab_id, patterns, hit_count, and content_type go entirely unaddressed — notably the rules and patterns arrays whose structure an agent cannot infer.

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?

The description states a specific verb+resource: it intercepts and fakes responses via CDP Fetch, framed as a tool for debugging how the frontend reacts to server errors. That is far more informative than the opaque name 'google_mock' and tells an agent what the tool does. It does not, however, position itself against plausible siblings such as google_network or google_cdp, so it stops short of a 5.

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?

It names one concrete use case (debugging frontend handling of server-side errors), which implies when to reach for it. There is no guidance on when not to use it, no mention of prerequisites like an attached CDP session, and no routing to the network/cdp siblings. Usage is therefore only implied.

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