Skip to main content
Glama
Browser Session MCP

Browser Session MCP

list_network_requests

Read-only

Inspect and filter a browser session’s network requests to verify API calls, tracking pixels, failed loads, statuses, redirects, headers, and response bodies.

Instructions

List the network requests the session's pages made, oldest first, from the most recent limit: method, URL, status (or failure reason), redirects and request body. With details, also request and response headers and, for fetch/XHR and documents, text or JSON response bodies up to 64 KB; credential headers and keys are masked, and nothing of a login a person does in a takeover is kept. urlContains narrows the list to matching URLs. Use it to check API calls, what a page sent and got back, tracking pixels and failed loads; use list_console_messages for script errors and logs. Pass visit (a seq from list_visits) to see one page load; without it, requests from every visit are merged and limit keeps the newest. A null status means the request hadn't finished when logged. It reads logs and changes nothing. Empty unless the listener role is running, and logs are deleted when the session closes.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "list_network_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoReturn at most this many of the newest requests. Default 500.
visitNoOnly requests from this visit, by its `seq` from list_visits. Default: all visits.
detailsNoInclude request and response headers and response bodies. Default false.
sessionIdYesThe id returned by open_browser_session. Errors if no open session has it.
urlContainsNoOnly requests whose URL contains this text.

Output Schema

NameRequiredDescriptionDefault
requestsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.23
    • addedInput schema / properties / details
      Added value: +{
      +  "description": "Include request and response headers and response bodies. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / urlContains
      Added value: +{
      +  "description": "Only requests whose URL contains this text.",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / NetworkEntry / properties / mimeType
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / NetworkEntry / properties / requestHeaders
      Added value: +{
      +  "description": "Request headers, credential ones masked."
      +}
    • addedOutput schema / $defs / NetworkEntry / properties / requestId
      Added value: +{
      +  "description": "Chrome's id for the request.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / NetworkEntry / properties / responseBody
      Added value: +{
      +  "description": "A small text or JSON response body (fetch/XHR and documents, up to\n64 KB), credential keys masked.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / NetworkEntry / properties / responseHeaders
      Added value: +{
      +  "description": "Response headers, credential ones masked."
      +}
  2. Changed1 schema field changedv0.1.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "NetworkEntry": {
      +      "properties": {
      +        "failure": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "method": {
      +          "type": "string"
      +        },
      +        "post_data": {
      +          "description": "Request body for POST/PUT/etc., when Chrome inlines it in\n`Network.requestWillBeSent` (small bodies). Lets callers inspect what a\npage POSTed (e.g. analytics pixel payloads) without a per-page JS hook.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "redirected_to": {
      +          "description": "For a redirect hop (3xx `status`): the URL it redirected to. The next\nhop is logged as its own entry.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "t": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "t",
      +        "method",
      +        "url"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "properties": {
      +    "requests": {
      +      "items": {
      +        "$ref": "#/$defs/NetworkEntry"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "requests"
      +  ],
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Return at most this many of the newest requests. Default 500."
    • addedInput schema / properties / sessionId / description
      Added value: +"The id returned by open_browser_session. Errors if no open session has it."
    • addedInput schema / properties / visit / description
      Added value: +"Only requests from this visit, by its `seq` from list_visits. Default: all visits."
  4. First observedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations it discloses masking of credential headers and keys, that nothing of a takeover login is retained, the 64 KB body cap, that a null status means unfinished, that output is merged across visits by default, and two operational constraints: the listener role must be running and logs are deleted when the session closes. These are non-obvious traits an agent cannot infer from structured fields.

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?

Purpose and ordering are front-loaded in the first clause, and nearly every sentence carries distinct information. It runs long and dense as a single block of prose, and semicolon-heavy phrasing makes the operational caveats (listener role, session-close deletion) easy to skim past.

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

Completeness5/5

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

For a five-parameter read tool with an output schema and clear annotations, the description covers the remaining burden: prerequisites, masking, truncation limits, empty-result conditions, and cross-visit merge behavior. Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: `details` is qualified by which content types get bodies (fetch/XHR and documents, text or JSON, up to 64 KB), and `limit`/`visit` interaction is spelled out ('without it, requests from every visit are merged and `limit` keeps the newest'). `urlContains` is only restated from the schema, which keeps this short of a 5.

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?

The description opens with a specific verb and resource ('List the network requests the session's pages made'), states ordering ('oldest first') and scope ('from the most recent `limit`'), and immediately enumerates what each entry carries. It explicitly distinguishes itself from the sibling list_console_messages, so an agent can route 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names concrete use cases ('check API calls, what a page sent and got back, tracking pixels and failed loads') and gives an explicit alternative for the adjacent need ('use list_console_messages for script errors and logs'). It also explains when to pass `visit` versus leaving it out, which is the main selection decision within the tool.

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