Skip to main content
Glama

Check hreflang

check_hreflang

Crawl and validate hreflang across pages: reciprocity, self-reference, valid language/region codes, duplicate x-default. Reveal invisible errors that make Google ignore entire hreflang clusters.

Instructions

Crawl the site and validate its hreflang across pages: reciprocity, self-reference, valid language and region codes, duplicate or multiple x-default. Faults here are invisible page by page — every page looks correct and the cluster is still ignored, because a declaration Google cannot verify from both ends is dropped entirely.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoStart URL. Defaults to SEO_MCP_SITE.
maxPagesNoCap on pages crawled. Default 200.

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?

With no annotations provided, the description carries the behavioral burden. It states the tool crawls and validates rather than modifies data, and adds an important domain behavior: declarations Google cannot verify from both ends are dropped entirely. It stops short of describing output or crawl side effects, but for a read-only validation tool this is solid coverage.

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

Conciseness5/5

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

Two focused sentences with no filler. The first front-loads the action and resource, the second provides a concise, valuable explanation of why this validation matters. Every sentence earns its place.

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

Completeness4/5

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

For a read-only tool with fully documented parameters and no output schema, the description covers what the tool does, what it validates, and why it is important. The only notable omission is a description of the return format, but no output schema exists and the validation focus makes the expected result inferable.

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 two parameters (site and maxPages) are already fully documented in the input schema. The description does not add parameter-level detail, which is acceptable but not value-adding, so the baseline 3 applies.

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?

The description names a specific verb, resource, and scope: 'Crawl the site and validate its hreflang across pages.' It enumerates the exact checks performed (reciprocity, self-reference, language/region codes, duplicate x-default), which makes it unmistakable and clearly distinct from general crawl or validation siblings like crawl_site and validate_structured_data.

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?

The description gives useful context for when this tool is needed: hreflang faults are invisible page-by-page and affect the whole cluster, so this is the tool for cross-page cluster validation. It does not explicitly name alternatives or say when not to use it, but the reasoning is clear enough for an agent to route to it appropriately.

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