Prompt-injection check for untrusted text ($0.0045)
prompt_injection_checkPAID ($0.0045 USDC via x402). Scan text you are about to read — a fetched web page, an email, a tool description, another agent's message — for the shapes that hijack agents: instruction-override phrasing, a redefined system role or persona, requests to move credentials or keys, hidden directive tags and invisible Unicode. Returns a verdict (malicious / suspicious / no_known_pattern) and every pattern found with its severity. The same ruleset scans every FiatDock marketplace listing. Pattern-based: no_known_pattern is not a guarantee. Up to 8,000 characters per call; nothing is stored. Without payment this returns the 402 challenge; the fiatdock-mcp npm package pays automatically. Any answer the tool cannot produce is >= 400 and is NOT charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The text to scan (up to 8,000 characters). Omit the whole body to scan the published example | |
| payment | No | Base64 of a single x402 v2 PaymentPayload (EIP-3009 transferWithAuthorization on Base USDC). OMIT it on the first call: the 402 you get back carries `howToPay.payloadTemplate` — the exact envelope to fill in — plus the price and the EIP-712 domain. Send it on the second call to complete the purchase; it is forwarded as the PAYMENT-SIGNATURE header, never as body data. Nothing is charged for the 402 itself, and a call that fails after payment settles nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | What the verdict does and does not mean | |
| chars | Yes | Characters scanned | |
| method | Yes | The ruleset applied | |
| verdict | Yes | malicious (a high-severity pattern), suspicious (medium only) or no_known_pattern (not a guarantee) | |
| findings | Yes | Each pattern found, with its severity and how many times | |
| checkedAt | Yes | ISO time of the scan | |
| defaulted | No | Present only when the body was empty: which subject the answer is for, and why | |
| highCount | Yes | High-severity patterns found | |
| mediumCount | Yes | Medium-severity patterns found |