Skip to main content
Glama

network-capture-start

Starts HTTP capture on iOS simulators, Android, and Chromium before the action to inspect; returns per-layer readiness so you can collect requests.

Instructions

Start HTTP capture on iOS simulators, Android and Chromium. Call this before the action you want to inspect. Each start keeps existing requests and opens a new window for await-network-request. On Chromium, start attaches to the tab if needed and marks the window in its log. Returns each layer's readiness in armed. Follow reason if a layer is still waiting or unavailable. Native capture can arm when the app connects on iOS. On Android, it can attach when Argent launches the app. JS capture needs the app's Metro port. Start it again after a reload or relaunch. Stop capture with network-capture-stop when you have the requests. Native capture can affect timing. Fails with NETWORK_CAPTURE_UNAVAILABLE or TOOL_DEPENDENCY_MISSING when every requested layer is unavailable.

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": {
      "udid": "<udid>",
      "bundleId": "<bundleId>"
    },
    "name": "network-capture-start"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoThe app's Metro port for JS capture and native log filtering. Omit it only when the app uses the device's port (usually 8081); otherwise check the project's Metro start script. Chromium uses the CDP port in udid. Range: 1 to 65535.
udidYesDevice ID from list-devices.
layerNoOmit to control both layers. Selecting one leaves the other alone. Chromium ignores this setting.
bundleIdYesApp bundle ID on iOS or package name on Android. On Chromium, use a valid placeholder such as argent.capture.
logicalDeviceIdNoFor iOS simulators and Android on shared Metro, use the logical ID for the intended device if requested. Reuse it for start and stop, and as device_id for JS reads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses non-destructive accumulation ('keeps existing requests and opens a new window'), the 'armed' readiness contract, layer-specific arming behavior (Metro port dependency on JS, attach-on-launch on Android), a timing side effect, and two named failure codes. Remaining gaps are minor (no mention of permissions/auth or performance overhead beyond timing), so it falls just short of a 5.

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?

Front-loaded with purpose, then lifecycle, then return contract, then error codes — a sensible ordering with no filler sentences. It is dense and runs long for a start tool, but each sentence conveys operational information rather than restating the name.

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, yet the description explains the return shape ('each layer's readiness in armed') and how to read it ('follow reason if a layer is still waiting or unavailable'), plus the failure modes. For a five-parameter, multi-platform capture tool, that covers everything an agent needs to invoke and interpret it correctly.

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 the schema already explains udid, bundleId, port, layer and logicalDeviceId, including 'Chromium ignores this setting' for layer and the reuse guidance for logicalDeviceId. The description adds essentially no parameter-level meaning beyond that (its Chromium note is behavioral, not param-level), so the 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?

The first sentence states a specific verb ('Start HTTP capture') plus the exact platforms covered (iOS simulators, Android, Chromium). It also names the companion/alternative tools (await-network-request, network-capture-stop), so an agent can place it precisely relative to siblings without opening a 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?

Explicit when-to-use: 'Call this before the action you want to inspect.' Explicit alternative/terminator: 'Stop capture with network-capture-stop when you have the requests.' Also gives restart conditions ('Start it again after a reload or relaunch'), which is exactly the kind of conditional routing an agent needs.

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