{"uid":"cap_GnSn8G74NIPZsUPy8sHOw","slug":"brainiac-llms-txt-structure-validator-f1a3a116","name":"BRAINIAC llms.txt Structure Validator","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/llms-txt/structure-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":200000},"document":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"summary":{"type":"string","maxLength":5000},"sections":{"type":"array","items":{"type":"object","required":["name","links"],"properties":{"name":{"type":"string","maxLength":200},"links":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"url":{"type":"string","maxLength":2000},"title":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":1000}},"additionalProperties":false},"maxItems":200}},"additionalProperties":false},"maxItems":50}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"score":67,"issues":[{"type":"content_before_title","evidence":"Notes before the title","location":"line 1","severity":"high","description":"Content appears before the H1 title."},{"type":"empty_link_url","evidence":"click here","location":"line 4","severity":"high","description":"A link has an empty URL. This does not mean a page is missing; the markup has no target."},{"type":"duplicate_url","evidence":"/guide","location":"line 5 and line 6","severity":"medium","description":"The same link path appears more than once."}],"success":true,"analysis":"Parsed 8 lines from text. Found 1 H1, 1 H2 sections, and 3 links.","warnings":[{"type":"unsupported_heading","location":"line 7","description":"llms.txt sections use H2. A deeper heading is not a section the parser groups."},{"type":"missing_summary","location":"line 2","description":"A blockquote summary directly after the H1 is missing."}],"limitations":["The parser reads ATX headings, a blockquote directly after the H1, and markdown list links. It does not fetch URLs, run HTML, or decide that a link works.","The score starts at 100 and subtracts only the documented issue weights. Warnings and recommendations do not change it. The score is not a model grade.","Score weights: missing title 40, extra title 15, content before the title 15, malformed link 15, empty title 10, empty URL 10, javascript or data URL 20, duplicate path 8."],"recommendations":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zu7OxDbbzjf3aKvq1lCko","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and scores an llms.txt document for structural correctness, returning issues, warnings, and a numeric quality score.","exampleAgentPrompt":"Can you validate my llms.txt file and tell me if it has any structural issues? Here's the content: '# My Project\\n> A project summary.\\n\\n## Docs\\n- [Guide](/guide)\\n- [Guide](/guide)'","exampleUseCases":[{"title":"Pre-publish llms.txt quality check","prompt":"Before I publish my site's llms.txt, can you run it through the validator and tell me my score plus any issues I need to fix? Here's the full text of the file."},{"title":"Debugging malformed llms.txt links","prompt":"My llms.txt file seems broken — can you validate it and specifically flag any links with empty URLs or duplicate paths so I know what to clean up?"},{"title":"Automated CI lint for llms.txt","prompt":"I want to check whether this llms.txt document passes structural validation — give me the score and list every high-severity issue found in it."}],"resultDescription":"Returns a JSON object with: a numeric score from 0–100 (starting at 100, deducted by documented issue weights), an array of issues each with type, severity, evidence, location and description, an array of warnings, a plain-English analysis summary, a recommendations array, and a limitations array explaining the scoring methodology.","failureModes":["Input text exceeds 200,000 character limit — request rejected","Malformed JSON in document object — parsing error returned","Empty or missing both text and document fields — no content to validate","Network timeout if document is extremely large","Payment failure via x402 — call not executed"],"whenToPreferThis":"Use this endpoint when you need a deterministic, rule-based structural lint of an llms.txt file — not an AI opinion — that returns a reproducible numeric score and machine-readable issue list. Prefer it over manual review or generic markdown linters because it implements the specific llms.txt heading, blockquote, and link conventions and applies documented score weights. It is pay-per-call with no account setup, making it suitable for one-off or CI pipeline use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:33.138Z","isFirstParty":false,"canonicalSlug":"brainiac-llms-txt-structure-validator-f1a3a116"}