Skip to main content
Glama
GEO Shield MCP

GEO Shield MCP

by krishnaGauss

Trace redirect chain

geo_trace_redirects
Read-only

Reconstructs URL redirect chains hop by hop, validates each destination against SSRF, and flags cross-domain hops, open redirects, loops, and HTTPS downgrades without executing page scripts.

Instructions

Reconstructs the redirect chain of a URL hop by hop (HTTP 3xx and Refresh headers), re-validating every destination against SSRF rules, and reports meta-refresh/JavaScript redirects declared by the final page without executing them. Flags cross-domain redirects, open-redirect patterns, loops and HTTPS downgrades. Read-only: never submits forms or exploits endpoints.

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": "geo_trace_redirects"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL whose redirect chain should be reconstructed.
max_redirectsNo
request_contextNoRequest headers preset. Non-browser contexts are simulations.desktop_browser

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive and open-world, but the description adds real behavior beyond them: every hop is re-validated against SSRF rules, JavaScript and meta-refresh redirects are reported but never executed, and the tool never submits forms or exploits endpoints. It also states the detection surface (cross-domain, open-redirect, loops, HTTPS downgrades), which tells the agent what a result can and cannot contain.

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?

Three sentences, front-loaded with the core action, then detection capabilities, then the safety guarantee. Every clause carries distinct information; nothing is repeated from the title or annotations.

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?

With no output schema, the description does a good job sketching what a result contains (hop-by-hop chain, redirect-type declarations, risk flags). It stops short of covering failure behavior — unreachable URLs, timeouts, or what happens when max_redirects is hit — which an agent would want for a network-dependent tool.

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 67% and the two undocumented items in schema terms are max_redirects and, partly, request_context; the description says nothing about either, so it adds no meaning over the schema. It only implicitly confirms the url parameter's role as the chain origin. Baseline 3 is appropriate where the schema carries most of the parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and resource: 'Reconstructs the redirect chain of a URL hop by hop,' and enumerates the signals it surfaces (3xx, Refresh headers, meta-refresh/JS declarations). It is unambiguous about what the tool does, but never names or contrasts the sibling tools geo_scan_url or geo_get_report, so an agent must infer the boundary itself.

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?

Usage is implied rather than stated: the mention of SSRF re-validation and redirect-pattern flagging suggests a security-analysis context, and 'Read-only: never submits forms' hints at when the tool is safe. There is no explicit when-to-use/when-not guidance and no routing to geo_scan_url for full-page analysis or geo_get_report for aggregated results.

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

Deploy Server

Other Tools