Skip to main content
Glama

fault.test

Read-only

Test a URL glob against recorded traffic before creating an abort rule. Returns sample matches/non-matches and warns if the pattern would block the page’s own document.

Instructions

Dry-run a URL glob against the traffic already recorded, without creating a rule. Returns sample matches and non-matches, and warns when the pattern would also take out the document of the page you are driving. Use before fault.abort when the pattern is not obviously right.

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": {
      "url": "<url>"
    },
    "name": "fault.test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe glob to test, e.g. "http://localhost:5000/**".
limitNoSamples per bucket. Default 10.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
resource_typesNoRestrict to these CDP resource types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond them: it reports sample matches AND non-matches, and warns when the pattern would also take out the currently driven page's document. It does not say how much traffic must exist for a meaningful sample or how empty-history behaves.

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 tight sentences with zero filler: purpose and scope first, then return payload, then the pre-flight guidance. The ordering puts the differentiator (dry-run, no rule) before the parameter-adjacent detail.

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?

With no output schema, the description carries the return-value burden and does so by naming sample matches, non-matches, and page-document warnings. It is slightly thin on what an empty or insufficiently-recorded traffic history yields, but otherwise complete for a read-only probe.

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 coverage is 100% with per-parameter descriptions, examples ("http://localhost:5000/**"), defaults (limit 10), and handle formats (tgt_*, br_*) already documented. The description mentions only the glob concept and adds no meaning about limit, target_id, browser_id, or resource_types filtering, so baseline 3 applies.

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?

States a specific verb and resource — dry-run a URL glob against already-recorded traffic — and immediately adds the scope constraint "without creating a rule," which separates it from the fault-creation siblings. An agent can distinguish it from fault.abort without opening either schema.

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?

Gives an explicit trigger: use it before fault.abort when the pattern is not obviously right. The implied exclusion (don't use it to actually install the fault) follows from the dry-run framing, but there is no statement about what to do when a match is confirmed or how it relates to fault.list/fault.remove.

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

Deploy Server

Other Tools