Skip to main content
Glama
OrtaMarco

seo-geo-mcp-server

by OrtaMarco

Hreflang Check

hreflang_check
Read-onlyIdempotent

Validate hreflang annotations on a page: check BCP-47 codes, self-referencing, x-default fallback, and duplicates. Optionally verify reciprocal links to catch ignored hreflang tags.

Instructions

Validate a page's <link rel="alternate" hreflang> annotations: language/region code validity (BCP-47), the required self-referencing entry, the x-default fallback, and duplicate codes.

With check_reciprocity=true it fetches each alternate and confirms it links back to this page — non-reciprocal hreflang is silently ignored by Google, and it is impossible to detect from one page in isolation.

Args:

  • url (string): the page to check.

  • check_reciprocity (boolean): verify alternates link back (default false).

  • response_format ('markdown' | 'json'): output format (default 'markdown').

Returns: { declared_lang, entries[{hreflang, href, valid_code, is_self, reciprocates}], has_x_default, self_referencing, duplicate_codes[], invalid_codes[], findings[] }.

Example: "Is hreflang set up correctly on https://example.com/es/pagina?" -> hreflang_check(url="https://example.com/es/pagina", check_reciprocity=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPage URL to analyse, e.g. 'https://example.com/blog/post'. The scheme defaults to https://.
response_formatNoOutput format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload.markdown
check_reciprocityNoFetch each alternate to confirm it links back. Catches the most common hreflang bug.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
entriesYes
findingsYes
final_urlYes
declared_langYes
has_x_defaultYes
invalid_codesYes
duplicate_codesYes
self_referencingYes
reciprocity_checkedYes
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the agent knows it's a safe read operation. The description adds valuable behavioral context by disclosing that with check_reciprocity=true it fetches each alternate URL, and explains the practical motivation (non-reciprocal hreflang is silently ignored by Google). It also outlines the return structure, making the tool's behavior fully transparent.

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?

The description is well-structured and efficient. It leads with the core purpose, follows with an optional advanced behavior, and then lists Args, Returns, and an Example in a scannable format. Every sentence adds information, and nothing is redundant or verbose.

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?

Given the tool's moderate complexity, the description covers all essential aspects: what is validated, the optional reciprocity fetch, all three parameters, the expected return shape, and a usage example. The output schema is present, so the Returns summary suffices. Annotations cover safety and semantics, making this description contextually complete.

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 description coverage is 100%, so parameters are already well-documented in structured form. The description adds extra value by explaining check_reciprocity's purpose and consequence ('verify alternates link back'), clarifying the default for response_format, and providing an example that shows how to invoke the tool with meaningful arguments. This goes slightly beyond the schema but not dramatically, hence a 4.

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 opens with a specific, actionable verb 'Validate' and precisely names the resource: a page's `<link rel='alternate' hreflang>` annotations. It enumerates concrete checks (BCP-47 validity, self-referencing entry, x-default fallback, duplicates) that clearly distinguish it from sibling SEO tools like meta_tags_check or structured_data_check.

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 clear context for when to use the tool (validating hreflang setup) and includes a concrete example query that illustrates the typical use case. However, it does not explicitly state when *not* to use it or name alternative sibling tools for other SEO checks, so it falls short of the highest bar for explicit usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrtaMarco/seo-geo-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server