# Library Loan Imports — Header Contract Check

> Library Loan Imports — Header Contract Check is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Validates a CSV header contract for library loan import data, checking column names, types, and value constraints across up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-loans-schema?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/library-loan-imports-header-contract-check-a084849a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OSXYxkracNbcFpeyO8wYJ

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 library-loan-imports-header-contract-check-a084849a -d '<json body>'
```

Example prompt: Can you run a header contract check on this library loan CSV — it has columns loan_id, borrowed_on, branch_id, loan_days, and overdue_days — and make sure the branch_id values are only 'group-a' or 'group-b', loan_days is between 1 and 365, and cells are no longer than 500 characters?

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost ($0.01 USDC) pre-flight schema check specifically tailored to library loan CSV imports with columns like loan_id, borrowed_on, branch_id, loan_days, and overdue_days. It is ideal for validating header contracts and value constraints before ingesting data into a library management system, and is well-suited for automated data pipelines that need a fast, deterministic validation step without external enrichment.

## Known failure modes

- CSV exceeds 100,000 character limit — request rejected
- More than 1000 rows submitted — validation may be truncated or refused
- Invalid delimiter value outside [',', ';', tab] — schema error
- Cell values exceed max_cell_length — flagged as violations
- allowed_categories list exceeds 100 entries — schema error
- Malformed CSV (unclosed quotes, inconsistent columns) — parse error returned

## How this service works

Library loan imports — Header contract check: Header contract check for Library loan imports. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV header contract check report.

## Output

A header contract check report indicating whether the CSV's declared column headers and cell values conform to the expected schema for library loan imports, including any rows or columns that violate type, length, range, or allowed-category constraints, across up to 1000 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "loan_id,borrowed_on,branch_id,loan_days,overdue_days\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3",
   "maxLength": 100000,
   "minLength": 1
  },
  "maximum": {
   "type": "number",
   "default": 1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "minimum": {
   "type": "number",
   "default": -1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "delimiter": {
   "enum": [
    ",",
    ";",
    "\t"
   ],
   "type": "string",
   "default": ","
  },
  "max_cell_length": {
   "type": "integer",
   "default": 1000,
   "maximum": 5000,
   "minimum": 1
  },
  "allowed_categories": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 100,
    "minLength": 1
   },
   "default": [
    "group-a",
    "group-b"
   ],
   "maxItems": 100,
   "minItems": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/library-loan-imports-header-contract-check-a084849a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
