# Agent Result Error Shape Check

> Agent Result Error Shape Check is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Validates an agent error object for correct code, message, and retryability fields before accepting or paying for an x402 agent delivery result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/agent-result-error-shape-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-result-error-shape-check-06a7659c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_piDk7uvRi-1l3KLCqBjhp

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

Example prompt: Before we accept and pay for this x402 agent delivery, check the error object it returned — make sure the code, message, and retryability fields are correctly shaped and tell me if we should accept or reject it.

## When to prefer this

Use this endpoint as a bounded, low-cost preflight step before accepting or paying for any x402 agent delivery result that contains an error object. It is specifically designed for validating caller-supplied error metadata in agentic x402 workflows without external provider calls, making it faster and cheaper than general-purpose validation services. Prefer it over manual inspection when you need explicit acceptance/rejection status and normalized evidence for audit trails.

## Known failure modes

- Error object exceeds maxProperties limit of 128 — request rejected
- Missing required fields (code, message, retryability) — returns rejection with mismatch reasons
- Malformed JSON input — returns parse error
- Unexpected field types cause normalization failure — returns mismatch detail

## How this service works

Agent Result Error Shape Check: Agent Result Error Shape Check checks an agent error object for code, message, and retryability from bounded caller-supplied values without an external provider. Call Agent Result Error Shape Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Result Error Shape C…

## Output

Returns contract-specific validation checks, normalized evidence extracted from the error object, a list of mismatch reasons if any fields are invalid or missing, and an explicit acceptance or rejection status indicating whether the error object meets the required shape.

## 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/agent-result-error-shape-check-06a7659c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
