Skip to main content
Glama

Delimit Redact

delimit_redact
Read-onlyIdempotent

Scan text for API keys, secrets, and PII before sending it to external LLMs or publishing. Redact detected sensitive data to prevent credential leaks.

Instructions

Scan or redact sensitive data (API keys, secrets, PII) from text.

When to use: before sending text to external LLMs or publishing output, to prevent leaking credentials or PII. When NOT to use: to manage stored secrets (use delimit_secret_store family) — this is in-memory text redaction.

Sibling contrast: delimit_secret_* manages credentials at rest; this scrubs them out of arbitrary text.

Side effects: read-only on input text — produces a sanitized copy in action="redact". Calls ai.pii_redact.scan / redact. Detects: API keys (OpenAI, xAI, Google, GitHub, npm), passwords, bearer tokens, emails, phone numbers, SSNs, credit cards, IPs, database URLs.

The internal token map is intentionally NOT exposed via MCP — it stays local. action="redact" returns only the redacted text and counts; the original cannot be recovered through this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText to process.
actionNo"scan" (preview, default) or "redact" (replace).scan
categoriesNoComma-separated categories — "api_key", "secret", "pii", "infra". Empty = all categories.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv4.7.9
    • changedInput schema / properties / action / description
      Previous value: -"\"scan\" or \"redact\"."New value: +"\"scan\" (preview, default) or \"redact\" (replace)."
    • changedInput schema / properties / categories / description
      Previous value: -"Comma-separated categories (api_key, secret, pii, infra). Empty = all."New value: +"Comma-separated categories — \"api_key\", \"secret\", \"pii\", \"infra\". Empty = all categories."
    • changedInput schema / properties / text / description
      Previous value: -"Text to scan/redact."New value: +"Text to process."
  2. Addedv4.5.5

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint/destructiveHint annotations, the description adds valuable behavioral details: it is read-only on input text, produces a sanitized copy, calls internal PII redaction services, keeps the token map local, and states that the original cannot be recovered through this tool. This gives an agent a clear safety and privacy model.

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?

The description is long but each section earns its place: when-to-use, sibling contrast, side effects, detection scope, and token-map caveat. It is front-loaded with purpose and clearly structured, with no filler.

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

Completeness5/5

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

Given the full input schema, output schema presence, and annotations, the description is complete for correct invocation. It covers purpose, routing to alternatives, side effects, parameter behavior, and limitations such as the unrecoverable original text.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents text, action, and categories. The description adds meaning by enumerating detected sensitive-data types (API keys, passwords, emails, SSNs, etc.) and clarifying action='redact' behavior. It does not fully map the detected types to the category enum values, so a 5 is not warranted.

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 first line states a specific verb ('scan or redact') and resource ('sensitive data from text'), making the core function immediately clear. The sibling contrast explicitly distinguishes it from delimit_secret_* tools, so an agent can tell them apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use it (before sending text to external LLMs or publishing output) and when NOT to use it (for managing stored secrets, use delimit_secret_store family). It also provides the sibling contrast explaining that delimit_secret_* manages credentials at rest while this tool scrubs arbitrary text.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/delimit-ai/delimit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server