Skip to main content
Glama

Get Failed Network Calls

get_failed_network_calls
Read-onlyIdempotent

Extracts HTTP 4xx/5xx and aborted/failed requests from a Playwright trace.zip to debug API or backend failures.

Instructions

Extracts all HTTP 4xx/5xx responses and aborted/failed requests across a Playwright trace.zip and returns JSON { tracePath, totalRequests, failedRequestsCount, failedRequests }. If tracePath (local .zip path) is omitted, auto-discovers the latest trace under cwd; returns an error if no trace exists. Use when debugging API/backend failures in isolation; prefer triage_failure for full root-cause, console, and locator analysis.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_failed_network_calls"
  }
}

Input Schema

NameRequiredDescriptionDefault
tracePathNoAbsolute or relative path to trace.zip (e.g. test-results/checkout/trace.zip). If omitted, uses the latest trace in the workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • changedInput schema / properties / tracePath / description
      Previous value: -"Absolute or relative path to trace.zip. If omitted, uses the latest trace in the workspace."New value: +"Absolute or relative path to trace.zip (e.g. test-results/checkout/trace.zip). If omitted, uses the latest trace in the workspace."
  2. Changed1 schema field changedv1.0.0
    • changedInput schema / properties / tracePath / description
      Previous value: -"Path to trace.zip. If omitted, uses latest trace."New value: +"Absolute or relative path to trace.zip. If omitted, uses the latest trace in the workspace."
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile needs no restating. The description adds genuine value beyond them by disclosing the default fallback (auto-discover latest trace under cwd) and the failure mode (error if no trace exists). It stops short of describing latency on large traces or how 'aborted' requests are detected, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it returns, what the default does, then when to use it versus the alternative. The scoping and routing information is front-loaded and no sentence is padding.

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?

With no output schema, the description carries the return-shape burden and does so by naming the JSON fields (tracePath, totalRequests, failedRequestsCount, failedRequests). Combined with the fallback and error behavior, an agent has everything needed to call this single optional-parameter tool correctly.

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; the description goes one step further by framing tracePath as a local .zip path and specifying that omission triggers latest-trace discovery with an error when none exists. That error condition is not expressed in the schema and is the main piece of added meaning.

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 states a specific verb and resource — extracting HTTP 4xx/5xx responses and aborted/failed requests from a Playwright trace.zip — and names the return payload. It explicitly separates this narrow extraction from the broader triage_failure sibling, so an agent can choose 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 gives an explicit when-to-use condition ('debugging API/backend failures in isolation') plus a named alternative ('prefer triage_failure for full root-cause, console, and locator analysis'). That is a when/alternatives rule an agent can act on directly.

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