---
title: "Testing structured data before AI agents read it"
description: "Structured data breaks quietly. Three free tools catch the errors; comparing the markup with the visible page catches the costly ones."
source_url: "https://specoria.com/insights/testing-structured-data-before-agents-read-it/"
lang: "en"
---

[Insights](https://specoria.com/insights/) Infrastructure

# Test your structured data before an agent reads it: three tools and one rule

Structured data breaks quietly: a theme update, a plugin conflict or a price formatted for people. Google's Rich Results Test, the Schema Markup Validator and URL Inspection catch most of it. The rule they can't check for you: the markup must match what the page shows.

By [Specoria Team](https://specoria.com/about/) November 28, 2026 4 min read

In this article

- [Three tools](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#three-tools)
- [The rule no tool can check](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#the-rule-no-tool-can-check)
- [What to look for](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#what-to-look-for)
- [Test more than Product](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#test-more-than-product)
- [Markup added by JavaScript](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#markup-added-by-javascript)
- [A testing routine](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#a-testing-routine)
- [The bottom line](https://specoria.com/insights/testing-structured-data-before-agents-read-it/#the-bottom-line)

A store adds Product markup, checks it once, and moves on. Six months later, a theme update wraps the JSON-LD in a script tag that breaks it, a plugin adds a second Product block with a different price, and nobody notices until an agent quotes the wrong one. Structured data rarely fails loudly. It just stops being right.

In this article, we look at three tools for checking structured data, what each tells you, and the rule that no tool can check on your behalf.

## Three tools

![Three testing tools side by side: the Rich Results Test showing which Google features a page is eligible for, the Schema Markup Validator showing every schema.org item found, and URL Inspection showing what Google indexed, with the rule beneath them that markup must match the visible page](https://specoria.com/insights/fig/testing-structured-data-before-agents-read-it-1.svg) Three tools and the rule none of them can check for you

**Google's Rich Results Test.** Google's introduction to structured data calls it an easy and useful tool for validating your structured data and, in some cases, previewing a feature in Search. Paste a URL or code and it lists the structured data items Google recognizes, with errors and warnings. It focuses on the types Google supports for rich results.

**The Schema Markup Validator** at validator.schema.org checks markup against the schema.org vocabulary in general, not only the types Google uses. It shows every item it finds, which makes it good at spotting duplicates and properties in the wrong place.

**URL Inspection in Search Console.** Google's guide suggests confirming with it that Google has found your structured data on the page. It shows what Google indexed, which may differ from what you see if your markup is added by JavaScript after load.

## The rule no tool can check

Google's introduction to structured data sets a quality rule: don't add structured data about information that is not visible to the user, even if the information is accurate. The reverse matters just as much for agents: what the page shows should be in the markup, with the same values.

A validator can tell you that `price` is a valid number. It can't tell you that the page says 1,299 and the markup says 1,249. For that, compare them yourself, or let a tool that reads both do it.

## What to look for

- **Errors:** missing required properties, wrong types, broken JSON.
- **Duplicates:** two Product items for one product, often one from the theme and one from a plugin.
- **Mismatches:** price, currency, availability or rating different from the visible page.
- **Variant gaps:** one offer for a product that has sizes with different stock.
- **Markup for hidden content:** reviews or prices that don't appear on the page.

## Test more than Product

Product markup gets most of the attention, but agents read other types too. Include them in the routine:

- **Organization** on the home page: legal name, address, contact, policies. See [business identity an agent can verify](https://specoria.com/insights/business-identity-an-agent-can-verify/).
- **Return and shipping policies,** whether at Organization level or on offers.
- **BreadcrumbList** on product pages, which tells an agent where a product sits in your catalog.
- **WebSite** markup if you describe your search URL.

## Markup added by JavaScript

If a script adds your structured data after the page loads, a validator given the URL may see it while an agent reading the raw HTML doesn't. Check the page source as well as the tools' results, and prefer markup in the HTML your server sends.

## A testing routine

- **After every theme, plugin or platform update,** test three pages: a simple product, a product with variants and an out-of-stock product.
- **Run both validators:** the Rich Results Test for Google's view, the Schema Markup Validator for everything else.
- **Compare values by eye** against the visible page: price, currency, availability, rating count.
- **Check URL Inspection** for one of them, to confirm what Google actually indexed.
- **Keep the three test URLs in a list** so the routine takes ten minutes.

## The bottom line

Structured data is how agents read your facts without guessing, and it breaks without warning. Two free validators and URL Inspection catch the technical errors; comparing the markup with the page catches the expensive ones. Make it a routine after every update, not a one-time task.

Specoria checks whether your product structured data is present and complete, and whether its price agrees with the page and your feed. Start with a [free readiness test](https://specoria.com/#contact).

### Sources

- Google Search Central, [Introduction to structured data markup in Google Search](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data), accessed October 23, 2026.
- Google, [Rich Results Test](https://search.google.com/test/rich-results), accessed October 23, 2026.
- Schema.org, [Schema Markup Validator](https://validator.schema.org/), accessed October 23, 2026.

## Related

- [nosnippet, data-nosnippet, max-snippet: the controls that decide what AI answers can quote from your pages](https://specoria.com/insights/snippet-controls-and-ai-answers/)
- [One product, one URL: canonical addresses so an agent doesn't see three versions of your price](https://specoria.com/insights/canonical-urls-for-product-pages/)
- [UCP for stores: one profile file and five capabilities, each tied to data you already run](https://specoria.com/insights/ucp-business-profile-and-capabilities/)
- [Product structured data (schema.org)](https://specoria.com/method/checks/product-schema/) The check: how we measure it and how to fix it
- [Agentic commerce statistics](https://specoria.com/agentic-commerce-statistics/) Sourced, dated figures you can cite
- [Agent Readiness Index 2027](https://specoria.com/index/) How the benchmarked stores scored, with open data

FREE TEST

## Is your store ready for shopping agents?

See in seconds how a shopping agent reads your store: free, instant, no email needed.

The free test runs in your browser and needs JavaScript. [Request the free deep audit by email instead →](https://specoria.com/#contact)

Your result opens on its own page. Want the full picture? The free deep audit and panel come next, by email.
