Skip to main content
Glama

Site Check

Trace redirects and headers

trace_redirects
Read-onlyIdempotent

Traces the redirects and headers of a web address. Use it when the user asks where a web address redirects to or why it lands somewhere else, for example "why does http://example.com end up on another address?", "show the redirect chain for this link" or "does this site redirect http to https?". Pass the address. Returns each hop with its status code and target, the final address and status, whether http is upgraded to https, and the main response headers such as cache-control and strict-transport-security. At most 6 redirects are followed. Do not use it for private or local addresses, to read page content, or to scan a site for vulnerabilities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAddress of a public web page, for example https://example.com/pricing. A bare domain such as example.com means https. Only public http and https sites on the standard ports are checked.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
chainYes
notesNo
noticeYes
sourceYes
statusNo
failureNo
headersNo
finalUrlNo
reachableYes
upgradesToHttpsNo
missingSecurityHeadersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description adds real behavioral constraints beyond them: a hard cap of 6 followed redirects and the public-address/standard-port restriction. It does not discuss auth, rate limits, or failure behavior on unreachable hosts, so it falls short of a 5.

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?

Front-loads the purpose, then usage, then output, then exclusions — a logical order with no filler. It is somewhat dense with quoted example phrasings, but every sentence contributes a distinct fact.

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?

For a single-parameter, read-only, open-world tool, the definition covers purpose, triggers, return shape, hard limits and exclusions. An output schema exists, so the brief return-value sketch is a bonus rather than a requirement; nothing needed to call it correctly is missing.

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 the schema itself already explains that a bare domain implies https and that only public http/https on standard ports are accepted. The description only says 'Pass the address', adding nothing beyond the schema, 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?

States a specific verb ('traces') and resource ('redirects and headers of a web address'), which cleanly separates it from siblings like check_page_tags, link_sample_check and landing_page_check that also touch URLs. An agent can identify this tool without opening its schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete user-intent triggers ("where does this redirect to", "show the redirect chain", "does this redirect http to https") and explicit exclusions (private/local addresses, reading page content, vulnerability scanning). When-to-use and when-not-to-use are both present.

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