Check structured data (JSON-LD)
check_structured_dataValidates JSON-LD structured data on one page or a whole site against schema.org and Google rich result rules, flagging invalid types, misplaced properties and broken @id references.
Instructions
Checks the JSON-LD structured data on one page, or on every page of a site (whole_site: true, found through its sitemaps). Against schema.org's own vocabulary (shipped with the server, its version named): types and properties that don't exist, properties on a type they don't belong to, superseded properties. Against Google's rules for the rich results it shows: breadcrumbs, FAQ, product and offer, article, organization, local business, event. And @id references that point at nothing on the page. Read-only; robots.txt followed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_structured_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A page, or (with whole_site) the site, for example https://example.com | |
| kind | No | Show only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again. | |
| delay_ms | No | Pause between two requests to the site, in milliseconds (one request at a time). | |
| max_pages | No | With whole_site: how many pages to read at most (at most 1000). | |
| whole_site | No | Check every page the sitemaps list, not just this one. | |
| ignore_robots_txt | No | Read pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| facts | Yes | ||
| notes | Yes | ||
| passed | Yes | ||
| target | Yes | ||
| reading | Yes | How to read this answer: the same lines end the text form | |
| findings | Yes | ||
| headline | Yes | ||
| checked_at | Yes | ||
| robots_txt | Yes | "ignored" only when the caller passed ignore_robots_txt | |
| from_earlier_check | Yes | True when this answer re-reads an earlier check (because `kind` was given) |