Skip to main content
Glama

audit_hreflang_matrix

Read-onlyIdempotent

Validate hreflang matrices by checking reciprocal return links, self-references, x-default, canonical alignment, and html[lang] across supplied pages without fetching URLs.

Instructions

Validate reciprocal hreflang return links, self-references, x-default, canonical alignment and html[lang] across a page matrix without fetching URLs.

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": {
      "pages": "<pages>"
    },
    "name": "audit_hreflang_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, and 'without fetching URLs' largely restates openWorldHint=false. The description adds no detail on how violations are reported, whether validation is strict or best-effort, or how partial matrices are treated, and no output schema exists to cover that gap.

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?

A single front-loaded sentence with no filler; each listed check corresponds to a real validation dimension of the input, so every clause earns its place.

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

Completeness3/5

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

For a nested-input validation tool with no output schema, the description covers what is checked but not what comes back (violation list, severity, per-page grouping) nor how the matrix is shaped. Adequate to invoke, insufficient to interpret the result.

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 0%, so the description must compensate for a complex single parameter: a 'page matrix' whose entries carry url, htmlLang, canonical, and alternates of hreflang/href pairs. The listed checks implicitly map to those fields (html[lang]→htmlLang, canonical alignment→canonical, return links→alternates), which helps, but the required shape and cardinality limits are left entirely to the schema.

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 (validate) and enumerates the exact checks performed: reciprocal return links, self-references, x-default, canonical alignment, and html[lang]. The clause 'without fetching URLs' distinguishes it from the live-crawl hreflang sibling, so an agent can choose between them without opening a 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?

'Without fetching URLs' makes the operating context explicit: this is the offline variant that works on data you already hold, versus the live-crawl alternative. There is no explicit when-not clause or named sibling, but the precondition is clear enough to route correctly.

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