Skip to main content
Glama

audit_redirect_chains

Read-onlyIdempotent

Analyzes supplied HTTP redirect hop traces to detect loops, multi-hop chains, temporary 302/307 redirects, and 4xx/5xx targets without making network requests.

Instructions

Audit supplied HTTP redirect hop traces for loops, multi-hop chains, temporary 302/307 redirects and 4xx/5xx targets without network requests.

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": {
      "traces": "<traces>"
    },
    "name": "audit_redirect_chains"
  }
}

Input Schema

NameRequiredDescriptionDefault
tracesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds corroborating value with 'without network requests,' but says nothing about the shape of the findings, severity ordering, or what happens to malformed traces.

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?

One dense sentence with the action first and the detection targets following; every clause carries information and the no-network constraint is placed where it is read. No filler or restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A single-parameter rooted tool with a nested hop schema and no output schema needs more than one sentence about input expectations, such as whether 'location' is required on redirect hops or how traces are keyed. The core purpose and offline nature are clear, but the calling contract is only partially covered.

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 description coverage is 0%, so the burden falls on the description. It conveys the concept of a redirect hop trace and references statuses (302/307, 4xx/5xx), which implicitly maps to the nested 'status' field, but it never explains startUrl, the 'location' field, or the 20-hop / 500-trace bounds.

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 states a specific verb and resource ('Audit supplied HTTP redirect hop traces') and enumerates exactly what it detects: loops, multi-hop chains, 302/307 temporaries, and 4xx/5xx targets. That scope cleanly separates it from the other audit_* siblings, which cover hreflang, JSON-LD, crawl policy, and so on.

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?

'Supplied ... traces' plus 'without network requests' establishes the key precondition: the caller must already hold hop data, so this is offline post-processing rather than a live crawl. It stops short of naming a live-crawl alternative or stating when an agent should prefer collecting traces first.

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