Skip to main content
Glama

sanitize_har_archive

Read-onlyIdempotent

Scrub HAR archives with correlation-preserving HMAC-SHA256 tags to redact secrets across headers, cookies, queries, bodies, and Base64 responses for safe AI debugging of auth race conditions.

Instructions

Scrub a browser HTTP Archive (HAR 1.2 JSON or single HAR request entry) with correlation-preserving HMAC-SHA256 token tags (e.g. [JWT#1_9f4c · alg:HS256 · EXPIRED -10m] vs [JWT#2_3a81 · alg:HS256 · exp:+15m]) across headers, cookies, query strings, JSON/form bodies, and Base64 responses so AI agents can debug auth race conditions with 0% secret exposure.

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

Input Schema

NameRequiredDescriptionDefault
harJsonYesRaw HAR 1.2 JSON string (containing log.entries or a single HAR entry object) to scrub locally.
scrubIpv4NoWhen true (default), scrubs IPv4 addresses into correlated [IPV4#N_hash] tags.
scrubEmailNoWhen true (default), scrubs email addresses into correlated [EMAIL#N_hash] tags.
scrubPhoneNoWhen true (default), scrubs phone numbers into correlated [PHONE#N_hash] tags.
sessionSaltNoOptional deterministic salt string to align HMAC-SHA256 correlation hashes across multiple HAR captures.
slowThresholdMsNoLatency threshold in milliseconds used to flag SLOW_REQUEST waterfall entries.
referenceTimeIsoNoOptional ISO-8601 timestamp override used when evaluating JWT expiration deltas.

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 cover the safety profile (readOnlyHint, destructiveHint=false, idempotentHint=true, openWorldHint=false), and the description adds genuinely new behavior: HMAC-SHA256 correlation-preserving tags, the concrete tag syntax with JWT algorithm and expiry deltas, and the 0% secret exposure guarantee. It stops short of clarifying whether hashes are stable across calls without a sessionSalt, which matters given the idempotentHint claim and the 'optional deterministic salt' framing.

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 a single dense sentence with the verb and resource front-loaded and no filler. The inline tag examples earn their space by showing output shape, though the parenthetical comparison of two JWT tags makes the sentence long and harder to scan than a short two-sentence split would be.

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 usefully conveys return shape through tag examples, and all seven parameters are schema-documented, so an agent has enough to call it correctly. The main residual gap is the absence of any statement about hash determinism across invocations and about behavior on malformed or non-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 every parameter is already documented in the input schema and the baseline is 3. The description adds illustrative context — the [JWT#1_9f4c · alg:HS256 · EXPIRED -10m] example shows what referenceTimeIso produces and the [IPV4#N_hash] style implies what the scrub* toggles generate — but it does not define salt propagation or hash stability beyond what the schema states.

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?

The description opens with a specific verb and resource: 'Scrub a browser HTTP Archive (HAR 1.2 JSON or single HAR request entry)', and scopes the surfaces touched (headers, cookies, query strings, JSON/form bodies, Base64 responses). It implicitly separates itself from sanitize_curl_and_http_dump by insisting on HAR 1.2 input, but never names the sibling explicitly, so differentiation is inferred rather than stated.

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?

The 'so AI agents can debug auth race conditions' clause implies the use case and the correlation-tag examples imply why one would pick this over plain redaction. However, there is no explicit when-not guidance, no mention of when to prefer diagnose_har_failures or inspect_jwt_metadata_safe, and no prerequisites such as needing a stable sessionSalt for cross-capture comparison.

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