Validate CSV before import using a fixed JSON column specification
Validate CSV before import using a fixed JSON column specification. Checks missing/extra columns, required cells, string/integer/decimal/boolean/date types, uniqueness, allowed values and numeric/row-count bounds. Returns pass/fail with row/column error codes…
by csv-validator.mekler.ai · discovered, not yet claimed by its owner · updated 2026-10-02
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Validate CSV before import using a fixed JSON column specification. Checks missing/extra columns, required cells, string/integer/decimal/boolean/date types, uniqueness, allowed values and numeric/row-count bounds. Returns pass/fail with row/column error codes. POST JSON with csv and spec.columns; schemas/examples attached. Full contract: /openapi.json. Max 2,000 rows, 50 columns, 256 KiB; first 50 failures. No formulas, cross-column rules, fact checking or data repair.
Tags: csv · data-validation · data-quality · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-02
{
"csv": "id,amount\na,12.50\na,-2.00\n",
"spec": {
"columns": [
{
"name": "id",
"required": true,
"type": "string",
"unique": true
},
{
"max": "100",
"min": "0",
"name": "amount",
"required": true,
"type": "decimal"
}
],
"min_rows": 1
}
}{
"boundary": "Only supplied explicit criteria checked; no certification of truth or subjective quality.",
"failure_count": 2,
"failures": [
{
"code": "unique",
"column": "id",
"row": 2
},
{
"code": "min",
"column": "amount",
"row": 2
}
],
"failures_truncated": false,
"receipt_sha256": "32265ae46050fa0067b9adb0df085a5cf3d9fa3d47d91e9ea2f61135a382d8ac",
"rows_checked": 2,
"schema_version": 1,
"verdict": "fail"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/38114.jsonfor the price and payment options. - Pay. Call
GET https://csv-validator.mekler.ai/v1/accept/csv. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.05 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Solana
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.05 | 9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "50000",
"amountUsd": 0.05,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"boundary": {
"type": "string"
},
"failure_count": {
"minimum": 0,
"type": "integer"
},
"failures": {
"items": {
"properties": {
"code": {
"enum": [
"missing_column",
"extra_columns",
"row_width",
"required",
"type",
"min",
"max",
"enum",
"unique",
"min_rows",
"max_rows"
],
"type": "string"
},
"column": {
"description": "Column name, or null when the error applies to the row or file.",
"type": [
"string",
"null"
]
},
"row": {
"description": "One-based data record, excluding header; null for file/header errors.",
"type": [
"integer",
"null"
]
}
},
"required": [
"code",
"row",
"column"
],
"type": "object"
},
"maxItems": 50,
"type": "array"
},
"failures_truncated": {
"type": "boolean"
},
"receipt_sha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"rows_checked": {
"minimum": 0,
"type": "integer"
},
"schema_version": {
"enum": [
1
],
"type": "integer"
},
"verdict": {
"enum": [
"pass",
"fail"
],
"type": "string"
}
},
"required": [
"schema_version",
"verdict",
"rows_checked",
"failure_count",
"failures",
"failures_truncated",
"receipt_sha256",
"boundary"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"boundary": "string",
"failure_count": 0,
"failures": [
{
"code": "missing_column",
"column": "string",
"row": 0
}
],
"failures_truncated": true,
"receipt_sha256": "string",
"rows_checked": 0,
"schema_version": 1,
"verdict": "pass"
},
"type": "string"
}Examples
curl "https://csv-validator.mekler.ai/v1/accept/csv"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://csv-validator.mekler.ai/v1/accept/csv");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://csv-validator.mekler.ai/v1/accept/csv")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- csv-validator.mekler.ai
- Endpoint
- https://csv-validator.mekler.ai/v1/accept/csv
- Machine-readable
/resources/38114.json