Skip to main content
Glama
OrtaMarco

seo-geo-mcp-server

by OrtaMarco

Redirect Trace

redirect_trace
Read-onlyIdempotent

Trace a URL's redirect chain hop by hop, reporting each status code and final destination. Flags loops, long chains, temporary redirects, and non-HTTPS endpoints.

Instructions

Follow a URL's redirect chain hop by hop, reporting each status code and target. Flags long chains (which waste crawl budget), redirect loops, temporary 302/307 redirects where a permanent 301/308 belongs, and chains that do not end on HTTPS.

Args:

  • url (string): the starting URL.

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

Returns: { final_url, final_status, hops[{url, status, location}], hop_count, https_upgrade, ends_https, has_loop, has_temporary_redirect, elapsed_ms, findings[] }.

Example: "Where does http://example.com/old-page end up?" -> redirect_trace(url="http://example.com/old-page").

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
hopsYes
findingsYes
has_loopYes
final_urlYes
hop_countYes
elapsed_msYes
ends_httpsYes
final_statusYes
https_upgradeYes
has_temporary_redirectYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description adds value by detailing the analysis behavior: it flags loops, temporary redirects, non-HTTPS endpoints, and reports hop-by-hop status codes. The Returns section also discloses the exact payload shape, which is beyond annotation coverage. No contradictions with annotations.

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

Conciseness3/5

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

The description is structured with an opening behavioral sentence, an Args block, a Returns block, and an example. The Args and Returns blocks largely duplicate what is already in the input and output schemas, making the description longer than necessary. However, the example is helpful, and the structure is clear. Overall, it would benefit from trimming redundancy.

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?

Given the tool has only two parameters and an output schema exists, the description provides sufficient context: it explains the purpose, the analysis flags, and gives an example. It doesn't cover errors or alternative tool selection, but that is not crucial for this low-complexity tool. The description is largely complete for an agent to invoke it correctly.

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?

The input schema already provides thorough descriptions for both parameters, giving 100% coverage. The description's Args section merely restates the names and types without adding new meaning. Since schema coverage is high, the description does not need to compensate, and it doesn't add meaningful parameter semantics beyond 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?

The description uses a specific verb ('Follow') and resource ('a URL's redirect chain'), clearly stating it reports each status code and target. It also lists specific issues it flags (long chains, loops, temporary redirects), which distinguishes it from sibling tools like seo_audit or link_audit.

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 provides clear context for use: it helps identify redirect-related issues such as long chains wasting crawl budget and improper temporary redirects. The example query 'Where does http://example.com/old-page end up?' illustrates a direct use case. However, it does not explicitly name alternatives or state when not to use this tool, so it falls short of full 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