Skip to main content
Glama

Check a page's hreflang tags

check_hreflang
Read-onlyIdempotent

Check the hreflang tags in a page's HTML: every language version listed, invalid codes (en-UK), relative addresses, whether the page lists itself and whether there is an x-default. Return links from the other versions are not fetched. It reads the page once as our crawler (MakerRadarBot), after its robots.txt, and stores nothing. at most 20 checks an hour per network and 30 an hour per site checked.

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_hreflang"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe public page to check (https://…). A bare host means its homepage.

Output Schema

NameRequiredDescriptionDefault
urlNo
hostNo
toolYesThe tool's slug (its page is /tools/<slug>).
factsNoWhat was read, as labelled rows. From the site or a registry: unverified.
scoreNo0–100 over the checks.
checksNoFails first. `fix` is the one action to take; null on a pass.
readAtNoUnix seconds.
sourceNoWhere the facts came from.
listingYesWhether the site is listed on the directory: its page when it is (and claimUrl while nobody has proven they own it), where to list it when not.
toolUrlYesThe same check as a page on the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the crawling identity (MakerRadarBot), that robots.txt is respected, that the page is read once, that nothing is stored, and concrete rate limits of 20 checks/hour per network and 30/hour per site. These are exactly the operational facts an agent needs before committing to a call.

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?

The first sentence is long but front-loaded with the core action and the enumerated checks are informative rather than padding. The trailing rate-limit sentence reads as a clipped fragment, which slightly hurts flow but not comprehension.

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 a single fully documented parameter, an output schema handling return values, and annotations covering safety, the description fills the remaining gaps: crawl identity, robots.txt behavior, statelessness, and rate limits. Nothing essential to invoking it correctly is missing.

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 coverage is 100% and the schema itself explains that a bare host means the homepage, so the baseline is 3. The description adds no further meaning about the url parameter, such as format or redirect handling.

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 ('Check the hreflang tags in a page's HTML') and then enumerates exactly what is inspected: language versions, invalid codes like en-UK, relative addresses, self-reference, and x-default. That precision makes it distinguishable from a generator such as generate_hreflang_tags without needing to name it.

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

Usage Guidelines3/5

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

The scope boundary 'Return links from the other versions are not fetched' tells the agent what this check will not cover, which is useful. However, there is no explicit when-to-use guidance and no naming of alternatives such as check_page_seo or generate_hreflang_tags, so the routing decision is left implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources