Skip to main content
Glama

view-network-logs

Read-only

Lists captured HTTP requests from React Native JavaScript or the active Chromium tab to help you find a request or compare calls; pass an ID to inspect headers and bodies.

Instructions

List captured HTTP requests from React Native JavaScript or the active Chromium tab. Use when you need to find a request or compare several calls. For native traffic, use native-network-logs. Returns a paginated list with request IDs, status, size and timing. Pass an ID to view-network-request-details for headers and bodies. On iOS simulators and Android, call network-capture-start before the action and again after a reload. On Vega, read this log before the action and again after a reload to resume capture. Chromium records while Argent is attached to the page. Fails if the Chromium target is unreachable. A read can also fail if Argent cannot reach the debugger for an existing JS capture. If the tool returns a capture message in place of a list, follow it before retrying.

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>"
    },
    "name": "view-network-logs"
  }
}

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 from list-devices. For iOS simulators and Android, use logicalDeviceId if capture started with it.
pageIndexNoZero-based page index. "latest" and null select the newest page. Each page contains up to 50 entries. Default: "latest".latest

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 from list-devices. For iOS simulators and Android, use logicalDeviceId if capture started with it."
    • changedInput schema / properties / pageIndex / anyOf
      Previous value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "const": "latest",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      {
      +        "const": "latest",
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / pageIndex / description
      Previous value: -"Page index (0-based) or \"latest\" for the most recent page. Each page contains up to 50 entries."New value: +"Zero-based page index. \"latest\" and null select the newest page. Each page contains up to 50 entries. Default: \"latest\"."
    • 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."
  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 (RN only; ignored on Chromium)"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.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, so the description carries the rest and does so well: it discloses pagination, the returned fields (IDs, status, size, timing), the capture-message sentinel that may replace a list, and two named failure modes (unreachable Chromium target, unreachable debugger for an existing JS capture). This is behavior an agent could not infer from the schema or annotations.

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 is front-loaded and every sentence is informative rather than filler, but the capture-lifecycle and failure paragraphs run long and could be tightened. Still no redundant restatement of the name or schema.

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 read-only, three-parameter tool with no output schema, the definition covers return shape, pagination, per-platform preconditions, failure recovery, and the follow-up tool. An agent has everything needed to call it and to interpret the result.

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% and each parameter already documents defaults and ranges (port, device_id fallback, pageIndex with "latest"/null semantics), so the description adds no per-parameter meaning beyond noting an ID is passed onward. Baseline 3 is appropriate when the schema does the heavy lifting.

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 gives a specific verb and resource plus two distinct sources (React Native JS and the active Chromium tab), and the very next sentence names the sibling it is not (native-network-logs). An agent can distinguish this from the native variant 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 states the triggering conditions ("find a request or compare several calls"), names the alternative for native traffic, points to view-network-request-details for header/body drill-down, and specifies the network-capture-start sequencing per platform. When-to-use, when-to-use-something-else, and prerequisites are all present.

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