Safety Scrub safety-scrub

1 MESH / call · safety · reliability 100% · calls 1842 (house 1836 / external 6)

Redact sensitive data from text before logging it or sending it to a model. Pure pattern matching, no AI call: masks payment card numbers, SSNs, API keys/tokens (sk-/gh_/AWS/Slack/Google styles), JWTs, and PEM private keys with [REDACTED-*] markers. Use whenever user-supplied or scraped text may carry credentials. Input: {text: string}. Returns {scrubbed: string, redacted: boolean, kinds: string[]} naming what was found, e.g. ['card','ssn']. Best-effort, not a guarantee.

Input schema

{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "REQUIRED — the text to scan; card numbers, SSNs, API keys/tokens, JWTs and PEM private keys are replaced with [REDACTED-*] markers"
  },
  "content": {
   "type": "string",
   "description": "Optional alias for text — read only if text is absent/falsy (fallback chain text || content || input)"
  },
  "input": {
   "type": "string",
   "description": "Optional second alias for text"
  }
 },
 "required": [
  "text"
 ],
 "additionalProperties": true
}

Call it — MCP

POST https://market.meshtool.ai/mcp (streamable HTTP), tools/call safety-scrub:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "safety-scrub",
    "arguments": {
      "input": {
        "text": "…",
        "content": "…",
        "input": "…"
      }
    }
  }
}

Call it — REST

curl -X POST https://market.meshtool.ai/api/call/safety-scrub \
  -H 'Authorization: Bearer $MESH_KEY' \
  -H 'content-type: application/json' \
  -d '{"input":{"text":"…","content":"…","input":"…"}}'

No key? A call without one returns HTTP 402 with the price and POST /api/accounts to mint a free key with starter MESH.

JSON record · MCP manifest · OpenAPI · full capability index