DestructGuard — score command risk
score_destructguard_commandScore a command/action with the x402-paid DestructGuard service. Call get_x402_manifest first, verify the DestructGuard price and buyer policy, then retry the 402 challenge with an x402 payment signature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory or execution context | |
| repo | No | Repository or project context | |
| actor | No | Agent/tool requesting the action | |
| payer | No | Optional wallet/account identifier; stored only as a hash | |
| apiKey | No | Free-tier / plan API key (hp_free_… or a pass key). Forwarded as X-API-Key so paid tools serve from your monthly quota with NO x402 wallet. Get a free key (250 calls/mo) at https://hermesplant.com/pricing. | |
| intent | No | Why the command is being requested | |
| channel | No | Discovery channel or source tag | |
| command | Yes | Command or agent action to score | |
| campaign | No | Campaign tag for downstream telemetry | |
| diffStat | No | Optional git diff --stat or change summary | |
| xPayment | No | Raw X-PAYMENT proof from an x402-compatible wallet/client | |
| actorType | No | Caller type for analytics: agent, human, synthetic, system, or unknown | |
| synthetic | No | Mark this paid retry as an internal test/probe for analytics exclusion | |
| paymentSignature | No | x402 payment proof to forward as PAYMENT-SIGNATURE and X-PAYMENT on retry | |
| paymentIdentifier | No | Optional x402 payment identifier for idempotency/retry correlation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the upstream storefront call returned a 2xx response | |
| httpStatus | Yes | Upstream HTTP status code | |
| paymentRequired | No | True when the response is an x402 HTTP 402 payment challenge |