# Delx Commerce — Agent Result Error Shape Check

> Delx Commerce — Agent Result Error Shape Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Validates the structural shape of an error object returned by an AI agent, confirming required fields are present and the schema is well-formed.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/agent-result-error-shape-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-agent-result-error-shape-check-d2863314
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IhJw7mS0UObZcJylPWRZT

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-agent-result-error-shape-check-d2863314 -d '<json body>'
```

Example prompt: Can you check whether this error object my agent returned has the correct shape — make sure all required fields are present and nothing is malformed: {"code": "TOOL_FAILURE", "message": "upstream timeout"}?

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, privacy-safe check that an agent-produced error object conforms to the expected structural schema — especially in automated pipelines where you need cryptographic proof (SHA-256 hash) that the input was processed without retention or external calls. Prefer it over general-purpose JSON validators when you specifically need the Delx agent error schema contract and an auditable evidence record.

## Known failure modes

- Input exceeds 128 properties — request rejected
- Non-object value provided for `error` field — schema validation error
- Malformed JSON body — parse error returned
- Payment failure via x402 — 402 response with payment details
- Network timeout — no response from endpoint

## 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 containing: a boolean `shape_valid` indicating whether the error object is well-formed, a `missing_fields` array listing any absent required fields, a `status` string ('pass' or 'fail'), the operation name, schema identifier, and an evidence block with a SHA-256 hash of the input, a `retained: false` flag confirming no data is stored, and an `external_calls: 0` count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "error": {
   "type": "object",
   "description": "Error supplied to Agent Result Error Shape Check; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "shape_valid": true,
   "missing_fields": []
  },
  "schema": "delx/util-agent-result-error-shape-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f41f8f2354538275c7837e4a5b73f8d8226012563893fb9df97f7d791f7bb87f",
   "external_calls": 0
  },
  "operation": "delivery_contract:agent_result_error_shape_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-agent-result-error-shape-check-d2863314/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)
