Skip to main content
Glama
google-seo-mcp
by Akxan

Canonical host check (www, https, trailing slash)

canonical_host_check
Read-onlyIdempotent

Check http, https, www, bare-domain, and trailing-slash home page variants to confirm they redirect to one canonical URL, exposing duplicate 200 responses that split SEO ranking signals.

Instructions

Check that every way of typing the home page ends at one single address: http and https, www and bare domain, and the trailing-slash variants. When two of them both answer 200, Google sees duplicate sites and splits the ranking signals between them. This is a common silent failure on Cloudflare Pages and after a WordPress migration. Returns the full redirect chain for each variant and says which ones are wrong. No key needed.

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": {
      "domain": "<domain>"
    },
    "name": "canonical_host_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to test, default the home page./
domainYesBare domain, e.g. 'example.com' (do not include a scheme).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Addedv0.10.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, open-world read, so the description's job is to add context — and it does: it describes the return value ('the full redirect chain for each variant and says which ones are wrong') and removes an auth question with 'No key needed.' It does not say how many requests it makes or how failures/timeouts are reported, so it is not fully exhaustive.

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 purpose is front-loaded in sentence one, followed by rationale, return behavior, and auth note — a sensible order with no filler. The 'common silent failure' sentence is slightly editorial but still helps an agent decide to run the check.

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 only two well-documented parameters and no output schema, the description covers what is missing elsewhere: what the tool returns, what a bad result means, and that no credentials are required. Nothing an agent needs before invoking it is absent.

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 both parameters are documented in the schema, so the description adds no meaning about domain formatting or path beyond what is already there. The enumerated variants are fixed tool behavior, not parameters, 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 first sentence names a specific verb and resource: check that every variant of the home page URL resolves to one canonical address, enumerating the exact variants (http/https, www/bare, trailing slash). That scope is unmistakable and does not overlap with obvious siblings like robots_check or hreflang_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?

It supplies concrete conditions under which the check matters ('common silent failure on Cloudflare Pages and after a WordPress migration') and the consequence of failure (duplicate sites, split ranking signals). It stops short of naming an alternative tool or stating when not to run it.

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