Skip to main content
Glama

network_summary

Aggregate captured network traffic by domain, resource type, and heaviest requests to verify consent blocks and identify what makes a page heavy.

Instructions

Aggregate the session's captured network traffic: bytes and request counts by domain (with third_party flag) and by resource type, the heaviest requests, third-party share, and how many responses came from a service worker. since='open' (default, whole session), 'clear' (only traffic after get_network_log(clear=true) — the before/after-an-interaction pattern: clear, act, summarize), or an epoch-ms timestamp. Sizes come from Resource Timing (transfer bytes, current document) with Content-Length as fallback; unknowns are counted honestly. Use to verify a consent 'deny' really blocked GA/Meta/Vimeo, or to find what makes a page heavy.

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": {
      "session_id": "<session_id>"
    },
    "name": "network_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoHow many of the largest requests to list (default: 10)
sinceNo'open' (default) | 'clear' | epoch milliseconds
session_idYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the measurement methodology (Resource Timing transfer bytes for the current document, Content-Length as fallback, unknowns counted honestly) and that the third_party flag and service-worker counts are derived. It does not say whether aggregation is expensive, whether results are cached, or what an empty session returns.

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?

It is front-loaded with the aggregate list and then the scope semantics, with no filler sentences. The middle portion is dense and parenthesis-heavy, but each clause (data source, fallback, honest unknowns) carries information an agent needs to interpret the numbers.

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 a moderately complex aggregation tool with no output schema, the description effectively substitutes for one by enumerating the returned metrics and their derivations. Remaining gaps are secondary: no mention of result limits beyond 'top', and no behavior described for sessions with no captured traffic.

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 all three parameters are already documented, establishing a baseline of 3. The description adds real meaning only for 'since'—explaining that 'clear' scopes to traffic after get_network_log(clear=true) and describing the before/after-interaction pattern—while 'top' and 'session_id' are covered entirely by the schema.

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 names a specific verb (aggregate) and resource (the session's captured network traffic) and enumerates the exact aggregates produced: bytes and request counts by domain with third_party flag, by resource type, heaviest requests, third-party share, and service-worker response counts. That is distinguishable from get_network_log, which is referenced only as the raw-log counterpart in the 'clear' semantics.

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 gives concrete when-to-use scenarios: verifying that a consent 'deny' actually blocked GA/Meta/Vimeo, and diagnosing what makes a page heavy. It also prescribes the clear→act→summarize workflow. It stops short of stating explicit exclusions (e.g., 'for raw per-request entries use get_network_log'), but the division of labor is strongly implied.

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