Skip to main content
Glama

redirect-credential-check

Redirect chain credential-leak check — Walks a supplied HTTP redirect chain (up to 25 hops of status + Location) for an agent or HTTP client author and reports, per hop, which of the request's header names (Authorization, Cookie, Proxy-Authorization, API-key-like, Referer) are stripped or still forwarded, the method after the hop (301/302 POST to GET, 303, 307/308), whether the hop crosses origin, scheme, or registrable domain, an http

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": {
      "requestUrl": "<requestUrl>",
      "requestHeaderNames": "<requestHeaderNames>",
      "hops": "<hops>"
    },
    "name": "redirect-credential-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
hopsYes
methodNoInitial request method. Default GET.
requestUrlYesInitial absolute URL.
publicSuffixesNoExtra public suffixes for registrable-domain decisions.
requestHeaderNamesYesNames of headers on the initial request. Never send values.
clientStripsOnCrossOriginNoHeader names your client deletes on an origin change. Default: ["authorization"], the Fetch Standard rule.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose valuable semantics — the 25-hop cap, the per-hop decision model, the Fetch Standard default that clients strip Authorization on origin change, and method rewriting for 301/302/303/307/308. But it never states whether the tool makes any network requests or is pure computation over the supplied hops, and the truncated final clause hides one reported behavior, which is a real gap for an unannotated tool.

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 purpose is front-loaded in the first clause, which is correct structuring, but the whole definition is one long run-on enumeration that terminates mid-word, so a behavior is literally missing from the text. Nothing is padded, yet the unfinished sentence and the comma-spliced list reduce readability.

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 and six parameters, the description must convey what comes back; it does so by enumerating the per-hop verdicts (stripped vs forwarded headers, method, cross-origin/scheme/domain). That is close to sufficient for a deterministic analysis tool, but the truncated clause and the silence on whether any fetching occurs leave a notable gap.

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 coverage is already 83% and the schema documents the hop status enum, the relative-Location resolution rule, the 'never send values' constraint on requestHeaderNames, and the default for clientStripsOnCrossOrigin. The description reinforces the header-name-only model and the 25-hop bound, but adds no syntax or format detail beyond the schema (e.g. how publicSuffixes interacts with the domain-crossing verdict). Baseline 3-4 range; slight credit for tying header handling to the concrete check being performed.

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 names a specific verb and resource — walking a supplied redirect chain and reporting, per hop, which request header names are stripped or forwarded, the post-hop method, and whether origin/scheme/registrable domain changed. That is far more specific than the title and clearly distinct from neighbours like cors-preflight. It falls short of 5 only because the text trails off mid-sentence ('an http'), leaving the last reported dimension unnamed.

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?

The audience is stated ('for an agent or HTTP client author'), which implies the scenario: auditing whether credentials leak across a redirect chain. However, there is no explicit when-to-use/when-not guidance and no named alternative (e.g. cors-preflight or http-cache-explain) for adjacent questions. Usage must be inferred from the audience and the input shape.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources