Skip to main content
Glama

view-network-request-details

Read-only

Read a captured network request by ID to inspect its status, timing, headers, and available bodies when debugging app network traffic.

Instructions

Read the details of one captured request. Call this with an ID from a network log or await-network-request. Native requests need no debugger connection. Returns status, timing, headers and available bodies. Argent redacts sensitive headers and limits text previews to 1000 characters. URLs and bodies can still contain secrets. If a native upload is still in progress, retry after it finishes. If the ID is not found, the tool returns a message. Refresh the log if that happens or after a JavaScript reload. Reloads can reuse IDs for different requests. On Vega, a JS lookup can start capture. Read view-network-logs before triggering the request.

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": {
      "device_id": "<device_id>",
      "requestId": "<requestId>"
    },
    "name": "view-network-request-details"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoMetro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. Range: 1 to 65535.
device_idYesDevice ID for the matching log. For JS capture on iOS simulators and Android, use the logicalDeviceId if capture started with it.
requestIdYesRequest ID from either network log or await-network-request.
includeBodyNoSet false to omit the response body. The request body can still appear. Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / device_id / description
      Previous value: -"Device id from list-devices (iOS simulator UDID or Android serial) — the same id used with debugger-connect."New value: +"Device ID for the matching log. For JS capture on iOS simulators and Android, use the logicalDeviceId if capture started with it."
    • changedInput schema / properties / includeBody / description
      Previous value: -"Whether to include the response body (if captured). Defaults to true."New value: +"Set false to omit the response body. The request body can still appear. Default: true."
    • changedInput schema / properties / port / description
      Previous value: -"Metro server port. Optional — omit it to use this device's port, 8081 by default. Ignored for Chromium, whose CDP port is encoded in device_id."New value: +"Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. Range: 1 to 65535."
    • changedInput schema / properties / requestId / description
      Previous value: -"The requestId from view-network-logs to get full details for"New value: +"Request ID from either network log or await-network-request."
  2. Changed5 schema fields changedv0.25.0
    • removedInput schema / properties / port / default
      Removed value: -8081
    • changedInput schema / properties / port / description
      Previous value: -"Metro server port"New value: +"Metro server port. Optional — omit it to use this device's port, 8081 by default. Ignored for Chromium, whose CDP port is encoded in device_id."
    • addedInput schema / properties / port / maximum
      Added value: +65535
    • addedInput schema / properties / port / minimum
      Added value: +1
    • changedInput schema / properties / port / type
      Previous value: -"number"New value: +"integer"
  3. Changed1 schema field changedv0.17.0
    • changedInput schema / properties / device_id / description
      Previous value: -"Device UDID (logicalDeviceId)."New value: +"Device id from list-devices (iOS simulator UDID or Android serial) — the same id used with debugger-connect."
  4. First observedv0.15.0

TDQS

A4.4/5.0
Behavior4/5

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

Read-only annotations are consistent with the description, and the text adds substantial context beyond them: native requests need no debugger connection, sensitive headers are redacted, text previews are capped at 1000 characters, URLs and bodies may still leak secrets, and ID reuse can occur after reloads. A notable limitation is that request ID reuse after reloads could return the wrong request without any stated disambiguation mechanism, but the warning itself is more disclosure than most tools provide.

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?

The content is front-loaded with purpose and ID provenance, followed by return contents, then caveats. Every sentence carries operational information, though the back half reads as a dense run of warnings that could be grouped more tightly.

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?

There is no output schema, and the description compensates by naming the returns (status, timing, headers, available bodies) and describing the not-found response. For a four-parameter read tool, it covers failure modes, prerequisite ordering, and safety caveats, so nothing essential for correct invocation is missing.

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%, so device_id, port, requestId, and includeBody are already documented in the schema. The description restates the requestId provenance and gestures at body availability but adds no syntax, format, or edge-case meaning beyond what the schema provides, so the baseline of 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?

The opening sentence states a specific verb and resource with explicit scope: 'Read the details of one captured request.' It also pins down the ID source (a network log or await-network-request), which makes it clearly distinct from view-network-logs, which enumerates rather than retrieves one.

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 gives concrete when-to-use conditions and prerequisite ordering: read view-network-logs before triggering the request on Vega, retry after a native upload finishes, and refresh the log when an ID is not found or after a JavaScript reload. The ID-provenance sentence further constrains invocation rather than leaving it to inference.

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