{"uid":"cap_EDyuonAL9M7qaxKZAGC55","slug":"agent-security-gateway-quota-check-081da375","name":"Agent Security Gateway – Quota Check","description":"Pay-per-request security APIs for autonomous AI agents using x402. Detect Japanese prompt injection, validate content, scan for threats, and perform pre-payment security checks. Built for USDC/Base payments.","url":"https://agent-security-gateway.onrender.com/api/quota/check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"allow":{"type":"boolean"},"reasons":{"type":"array"},"decision":{"type":"string"},"primitive":{"type":"string"},"risk_level":{"type":"string"},"recommended_action":{"type":"string"}}},"responseSchema":{"type":"json","example":{"allow":false,"reasons":["tool_calls_limit_exceeded: 100/100"],"decision":"block","primitive":"quota-check","risk_level":"high","recommended_action":"halt_agent_execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9kCvCnVLq5WtDRsGlTHz8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an AI agent has exceeded its tool call quota and returns a block/allow decision with risk level and recommended action.","exampleAgentPrompt":"Before my agent makes another tool call, check whether agent 'agent-42' using tool 'web_search' has exceeded its quota — give me the risk level and whether to allow or block the next action.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: 'allow' (boolean), 'decision' (allow/block), 'reasons' (list of strings explaining why, e.g. 'tool_calls_limit_exceeded: 100/100'), 'risk_level' (e.g. high/low), 'primitive' (quota-check), and 'recommended_action' (e.g. halt_agent_execution).","failureModes":["Missing required 'response_content' field returns a 422 validation error","Agent or tool not found returns allow=true with no reasons (unknown agents pass by default)","Payment failure via x402 (insufficient USDC balance) returns 402 Payment Required","Service unavailable on Render free tier cold starts causes timeout","Malformed JSON body returns 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call quota enforcement gate for AI agents — specifically to check whether a given agent or tool has exceeded its allowed number of tool calls before proceeding. Prefer this over custom rate-limiting middleware when you want out-of-box USDC/x402 payment integration and don't want to manage quota state yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:46.915Z","isFirstParty":false}