Remove hidden content from untrusted text and flag text aimed at the model
input_guardRemoves hidden content and flags text aimed at the model, for untrusted input before an agent acts on it: web pages, emails, RAG chunks, tool and MCP responses. Strips invisible Unicode (tag smuggling decoded, zero-width, bidi) and HTML hidden from people; flags role takeover, forged system or tool turns, requests for keys, the prompt or payments, exfiltration links, homoglyphs and base64 payloads, in 17 languages. Rule-based. Verdict clean, caution or hostile, score, findings, cleaned text. Free with a key (500 calls) or 5 calls a day without one; then 0.02 USDC per call via x402, or 1 call from a key. After: preflight before your agent pays anything the content pointed to (the result's next field has the exact call).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "input_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | a public https page to fetch once and check (256 KB) | |
| text | No | the content to check (send text or url) | |
| payment_tx | No | Hash of a USDC transfer on Base to payTo (≥ the price, ≤ 72 h old) instead of an x402 signature. | |
| bundle_token | No | Your key instead of paying per call: free (500 calls, POST /key) or bought by card. The connection header X-Bundle-Token works too. | |
| payer_address | No | Wallet you pay from (optional; the x402 price is the same for every address). |