{"uid":"cap_PE73DDsoan5zb_QQuOWdN","slug":"touchstone-locomot-io-syntax-validator-cb90bcbc","name":"touchstone.locomot.io Syntax Validator","description":"Deterministic syntax validation — does this JSON/YAML/TOML/Python/regex parse? Valid/invalid + error location from the canonical parser. For long source use POST. Free sample, no payment required: GET /play/syntax","url":"https://touchstone.locomot.io/syntax","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["content","lang"],"properties":{"lang":{"type":"string","description":"json | yaml | toml | python | regex"},"test":{"type":"string","description":"regex only: string to match"},"content":{"type":"string","description":"code/config to validate"}}}},"additionalProperties":false},"output":{"type":"object","properties":{"op":{"type":"string"},"lang":{"type":"string"},"error":{"type":"null"},"valid":{"type":"boolean"},"source":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B-oieNj8xzOEVtZzHJyP4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates JSON, YAML, TOML, Python, or regex syntax using the canonical parser, returning a valid/invalid result plus error location on failure","exampleAgentPrompt":"Can you check if this YAML is syntactically valid? `name: myapp\\nversion: 1.0\\nports: [8080, 9090` — I think there might be a bracket issue somewhere.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a boolean 'valid' field, the detected language ('lang'), the source echoed back, and either null for 'error' (if valid) or an error description with location (line/column) indicating where parsing failed.","failureModes":["Missing 'content' query parameter returns an error","Missing 'lang' query parameter returns an error","Unsupported language value returns an error","Content too long for GET — use POST /syntax instead","Payment not provided or x402 handshake fails — HTTP 402 returned","Malformed request returns HTTP 400","Regex 'test' param only applies when lang=regex; ignored otherwise"],"whenToPreferThis":"Use this endpoint when you need deterministic, canonical-parser-based syntax checking for JSON, YAML, TOML, Python source, or regex patterns — especially when you need the exact error location (line/column) rather than a heuristic lint. Prefer over LLM-based syntax guessing when you need a ground-truth pass/fail answer. Use POST for longer source content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:31:55.518Z","isFirstParty":false}