Skip to main content
Glama

expand_link

Read-only

Trace a shortened or tracking link through each redirect and report the full chain plus the final destination address without loading the page.

Instructions

Follow a shortened or tracking link through its redirects without loading the page, and report each step and the final address.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe link to expand

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

readOnlyHint=true already declares this is a safe read, and the description adds genuine behavioral context beyond that: the target page is NOT loaded (no render/JS execution, so no tracking pixels fired) and the tool returns the full redirect chain plus the terminal address. It stops short of stating hop limits, timeouts, or what happens on a redirect loop or dead link.

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?

A single sentence with three useful clauses – the action, the no-page-load constraint, and the return shape – with nothing redundant. The most decision-relevant information leads.

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?

For a one-parameter tool with no output schema, the description is nearly complete: it explains both what is fetched and what comes back (per-step chain and final address). The remaining gap is failure behavior – unreachable links, redirect loops, or hop caps – which an agent would want before calling.

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?

Only one parameter with 100% schema description coverage, so the schema already carries the meaning of 'url'. The description adds slight framing by qualifying it as a shortened or tracking link, but no format or handling details beyond that. 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 (follow/expand) and resource (shortened or tracking link) plus the outcome (each redirect step and the final address). None of the sibling tools do redirect resolution, so an agent can distinguish this immediately from certificate_names, dns_records, or wayback_history.

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 phrase 'shortened or tracking link' gives clear context for when this tool applies – the agent knows to reach for it when it has an obfuscated URL that needs resolving. There are no explicit exclusions or named alternatives, but the sibling set contains no overlapping capability, so the missing exclusion costs little.

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