Prompt injection check
get_injection_checkUse when an agent needs untrusted text screened for prompt-injection attempts. Returns no_injection_found, suspicious or malicious for up to 4,000 characters, with the matched rules (role tags, hidden Unicode, encoded payloads) and a model's view. Costs 0.004 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "get_injection_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the untrusted text to check, up to 4,000 characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_injection_check payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_injection_check | |
| tool | Yes | the tool that produced this payload |