Skip to main content
Glama

sanitize_curl_and_http_dump

Read-onlyIdempotent

Scrub sensitive values from DevTools cURL commands, raw HTTP/1.1 dumps, and .env or DSN strings, replacing them with correlated token tags for safe, shareable repros.

Instructions

Scrub browser DevTools "Copy as cURL" commands (including multi-line continuations and ANSI-C $'...' quotes), raw HTTP/1.1 request dumps, and .env or database DSN strings into safe, shareable repro commands with correlation-preserving token tags.

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": {
      "rawInput": "<rawInput>"
    },
    "name": "sanitize_curl_and_http_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawInputYesRaw DevTools Copy-as-cURL command, HTTP request/response dump, or .env / DSN text to scrub.
scrubIpv4NoScrub inline IPv4 addresses into correlated [IPV4#N_hash] tags.
scrubEmailNoScrub inline email addresses into correlated [EMAIL#N_hash] tags.
scrubPhoneNoScrub inline phone numbers into correlated [PHONE#N_hash] tags.
sessionSaltNoOptional deterministic salt string for reproducible HMAC-SHA256 correlation tags.
referenceTimeIsoNoOptional ISO-8601 timestamp used to evaluate JWT exp/nbf deltas inside headers or payloads.
customRegexPatternNoOptional custom regular expression pattern to redact organization-specific internal tokens.

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 establish readOnly, idempotent and non-destructive behavior, so the description only needs to add context — which it does by disclosing that tags are correlation-preserving and that multi-line continuations and ANSI-C $'...' quoting are handled. It never states what the returned payload looks like or whether redaction is irreversible, which is the main remaining gap.

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 opens with the verb and the primary input type, then layers the secondary formats and the output guarantee. It is dense but every clause carries information; the parenthetical about ANSI-C quoting is somewhat niche but relevant.

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 7 parameters, full schema coverage, and annotations covering the safety profile, the definition covers inputs and transformation semantics well. The one omission is return-value shape: there is no output schema, and the description only gestures at the result ('safe, shareable repro commands') without saying it is a scrubbed string.

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 every parameter already carries a description including tag formats and the HMAC-SHA256 salt behavior, so the description adds no parameter-level meaning. Baseline 3 applies since the schema does all the work.

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 names a specific verb ('Scrub') plus the exact resources handled (DevTools Copy-as-cURL, raw HTTP/1.1 dumps, .env/DSN strings) and the output artifact ('safe, shareable repro commands with correlation-preserving token tags'). It distinguishes itself from sanitize_har_archive by input format rather than by naming the sibling, so differentiation is inferable but not explicit.

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 enumerating the accepted input formats, which lets an agent infer 'use this for cURL/HTTP/.env text'. There is no explicit when-not-to-use guidance and no routing to sanitize_har_archive for HAR files or inspect_jwt_metadata_safe for JWT work.

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