Skip to main content
Glama

List share links

list_share_links
Read-onlyIdempotent

List public share links. With postId, lists that post's links that are not revoked. Without it, lists every link in the workspace, for owners and admins only, and status narrows that list. Each link has id, postId, label, status, expiresAt, accessCount and canRevoke. Links never include the token or URL; create_share_link returns those once. Pass nextCursor back as cursor.

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_share_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many links to return in one page.
cursorNonextCursor from the previous page. Leave it out for the first page.
postIdNoList this post's links: its ID, post number or identifier, from list_posts or search. Leave it out for every link in the workspace.
statusNoOnly links in this state. It applies to the workspace list and is ignored with postId.

Output Schema

NameRequiredDescriptionDefault
hasMoreNotrue when another page exists.
nextCursorNoPass as cursor for the next page. Null or absent on the last page.
shareLinksYesThis page of results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses real behavior: post-scoped results exclude revoked links, the workspace-wide mode requires owner or admin privileges, and returned records never contain the token or URL because create_share_link surfaces those only once. The pagination contract ('Pass nextCursor back as cursor') is also stated explicitly.

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-loaded with the purpose, then mode selection, then return shape, then pagination — a sensible order with no filler sentences. It is dense and slightly run-on, and the field enumeration duplicates the output schema, but nothing is wasted enough to hurt comprehension.

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 4-parameter read-only list tool with an output schema, everything an agent needs to call it correctly is present: mode selection, permission gating, filter semantics, and pagination. The main redundancy is enumerating return fields already covered by the output schema; the lack of cross-references to the other link-listing siblings is the only real gap.

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 the baseline is 3. The description adds the meaningful fact that postId results are filtered to non-revoked links and that status is ignored in that mode, but the status scoping rule and cursor semantics largely restate what the schema already says.

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?

States a specific verb and resource ('List public share links') and immediately qualifies the scope: post-scoped when postId is given, workspace-wide otherwise. It does not distinguish itself from the many sibling list_*_links tools (list_doc_shares, list_project_links, list_chat_thread_links), so an agent cannot tell from this text alone which lister applies to a given object type.

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?

Gives concrete selection logic between the two modes: supply postId for one post's non-revoked links, omit it for the whole-workspace list, and note that status only filters the workspace list and is ignored with postId. It also states the owner/admin restriction for the workspace mode, which is actionable gating. No explicit when-not or sibling-alternative guidance beyond the reference to create_share_link.

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