# Course Grade Imports — CSV Header Contract Check

> Course Grade Imports — CSV 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-19).

Validates the header structure and data contract of a CSV file containing course grade import data, checking column names, types, and value constraints up to 1000 rows.

## Facts

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

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 course-grade-imports-csv-header-contract-check-00d4404c -d '<json body>'
```

Example prompt: Can you check if this course grade import CSV has valid headers and data contract — it uses commas as delimiters, course IDs should only be 'group-a' or 'group-b', earned points between 0 and 100, and cells shouldn't exceed 500 characters? Here's the CSV: result_id,graded_on,course_id,earned_points,possible_points\nrecord-a,2026-01-01,group-a,10,20

## When to prefer this

Choose this endpoint when you need to validate the structural and semantic contract of a course grade CSV before importing it into a downstream system — specifically when you want to enforce allowed course ID categories, numeric point ranges, and column naming conventions. Prefer this over generic CSV validators when the domain is educational grade data with the specific schema of result_id, graded_on, course_id, earned_points, and possible_points. Best for preflight checks in automated grade ingestion pipelines.

## Known failure modes

- CSV exceeds 100,000 character limit — request rejected
- Delimiter mismatch causes incorrect column parsing, leading to false validation failures
- Allowed categories list is empty or misconfigured, causing all category values to fail
- Numeric minimum exceeds maximum — undefined or erroneous range behavior
- CSV has no header row — contract check cannot identify column names
- Malformed quoted cells may cause parse errors if quoting is inconsistent

## How this service works

Course grade imports — Header contract check: Header contract check for Course grade 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

Returns a structured header contract check report indicating whether the supplied CSV conforms to the declared schema, including column presence and naming validation, category membership checks, numeric range violations, cell length violations, and any structural parsing errors found within up to 1000 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "result_id,graded_on,course_id,earned_points,possible_points\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/course-grade-imports-csv-header-contract-check-00d4404c/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)
