Skip to main content
Glama

Validate structured data (JSON-LD)

validate_schema
Read-onlyIdempotent

Checks JSON-LD structured data from a URL or raw snippet, reports parse errors, schema.org types, and missing required properties for common Google rich result types.

Instructions

Extract and check JSON-LD structured data (including @graph).

Give either a URL or the JSON-LD itself. Reports JSON parse errors with line and column, the schema.org types found, and missing required/recommended properties for common Google rich result types: Article/BlogPosting/NewsArticle, Product (+Offer, AggregateRating, Review), Organization, LocalBusiness and subtypes, BreadcrumbList, FAQPage, HowTo, Event, Recipe, VideoObject, JobPosting and SoftwareApplication. Also returns the Google Rich Results Test and Schema Markup Validator links. These checks approximate Google's documentation; the Rich Results Test is authoritative.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPage URL to fetch and extract JSON-LD from.
json_ldNoRaw JSON-LD text, or an HTML snippet containing <script type="application/ld+json"> blocks.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds value beyond the annotations by disclosing what is reported (line/column parse errors, discovered types, missing required/recommended properties) and by flagging that results approximate Google's documentation and are not authoritative. The readOnly/openWorld/idempotent profile is left entirely to annotations, which is acceptable given they are present.

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-loads the one-line purpose, then layers input modes, outputs, and scope. The long type list is dense but earns its place as matching surface for agents deciding relevance; the trailing authority caveat is well placed.

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?

With an output schema present, a 100%-documented two-parameter input, and rich annotations, the description supplies everything else an agent needs: accepted inputs, validation scope, result contents, and the accuracy caveat.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both parameters. The description only echoes the either/or input mode without clarifying precedence when both url and json_ld are supplied, so it adds little beyond structured data.

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?

States a specific verb and resource ('Extract and check JSON-LD structured data (including @graph)') and enumerates exactly which schema.org types are validated, so the agent can tell this apart from generic page-audit siblings without opening the schema.

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 concrete input guidance ('Give either a URL or the JSON-LD itself') and names an authoritative external alternative (the Rich Results Test), implying when to escalate. It does not explicitly exclude sibling tools like audit_page, so it stops short of full when-not guidance.

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