Skip to main content
Glama

veil_redact_json

Sanitizes raw JSON strings while preserving their structure, redacting regex-detected PII and sensitive keys such as password, api_key, secret, and cvv.

Instructions

Sanitizes a JSON string while preserving structure, redacting both regex PII and sensitive keys (password, api_key, secret, cvv).

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": {
      "json": "<json>"
    },
    "name": "veil_redact_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesRaw JSON payload string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the two redaction mechanisms and that structure is preserved. It does not say what the redacted values become (masked, removed, or replaced with placeholders), whether the operation is reversible via veil_restore, or what happens on malformed JSON input.

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 with the action front-loaded and the redaction targets enumerated compactly. No filler, no repetition of the tool name, and the key detail (structure preservation) leads.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema, the description covers the input contract and redaction scope but leaves the return value underspecified, which matters because there is no output schema to fall back on. An agent cannot tell whether it receives a string, an object, or a count of redactions.

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?

There is a single parameter with 100% schema description coverage ("Raw JSON payload string"), so the schema already does the work. The description adds only the implicit constraint that the input is a JSON document whose structure matters, which is a marginal gain beyond the schema text.

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?

"Sanitizes a JSON string while preserving structure" states a specific verb and resource, and the parenthetical names exactly what is targeted (regex PII plus the keys password, api_key, secret, cvv). The JSON-specific, structure-preserving angle implicitly separates it from the sibling veil_redact, though that contrast is never made 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 only implied: an agent can infer this is the right tool when the payload is a JSON string and structure must survive redaction. There is no explicit when-to-use versus veil_redact, veil_scan, or veil_restore, and no stated exclusions or preconditions.

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

Deploy Server

Other Tools