Skip to main content
Glama

API Keg — Trace Diet (HAR & Log Distiller)

Distill & Scrub HAR Network Capture

distill_har_capture
Read-onlyIdempotent

Parses Chrome DevTools / Playwright .har captures, strips static assets (.js/.css/fonts/images), analytics beacons, and OPTIONS preflights, scrubs credentials (Authorization, Cookie, Set-Cookie, X-Api-Key, token params, JWTs) into [REDACTED:], groups dynamic :id/:uuid routes and polling loops, surfaces 4xx/5xx failures and slowestEndpoints, and infers compact TypeScript request/response schemas. Pricing: $0.002 base (up to $0.008 max ($0.002 base + $0.001 per 250KB of .har input, capped at $0.008), x402 variable settlement). Pass ?dry_run=true on REST to validate schema free.

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

Input Schema

NameRequiredDescriptionDefault
harNoParsed HAR 1.2 JSON object containing log.entries (exported from Chrome DevTools, Playwright, or mitmproxy).
harJsonNoRaw serialized .har JSON text when passing unparsed file contents directly.
allowedHostsNoOptional hostname allowlist (e.g. ['api.acme.com']) to isolate target traffic.
inferSchemasNoInfer compact TypeScript interfaces/types for JSON request and response payloads across endpoint calls.
redactSecretsNoScrub Authorization, Cookie, Set-Cookie, X-Api-Key, api_key/token query params, and JWTs into [REDACTED:<type>].
includeTelemetryNoKeep analytics and telemetry beacons (Google Analytics, Segment, Datadog, Sentry, Mixpanel). Defaults to false.
includeStaticAssetsNoKeep static asset requests (.js, .css, .woff2, .png, .svg, .ico, images/fonts). Defaults to false.
maxFailureBodyCharsNoMaximum characters retained per 4xx/5xx/network failure body snippet.
maxSlowestEndpointsNoMaximum number of slowest endpoints ranked by p95 latency.
includeOptionsPreflightNoKeep CORS OPTIONS preflight requests. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, yet the description adds substantial beyond them: the exact categories of data removed (static assets, analytics beacons, OPTIONS preflights), the precise credential patterns redacted into [REDACTED:<type>], the pricing model with its cap, and a free validation path. That cost and data-destruction disclosure is exactly what an agent needs before spending budget on a large capture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The core capabilities are front-loaded, but the whole definition is one sprawling sentence with a nested pricing clause that repeats the same figures twice ("$0.008 max ($0.002 base + $0.001 per 250KB ... capped at $0.008)"). The pricing parenthetical could be one clean clause, and the capability list would read better broken out.

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 ten-parameter tool with a nested object and no output schema, the description does well to enumerate the return payload (grouped routes, polling loops, 4xx/5xx failures, slowestEndpoints, inferred TypeScript schemas). The notable gap is that no parameter is required, yet the description never states that one of har or harJson must be supplied.

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% and all ten parameters carry their own descriptions, so the schema does the heavy lifting. The description restates the redaction list and static-asset filtering already covered by the redactSecrets and includeStaticAssets parameters, adding little semantic meaning beyond the schema; a baseline 3 applies.

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 names a specific verb (parses, strips, scrubs, groups, infers) applied to a specific resource (Chrome DevTools / Playwright .har captures) and enumerates the transformations performed. Its only sibling, cluster_logs, operates on a wholly different input domain, so the tool is unambiguous 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?

It states clearly what input sources are accepted (Chrome DevTools, Playwright, mitmproxy exports) and offers an explicit free dry-run path for schema validation. What is missing is any explicit exclusion or prerequisite, e.g. "supply exactly one of har or harJson" or guidance on when host filtering is advisable.

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