Skip to main content
Glama

Analyze a HAR file

analyze_har
Read-onlyIdempotent

Parse a HAR (HTTP Archive) capture and summarize it: request counts, status distribution, slowest and largest requests, top hosts, and per-request timings.

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": "analyze_har"
  }
}

Input Schema

NameRequiredDescriptionDefault
harYesHAR file contents as JSON text
topNoHow many slowest/largest requests and top hosts to include

Output Schema

NameRequiredDescriptionDefault
largestYes
slowestYes
topHostsYes
truncatedYes
totalBytesYes
totalTimeMsYes
statusGroupsYes
totalRequestsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false and idempotentHint, so the safety profile is covered; the description adds the analytical behavior - that it aggregates rather than returns raw entries. It does not mention failure behavior on malformed HAR JSON or any size limits, which is the remaining gap rather than a contradiction.

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?

A single sentence, front-loaded with the verb and resource, then a tight enumeration of the summary outputs. No filler and nothing wasted.

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 an output schema present, return values need not be explained, and annotations carry the safety profile, so the description only needs to convey purpose and scope - which it does. Minor omission is error behavior for non-JSON or invalid HAR input.

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 both parameters are already documented, and the description adds no explicit semantics for the 'top' parameter - only an indirect hint via 'slowest and largest requests, top hosts'. Baseline 3 applies where 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?

States a specific verb (parse) and resource (HAR/HTTP Archive) and enumerates exactly what the summary contains: request counts, status distribution, slowest and largest requests, top hosts, per-request timings. None of the listed siblings performs HAR analysis, so the tool is unambiguously distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by naming the input artifact (a HAR capture), but there is no explicit guidance on when to prefer this over other tools, no prerequisites, and no note about what to do when the input is not a HAR file. Adequate but leaves the agent to infer the trigger condition.

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.