Skip to main content
Glama

diagnose_har_failures

Read-onlyIdempotent

Analyze HAR 1.2 JSON to find 4xx/5xx errors, CORS/network blocks, expired-JWT races, slow requests, and P50/P95/max latencies; return diagnostics plus a sanitized Markdown incident summary.

Instructions

Analyze an HTTP Archive (HAR 1.2 JSON) to extract 4xx/5xx errors, CORS/network blocks, expired-JWT auth race conditions, slow requests, and P50/P95/max waterfall latencies, returning structured diagnostics and a sanitized GitHub/Jira Markdown incident summary.

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": {
      "harJson": "<harJson>"
    },
    "name": "diagnose_har_failures"
  }
}

Input Schema

NameRequiredDescriptionDefault
harJsonYesRaw HAR 1.2 JSON string to scrub and diagnose for failing or slow requests.
reportTitleNoOptional custom Markdown heading for the incident summary.
sessionSaltNoOptional deterministic salt string for HMAC-SHA256 correlation tags.
reportLanguageNoOutput language ("en" or "zh") for the generated GitHub/Jira Markdown incident report.en
slowThresholdMsNoDuration threshold in milliseconds above which requests are flagged as SLOW_REQUEST.
referenceTimeIsoNoOptional ISO-8601 timestamp override for JWT expiration checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description still adds real context the annotations lack: output is sanitized, an optional HMAC-SHA256 correlation tag is derived from a session salt, and a deterministic structured-plus-Markdown report is produced. Gaps remain around malformed/large HAR handling and what exactly gets scrubbed.

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?

A single front-loaded sentence that leads with the verb and resource before the detail list, with zero filler. It is dense and packs five detection categories plus the return contract into one clause chain, which costs a little readability but nothing is 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?

For a 6-parameter, read-only, non-destructive analyzer with no output schema, the description covers input (HAR 1.2 JSON), detection scope, and output shape (structured diagnostics + sanitized Markdown). Missing only failure-mode behavior: what happens with invalid HAR JSON or how large archives are handled.

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 all six parameters are already documented in the schema, making 3 the baseline. The description adds indirect meaning — 'expired-JWT' ties to referenceTimeIso, 'slow requests' ties to slowThresholdMs, 'sanitized ... Markdown incident summary' ties to reportTitle/reportLanguage — but no new format or edge-case detail beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource ("Analyze an HTTP Archive (HAR 1.2 JSON)") plus an explicit enumeration of what it extracts (4xx/5xx, CORS blocks, expired-JWT races, slow requests, P50/P95/max latencies) and what it returns. An agent can tell this is diagnosis rather than plain sanitization, though it never names the closest sibling (sanitize_har_archive) to draw a hard boundary.

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?

Use context is implied by the capability list — you would call it when you have a HAR containing failing or slow requests — but there is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. 'run after sanitize_har_archive'). No exclusions or alternative routing are stated.

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