Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man clean-text-pack

/clean-text-pack

agentutility / compose / clean-text-pack
PRICE / CALL
$0.03
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
compose
CATEGORY
uncategorized
STATUS
live
NAME
clean-text-pack sanitizes raw text in one call: unicode normalization, homoglyph audit, pii detection, and pii redaction
SYNOPSIS
POST https://x402.agentutility.ai/clean-text-pack
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Sanitizes raw text in one call: Unicode normalization, homoglyph audit, PII detection, and PII redaction. Returns the NFC-normalized string, a script/homoglyph/hidden-character audit (Cyrillic lookalikes, zero-width chars, RTL overrides), every PII match with risk level, and a fully redacted copy with [EMAIL]/[PHONE]/[SSN]-style masks. One paid call replaces four sanitization steps: ideal for log scrubbing, dataset prep, LLM input hygiene, phishing triage. Composite: one call runs text-normalize + unicode-normalize + detect-pii + pii-redact in parallel over the same text. Use it as a text sanitizer, GDPR-safe ingest pipeline, or input scrubber.

INPUTrequest schema
propertytypedescriptionreq?
textstringRaw text to clean and audit. Max 30000 chars.required
OUTPUTresponse shape
fieldtypedescription
text_charsstring
normalizedstring
unicodestring
piistring
redactedstring
redactionsstring
composed_ofstring
componentsstring
degradedstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/clean-text-pack \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the clean-text-pack tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
composecleantextpackclean-text-pack
methods
POST
cluster
compose
price
$0.03 USDC per call
ADJACENTother endpoints in compose
endpointdescriptionprice
address-intel-packEnriches a street address in one call: parse, geocode, timezone, and building permits.$0.03
contact-normalize-packNormalizes a contact record in one call, generating stable match keys for email, name, phone, and address plus parsed US address components.$0.03
email-trust-reportVets an email address in one call: deliverability, disposable check, DMARC posture, and a dedupe key.$0.03
flight-briefReports live flight status with FAA airport delays and airport info in one call.$0.03
json-dev-packConverts a JSON document to TypeScript types and YAML, with optional schema validation, in one call.$0.03
onchain-identity-packResolves an EVM address or name across ENS, Basenames, and known-wallet labels in one call.$0.03
regex-packGenerates a regex from a natural-language prompt and live-tests it in one call.$0.03
text-intel-packRuns full text analysis in one call: language detection, sentiment, named entities, token count, and optional zero-shot classification.$0.03
SEE ALSO
agentutility · compose · x402 · mcp · llms.txt · registry.json · bazaar.x402.org