{"uid":"cap_OSXYxkracNbcFpeyO8wYJ","slug":"library-loan-imports-header-contract-check-a084849a","name":"Library Loan Imports — Header Contract Check","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-loans-schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FV5o4_kL1OiugYX-J16zx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a CSV header contract for library loan import data, checking column names, types, and value constraints across up to 1000 rows.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-import validation for library system","prompt":"Before I upload this loans CSV to our library system, can you check that the headers match the expected contract — loan_id, borrowed_on, branch_id, loan_days, overdue_days — and flag any rows where overdue_days is negative or branch_id isn't one of 'branch-north' or 'branch-south'?"},{"title":"Automated nightly loan data quality gate","prompt":"Every night we receive a loan import CSV from partner branches; run the header contract check on this file using a comma delimiter, allow only 'site-a', 'site-b', and 'site-c' as branch categories, and cap all cell lengths at 200 characters so we catch data errors before processing."},{"title":"One-off CSV sanity check for a data analyst","prompt":"I got this CSV of library loans from a colleague and I'm not sure if it's properly formatted — can you validate the headers and check that the numeric columns stay between 0 and 730, treating semicolons as the delimiter?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:59:51.136Z","isFirstParty":false,"canonicalSlug":"library-loan-imports-header-contract-check-a084849a"}