{"openapi":"3.0.0","info":{"title":"Prompt Injection Detector","version":"1.0.0","description":"Scans agent input for prompt injection attacks. Pay-per-request via x402 (USDC on Base).","guidance":"POST to /mcp with a JSON-RPC body calling 'scan_for_injection' with a 'text' argument. Include your USDC-on-Base transaction hash in the X-Payment-Tx header. Returns { injectionDetected, confidence, patterns, recommendation }."},"paths":{"/mcp":{"post":{"summary":"Scan text for prompt injection patterns","description":"MCP endpoint for scan_for_injection tool. Requires x402 payment (0.003 USDC on Base).","x-payment-info":{"protocols":["x402"],"pricingMode":"fixed","price":"0.003"},"parameters":[{"name":"X-Payment-Tx","in":"header","required":true,"description":"Transaction hash from USDC transfer on Base","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"method":{"type":"string","enum":["tools/call"]},"params":{"type":"object","required":["name","arguments"],"properties":{"name":{"type":"string","enum":["scan_for_injection"]},"arguments":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The agent input text to scan for prompt injection patterns"}}}}},"id":{"type":"number"}}}}}},"responses":{"200":{"description":"Injection scan result","content":{"application/json":{"schema":{"type":"object","properties":{"injectionDetected":{"type":"boolean"},"confidence":{"type":"number"},"patterns":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"matched":{"type":"string"},"reason":{"type":"string"}}}},"recommendation":{"type":"string","enum":["block","warn","pass"]}}}}}},"402":{"description":"Payment Required"}}}}}}