Skip to main content
Glama

util_har_analyze

Read-only

HAR file analyzer — Analyze a browser HAR (HTTP Archive) capture from DevTools/Playwright: requests, transfer bytes, wall time, timing totals, breakdown by status, resource type, protocol and domain (first vs third party), slowest and largest requests, errors, and a graded issue list (failed requests, 5xx/4xx, plain-HTTP, slow TTFB, uncompressed text, large images/scripts, static assets without caching, redirects, duplicate requests, HTTP/1.x, many third parties). Detects credentials in the capture (Authorization, cookies, API-key headers, tokens in URLs) and reports counts only, with secret query values redacted. Input har= (HAR JSON text) or url= (.har link, max 5 MB; first 3000 entries analyzed). Optional top= (default 10), slow_ms= (TTFB threshold, default 800), first_party= (domain). Offline. Price: $0.003 USDC (Base, via x402).

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": {
      "har": "<har>"
    },
    "name": "util_har_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
harYes{"log":{"version":"1.2","creator":{"name":"WebInspector","version":"537.36"},"entries":[{"startedDateTime":"2026-11-25T10:00:00.000Z","time":950,"request":{"method":"GET","url":"https://shop.example.com/","headers":[]},"response":{"status":200,"httpVersion":"h2","headers":[{"name":"content-encoding","value":"br"}],"content":{"size":42000,"mimeType":"text/html"},"headersSize":310,"bodySize":9800},"timings":{"dns":20,"connect":40,"ssl":30,"send":1,"wait":840,"receive":19}},{"startedDateTime":"2026-11-25T10:00:01.000Z","time":120,"request":{"method":"GET","url":"http://cdn.example.com/app.js","headers":[]},"response":{"status":200,"httpVersion":"http/1.1","headers":[],"content":{"size":180000,"mimeType":"application/javascript"},"headersSize":250,"bodySize":180000},"timings":{"wait":60,"receive":60}},{"startedDateTime":"2026-11-25T10:00:01.200Z","time":80,"request":{"method":"GET","url":"https://shop.example.com/logo.png","headers":[]},"response":{"status":404,"httpVersion":"h2","headers":[],"content":{"size":500,"mimeType":"text/html"},"headersSize":200,"bodySize":500},"timings":{"wait":70,"receive":10}}]}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses operational limits (5 MB URL cap, first 3000 entries analyzed), the privacy behavior of credential detection (counts only, secret query values redacted), tunable thresholds, and the paid x402 cost of $0.003 USDC on Base. Minor tension worth noting: it advertises "Offline" while also accepting a remote url= to fetch, which sits awkwardly next to openWorldHint=true, though this reads as "no third-party analysis service" rather than a true contradiction.

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 the verb and resource, then the report contents, then inputs, then cost — a sensible information order. The parenthesized enumeration of issue types is long but each item is a concrete capability whose removal would lose information; only the density, not the waste, is the cost.

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?

With no output schema, the description carries the burden of describing return values, and it does so thoroughly (breakdowns, slowest/largest, graded issues, credential counts). The one gap is that its advertised parameter set diverges from the actual schema (url/top/slow_ms/first_party), leaving the caller unsure which inputs are real.

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 description coverage is 100%, so har= is fully documented by the schema, and the description still adds value by explaining defaults and units (top= default 10, slow_ms TTFB threshold default 800, first_party= domain). However, it references url=, top=, slow_ms=, and first_party= none of which appear in the supplied schema, so an agent following the text could attempt calls that fail validation.

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?

States a specific verb+resource ("Analyze a browser HAR (HTTP Archive) capture") and enumerates the exact outputs: transfer bytes, wall time, status/resource-type/protocol/domain breakdowns, slowest/largest requests, and a graded issue list. No other tool in the sibling set analyzes HAR files, and an agent can tell instantly what this returns without opening the schema.

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?

Gives clear context for when it applies: HAR captures produced by DevTools/Playwright, with two accepted input routes (raw HAR JSON text vs a .har link). It does not name exclusions or point to any alternative (e.g., if the agent only has a curl command, util_curl_convert is the relevant sibling), so the caller must infer that.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources