Skip to main content
Glama

list_links

Read-only

List a document's links, newest first, with what each plays, its URLs and whether it was revoked.

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": {
      "document_id": "<document_id>"
    },
    "name": "list_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoThe cursor the previous page ended with.
limitNoHow many to return.
document_idYesThe document, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
nextNo`after` for the next page; absent on the last.
linksYesNewest first, revoked ones too.

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?

Annotations already state readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds ordering ('newest first') and the shape of each row, which is genuine value, but it never says whether revoked links are filtered out or included, nor how pagination/stability works — the main behavioral questions left open.

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?

One front-loaded sentence with no filler, and the ordering constraint sits up front where it matters. The phrase 'what each plays' is awkward and slightly opaque, which costs it a point on clarity.

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?

A simple, single-resource list tool with full schema coverage and an output schema that already explains return values, so the description needn't detail them. What remains unaddressed — whether revoked entries appear in results and how cursors chain across pages — is minor but real for a paginated lister.

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 100%, so document_id, limit and after are already documented in the schema; the description adds nothing about limits, defaults, or cursor reuse. Baseline 3 applies when the schema carries the parameter burden.

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?

Names a specific verb and resource ('List a document's links') plus its ordering ('newest first') and the payload shape ('what each plays, its URLs and whether it was revoked'). That sets it apart from document/asset listers and from create_link, though it never names a sibling to differentiate itself from.

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?

Usage is only hinted at by the possessive scope 'a document's links' — an agent can infer it is the way to enumerate a document's links, but there is no explicit when-to-use, no pointer to a filtered alternative, and no note on how to traverse pages with the cursor.

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