{"openapi":"3.1.0","info":{"title":"SLF Guardian MCP","version":"2.1.0","description":"Pre-action security checks for AI agents over MCP (JSON-RPC 2.0): code audit, package risk, prompt injection, command risk, domain trust and passive site scan. Paid per tool call with x402 on Base; no account or API key needed.","contact":{"name":"SLF Guardian","url":"https://slfguardian.com","email":"team@slfguardian.com"},"license":{"name":"MIT","identifier":"MIT"},"x-guidance":"POST JSON-RPC 2.0 to /mcp, or POST tool arguments to /mcp/<tool>. Unpaid calls return 402 with a PAYMENT-REQUIRED header (base64 JSON) and extensions.bazaar metadata. Sign the x402 `exact` authorization and retry with PAYMENT-SIGNATURE. Any MCP client (a request carrying MCP-Protocol-Version or MCP-Session-Id) gets 50 free calls per IP per day, answered 200 with X-SLF-Free-Trial: true and X-SLF-Free-Trial-Remaining; the quota resets daily at UTC midnight, and after it an unpaid call is 0.01 USDC via x402. Discover the tool list with method tools/list."},"servers":[{"url":"https://mcp.slfguardian.com"}],"paths":{"/mcp":{"post":{"operationId":"callTool","summary":"Call one SLF Guardian security check over MCP","description":"JSON-RPC 2.0 `tools/call`. Tool names: audit_code, check_package, check_prompt, check_command, check_domain, scan_site. One price per call regardless of tool.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"},"example":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_domain","arguments":{"domain":"example.com"}}}}}},"responses":{"200":{"description":"Tool result (JSON-RPC 2.0 result object with content[])","headers":{"X-SLF-Free-Trial":{"schema":{"type":"string"},"description":"true when the call used the free daily quota"}},"content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"base64 JSON x402 challenge (accepts[])"},"WWW-Authenticate":{"schema":{"type":"string"},"description":"x402 challenge in header form: network, amount, asset, payTo"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentChallenge"}}}},"429":{"description":"Too many calls for this payer; retry after the Retry-After header"}}},"get":{"operationId":"getPaymentChallenge","summary":"Read the x402 payment challenge for this resource","description":"Returns 402 with the accepts[] payment options. Payment is only taken for tools/call.","responses":{"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentChallenge"}}}}}}}},"components":{"schemas":{"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","number"]},"method":{"type":"string","enum":["tools/call","tools/list","initialize"]},"params":{"type":"object","properties":{"name":{"type":"string","enum":["audit_code","check_package","check_prompt","check_command","check_domain","scan_site"]},"arguments":{"type":"object","description":"Tool input as described by tools/list"}}}}},"PaymentChallenge":{"type":"object","properties":{"x402Version":{"type":"integer","example":2},"error":{"type":"string"},"resource":{"type":"object"},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string","example":"exact"},"network":{"type":"string","example":"eip155:8453"},"amount":{"type":"string","example":"10000"},"asset":{"type":"string","example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"payTo":{"type":"string","example":"0x10aCe92514ca10242a5738C3B108f3195eF50974"},"maxTimeoutSeconds":{"type":"integer","example":60}}}}}}}}}