{"uid":"cap__1Mw7CRCBdgzRiZ8glrvf","slug":"agent-action-safety-quick-gate-bb173e39","name":"Agent Action Safety Quick Gate","description":"AI agent action safety: one-cent deterministic preflight for every consequential agent command. Returns risk, matched rule ids, and an exact machine-readable escalation call: full DestructGuard evidence for medium risk or the complete Action Safety workflow for high and critical risk.","url":"https://hermesplant.com/api/agent-services/action-safety/quick","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"cwd":{"type":"string"},"repo":{"type":"string"},"actor":{"type":"string"},"branch":{"type":"string"},"commit":{"type":"string"},"intent":{"type":"string"},"target":{"type":"string"},"command":{"type":"string","description":"Exact shell, SQL, Git, deploy, cloud, MCP, wallet, or x402 action to ..."},"diffHash":{"type":"string"},"diffStat":{"type":"string"},"environment":{"type":"string"},"failClosedOnUnmatched":{"type":"boolean","description":"When true, an unmatched consequential action routes to review instead..."}}},"responseSchema":{"type":"json","example":{"risk":"critical","status":"scored","service":"action-safety-quick-gate","matchedRuleIds":["git.force-push"],"requiresApproval":true,"nextRecommendedCall":{"path":"/api/agent-services/action-safety/run","method":"POST","priceCents":25}}},"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_ke9rQyrnWhv5UHsLiBJXV","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":"Runs a fast deterministic safety scoring pass on consequential agent actions (shell, Git, SQL, infrastructure, deploy, x402, MCP) and returns risk level, matched rule IDs, and approval requirements before execution.","exampleAgentPrompt":"Before you run that git force-push on the main branch, check it through the action safety quick gate and tell me the risk score, which rules it matched, and whether it needs my approval first.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a risk level (e.g. 'critical'), a status field, the service name, an array of matched rule IDs (e.g. ['git.force-push']), a boolean indicating whether human approval is required, and a pointer to the next recommended call (the full action-safety run endpoint with its path and price) if the action should proceed.","failureModes":["Unrecognized action type returns an unscored status or error","Malformed or missing action payload returns a 400-level error","Action matches no known rules and returns low risk with empty matchedRuleIds","Service unavailable returns 5xx with no safety verdict — agent should block action by default","Payment not received (x402) results in 402 response before scoring occurs"],"whenToPreferThis":"Use this endpoint as the fast, cheap ($0.01) pre-flight check before any consequential autonomous agent action — shell commands, Git operations, SQL mutations, infrastructure changes, deployments, x402 payments, or MCP tool calls. Prefer it over the full action-safety run endpoint when you need only a risk score and approval flag without full execution orchestration. It is ideal for high-frequency agentic loops where most actions are low-risk and only flagged ones need escalation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:36:53.586Z","isFirstParty":false}