Skip to main content
Glama

Check structured data (JSON-LD)

check_structured_data
Read-onlyIdempotent

Validates 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

NameRequiredDescriptionDefault
urlYesA page, or (with whole_site) the site, for example https://example.com
kindNoShow 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_msNoPause between two requests to the site, in milliseconds (one request at a time).
max_pagesNoWith whole_site: how many pages to read at most (at most 1000).
whole_siteNoCheck every page the sitemaps list, not just this one.
ignore_robots_txtNoRead 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

NameRequiredDescriptionDefault
toolYes
factsYes
notesYes
passedYes
targetYes
readingYesHow to read this answer: the same lines end the text form
findingsYes
headlineYes
checked_atYes
robots_txtYes"ignored" only when the caller passed ignore_robots_txt
from_earlier_checkYesTrue when this answer re-reads an earlier check (because `kind` was given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/destructive/idempotent/openWorld, so the description's added value is the operational detail: robots.txt is followed, an override is possible but reported at the top of the report, the server ships a named schema.org vocabulary version, and results are cached for 15 minutes. Rate-limit behavior (one request at a time, pause between requests) is visible mainly through the schema rather than the prose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and scope, then organized into three problem categories plus a closing behavioral note, so an agent can stop reading early. The middle sentences are dense clause fragments (colons, parentheticals) that read as compressed rather than wasteful, though the style costs some fluency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no prose, and the description instead covers the non-obvious operational facts for a complex crawl-capable checker: sitemap discovery, robots.txt policy and its override, vocabulary provenance, rich-result rule coverage, and caching. Nothing an agent needs in order to call this correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by explaining that whole_site discovers pages via sitemaps and that requests are serialized, and by framing kind as drawing on names from a previous answer. It does not restate defaults or bounds for delay_ms or max_pages, leaving those entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Checks the JSON-LD structured data') and defines scope precisely: one page, or every page of a site found through its sitemaps. It also enumerates exactly what classes of problem it finds (nonexistent types/properties, misplaced properties, superseded properties, Google rich-result violations, dangling @id references), which clearly separates it from general page-checking siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real conditional guidance: use whole_site to crawl every sitemap-listed page, and pass ignore_robots_txt only when the user has claimed ownership or testing rights. The kind-parameter reuse note tells the agent how to drill into an earlier answer. It stops short of explicitly contrasting itself with sibling tools like check_page or check_site, so an alternative comparison is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.