# Delx Commerce — Tool Permission Audit

> Delx Commerce — Tool Permission Audit is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Audits a list of requested tool permissions against an allowed set, returning which are permitted or denied and whether least-privilege principles are satisfied.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/tool-permission-audit?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-tool-permission-audit-d6e402e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b-uvdA4NZgOltF1Z5URDo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-tool-permission-audit-d6e402e5 -d '<json body>'
```

Example prompt: Before the agent calls the deploy tool, check whether its requested permissions — 'read' and 'deploy' — are within the allowed set of just 'read', and tell me if it passes the least-privilege check.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call permission audit that requires no signup, integrates directly into agent pipelines via x402 micropayments, and produces a structured, verifiable result including a least-privilege advisory — especially when enforcing access control for AI agent tool calls at runtime.

## Known failure modes

- Missing or malformed 'allowed' or 'requested' arrays returns a validation error
- Empty arrays may return trivially permitted or denied results without useful advisory
- Payment failure via x402 results in 402 response before audit is performed
- Unrecognized permission strings may be silently treated as denied

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object indicating whether the overall request is permitted, which specific permissions were denied, the intersection of allowed and requested permissions, the total count of requested permissions, and a boolean least-privilege advisory flag indicating whether the request exceeds minimum necessary access.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "allowed": {
   "type": "array",
   "description": "Input field: allowed."
  },
  "requested": {
   "type": "array",
   "description": "Input field: requested."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "denied": [
   "deploy"
  ],
  "schema": "delx/util-tool-permission-audit/v1",
  "permitted": false,
  "requested_count": 2,
  "allowed_requested": [
   "read"
  ],
  "least_privilege_advisory": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-tool-permission-audit-d6e402e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
