audit_schema
Validate JSON-LD structured data against Schema.org rules and AI-citation best practices. Accept a URL or raw JSON string for offline or online audit.
Instructions
Validate JSON-LD structured data against Schema.org rules and AI-citation best practices. Accepts either a URL (fetched) or a raw JSON string (parsed directly).
Read-only when given url (one HTTP GET). Zero network when given schema_json. No writes.
Deterministic, rule-based; no LLM. Validates required/recommended properties, @context correctness, sameAs links, and AI-search-friendly patterns.
When to use: focused JSON-LD audits, or to validate a schema block you're about to ship. For a full page audit that includes schema + everything else, use audit_page instead.
Either url or schema_json must be provided (not both). If both are provided, schema_json wins and no fetch happens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL to fetch and audit. Either this OR `schema_json` is required. Read-only HTTP GET. | |
| schema_json | No | Raw JSON-LD as a string (the contents of a `<script type="application/ld+json">` block). Use this to validate a schema block offline without fetching a URL. Either this OR `url` is required. | |
| respect_robots | No | If true (default), respect robots.txt before fetching `url`. Ignored when `schema_json` is used. |