{"uid":"cap_8V3pAsg7sgzE_ecb1kCP3","slug":"citiview-data-format-converter-and-validator-073a0d58","name":"Citiview Data Format Converter and Validator","description":"Data conversion and checking: convert between CSV, TSV, JSON, XML and YAML (typed CSV values), and optionally validate the data against a JSON Schema with a list of every error. Up to 1 MB. Also callable as GET with the same fields as query parameters.","url":"https://agents.citiviewgroup.com/v1/convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["data","from","to"],"properties":{"to":{"type":"string"},"data":{"type":"string"},"from":{"type":"string","description":"csv | tsv | json | xml | yaml"},"schema":{"type":"string","description":"Optional JSON Schema"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Rp_PmoNruv9_N9EpCWwEN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts data between CSV, TSV, JSON, XML, and YAML formats (up to 1 MB) and optionally validates it against a JSON Schema, returning a list of all validation errors.","exampleAgentPrompt":"Can you convert this CSV data to JSON format for me: 'name,age\\nAlice,30\\nBob,25'? Also validate it against this schema: {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\"}}}}","exampleUseCases":[{"title":"CSV to JSON pipeline transformation","prompt":"I have this CSV data and I need it converted to JSON: 'product_id,price,in_stock\\n101,9.99,true\\n102,24.50,false'. Please convert it from CSV to JSON."},{"title":"Schema validation before data ingestion","prompt":"Can you take this JSON data and validate it against my schema to find any errors? Data: '[{\"user\":\"alice\",\"age\":\"thirty\"}]', validate against: {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"user\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\"}},\"required\":[\"user\",\"age\"]}}"},{"title":"YAML to XML configuration conversion","prompt":"Convert this YAML config to XML for me: 'server:\\n  host: localhost\\n  port: 8080\\n  debug: true'"}],"resultDescription":"Returns the data reformatted in the target format (CSV, TSV, JSON, XML, or YAML), with typed values where applicable (e.g., booleans and numbers inferred from CSV). If a JSON Schema was provided, also returns a structured list of every validation error found in the data.","failureModes":["Data exceeds 1 MB limit — request rejected","Invalid or malformed source data that cannot be parsed — parse error returned","Unsupported format specified for 'from' or 'to' — error response","Invalid JSON Schema provided — schema parse error","Data is valid but empty — may return empty structure","XML namespace or complex XML structures may not round-trip cleanly"],"whenToPreferThis":"Choose this endpoint when you need to programmatically convert between common data serialization formats (CSV, TSV, JSON, XML, YAML) in a single call, especially when you also need JSON Schema validation in the same request. Ideal for ETL pipelines, data ingestion preprocessing, and validating structured data before storage or API submission. Prefer this over generic code execution when you want a lightweight, deterministic conversion without spinning up a runtime environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:48:38.716Z","isFirstParty":false,"canonicalSlug":"citiview-data-format-converter-and-validator-073a0d58"}