Skip to main content
Glama

list_links

Read-only

List all short links for the API key's account, newest first, including IDs, slugs, and destinations so you can find a link ID for other tools. Read-only.

Instructions

List all short links of the account that owns the API key, newest first, with their ids, slugs and destinations. Use it to find a link id for the other tools. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_links"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered structurally; the description reinforces it with "Read-only" and adds genuinely new behavior: result ordering (newest first) and the fields returned. It says nothing about volume limits or whether the full list is always returned, which is the one behavioral detail an agent would still want.

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 short sentences, front-loaded with scope and return contents, then the routing hint, then the safety note. No redundant restatement of the title and no filler.

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?

There is no output schema, so the description carries the burden of describing return values and does so via ids, slugs, and destinations plus ordering. The remaining gap is whether the list is paginated, capped, or truncated for large accounts — material for a tool that returns "all" links but not enough to call the definition incomplete.

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?

The tool takes no parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly spends its words on scope and return shape instead of inventing argument detail.

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 names a specific verb and resource ("List all short links"), scopes it to the account owning the API key, and states ordering (newest first) plus the returned fields (ids, slugs, destinations). This is distinguishable from every sibling, which all operate on a single link or on analytics/QR output.

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?

It gives a clear use case — "Use it to find a link id for the other tools" — which tells the agent this is the discovery step preceding update_link, delete_link, get_link_stats, and similar. It stops short of a full when/when-not rule set (e.g. when to prefer get_analytics or shorten_url instead), so it lands at 4 rather than 5.

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