Skip to main content
Glama

列出 Mock 规则

browser_list_mocks
Read-onlyIdempotent

Lists active request-mock rules for a browser tab, including rule ID, matcher, status, and hit count, so you can inspect which mock responses are currently applied.

Instructions

List all active request-mock rules of the active tab (id, matcher, status, hits).

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": "browser_list_mocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab id (default: active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: only *active* rules are returned and the response carries id, matcher, status and hits. It says nothing about ordering, counts, or behavior when no mocks exist.

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 efficient sentence with the scope front-loaded and the returned fields compactly appended in parentheses. Nothing is wasted; it is terse to the point of omitting usage routing, but that is a completeness gap rather than verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-optional-parameter read tool with full annotation coverage and no output schema, listing the returned fields is exactly the missing piece the description supplies. Only the absence of 'no mocks' / empty-result behavior keeps it from being fully complete.

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 100% and the single optional parameter (tabId, default active tab) is fully documented in the schema. The description's 'of the active tab' phrasing reinforces the default but adds no new syntax or format detail, so baseline 3 applies.

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 ('List') and resource ('active request-mock rules') and scopes it to the active tab, with an explicit field list in parentheses. It does not explicitly contrast with siblings like browser_clear_mocks or browser_mock_requests, but the read-only listing intent is unambiguous.

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 says what it lists but never states when to reach for it versus alternatives (e.g., 'use browser_clear_mocks to remove rules' or 'use browser_mock_requests to add one'), nor any prerequisite context. Usage is only inferable from the verb itself.

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