# Hermes Data Repair Plan API

> Hermes Data Repair Plan API is a paid API for AI agents from hermes-counterparty-api.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Analyzes a JSON or CSV dataset and returns a prioritized repair plan identifying data-quality issues like duplicates, missing values, mixed types, and constant fields.

## Facts

- Endpoint: POST https://hermes-counterparty-api.onrender.com/v1/repair-plan
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-data-repair-plan-api-3ee9b7f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zJ6PqZfrZBgSM9pq3i0Ro

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 hermes-data-repair-plan-api-3ee9b7f1 -d '<json body>'
```

Example prompt: Can you analyze this JSON records array for data quality issues and give me a prioritized repair plan? I want to know about duplicate rows, missing values, constant fields, and mixed types before I load it into production.

## When to prefer this

Choose this endpoint when you need a deterministic, structured audit of a JSON or CSV dataset before downstream use — especially for ETL pipelines, reporting workflows, or agent-driven data cleaning tasks. It is preferable to ad-hoc LLM analysis when you need a reproducible quality score and a machine-readable, prioritized action list. Best for tabular data with clear record boundaries; not suited for unstructured text, images, or nested documents.

## Known failure modes

- Missing required 'input' field returns a validation error
- Body format mismatch (e.g. declaring 'json' but sending 'csv' string) causes parse failure
- Empty records array may return a trivially perfect quality score with no actionable recommendations
- Payment not included or insufficient USDC (x402) results in 402 Payment Required
- Malformed JSON objects in the records array may cause schema inference errors
- Very large payloads may hit hosting-tier (Render free tier) timeout limits

## How this service works

Agent utilities for company research, package maintenance intelligence, dependency vulnerability checks, counterparty availability, SEC company snapshots, OFAC sanctions screening, and deterministic JSON/CSV data-quality work. Company domain intelligence includes a free preview before the paid enrichment call.

## Output

Returns a JSON object containing: a quality_score (0-100), an issues summary (duplicate_rows count, missing_values count, constant_fields list, mixed_type_fields list, identifier_integrity_fields list), a prioritized actions array (each with a code, priority rank, affected_count, and recommendation string), plus a schema_version and sha256 schema_fingerprint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "oneOf": [
      {
       "type": "object",
       "required": [
        "format",
        "records"
       ],
       "properties": {
        "format": {
         "type": "string",
         "const": "json"
        },
        "records": {
         "type": "array",
         "items": {
          "type": "object"
         }
        }
       }
      },
      {
       "type": "object",
       "required": [
        "format",
        "data"
       ],
       "properties": {
        "data": {
         "type": "string"
        },
        "format": {
         "type": "string",
         "const": "csv"
        }
       }
      }
     ]
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": {
   "duplicate_rows": 1,
   "missing_values": 0,
   "constant_fields": [
    "id"
   ],
   "mixed_type_fields": [],
   "identifier_integrity_fields": []
  },
  "actions": [
   {
    "code": "DEDUPLICATE_ROWS",
    "priority": 1,
    "affected_count": 1,
    "recommendation": "Remove or reconcile exact duplicate rows before downstream use."
   }
  ],
  "quality_score": 90,
  "schema_version": "1.0",
  "schema_fingerprint": "sha256:example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-data-repair-plan-api-3ee9b7f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermes-counterparty-api.onrender.com](https://www.zero.xyz/host/hermes-counterparty-api.onrender.com/llms.txt)
