Skip to main content
Glama
camoufox-agent

camoufox-agent

by VolanDeVovan

wait_for_network

Read-only

Waits for a network request or response matching a URL pattern, then returns its headers and body; pass since to capture a request that already fired.

Instructions

Wait for a request matching a URL pattern and return it with headers and bodies. By default it waits for a response that finishes after this call; pass since (a request id noted before the action) to also accept one that already happened, e.g. the XHR a click just fired.

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": {
      "pattern": "<pattern>"
    },
    "name": "wait_for_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
phaseNo"response" (default): the response has finished. "request": the request was sent.
sinceNoAccept requests with an id greater than this (0: any captured request).
tabIdNoTab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session.
methodNo
patternYesRegular expression matched against the URL.
max_charsNoCap per body (default 8000).
timeout_sNoSeconds to wait (default 15).
reveal_valuesNoShow secrets (cookie values, tokens, passwords) instead of masking them. They end up in the transcript; use only when the value itself is needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true, so the safety profile is already covered. The description adds genuinely useful behavioral context about the timing model and the `since` escape hatch, which no annotation conveys. It stops short of saying what happens on timeout (error vs empty result) or how multiple matches are handled, which matters for a blocking call.

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?

Two sentences, zero filler, with the core behavior front-loaded and the parameter nuance following. Every clause carries information an agent needs.

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 an eight-parameter tool with no output schema, the description covers what is returned (the matching request with headers and bodies) and the waiting semantics. The remaining gap is failure behavior, since nothing states what a timeout yields or whether the first matching request is returned when several match.

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 88%, so nearly every parameter is already documented in structured data and the baseline of 3 applies. The description adds real meaning only for `since`, clarifying that it accepts pre-existing requests by id; `phase`, `pattern`, `tabId`, `max_chars`, `timeout_s` and `reveal_values` gain nothing beyond the schema.

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 opens with a specific verb and resource: wait for a request matching a URL pattern and return it with headers and bodies. That distinguishes it from read-style siblings like read_network_requests, but it never names an alternative, so the separation is inferred rather than stated.

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?

It clearly defines the default waiting window (a response that finishes after this call) and the condition that selects the alternative behavior (pass `since` to also accept an already-completed request), reinforced with a concrete click/XHR example. What is missing is any explicit routing to non-waiting siblings such as read_network_requests when the event already happened long ago.

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