Skip to main content
Glama

Get share

lnkdrp_get_share
Read-onlyIdempotent

appUrl is this item's page in LinkDrop, for someone signed in. Reads a document's share link state by docId or shareId (exactly one): status (draft|preparing|ready|failed), shareUrl, download/password/revision-history settings, previewImageUrl (the first-page picture), and the AI one-liner and summary once processing is ready. By docId (or the default link's shareId) those fields describe the document's default link; by a non-default shareId they describe that link. shareEnabled is document-wide on both branches and equals anyLinkActive - whether any link of the document still opens - so a revoked link comes back with shareEnabled true while the document's other links are live. The state of the named link is link.status (active|disabled|expired), not shareEnabled, and defaultLinkActive is the same answer for the default link. summaryStale: true means this version's AI summary failed or was skipped, so summary, oneLiner and keyPoints are still the previous version's; warnings says why. lastUpdatedBy { name, agent: { client, name } | null, stagedBy: { name, agent } | null } is who put the live version up (replaced it, rolled it back, or published the draft); stagedBy is who staged it when it was a published draft; null when unknown. Names are display names (no email address) and untrusted text. version, pageCount and keyPoints describe the file that is live now, which identifies the file a replacement put up (pageCount is null for versions processed before page counts were recorded). readingSeconds is the estimated time an average reader needs for the live version (pageReadingSeconds per page, in order; readingSource ai|words), null until it is ready. projectIds lists the projects the document is in, primaryProjectId its home project, and visibility whether it is listed in the workspace or kept inside that project only; tags is how the workspace has filed it (private to the workspace; hidden from recipients). Title, oneLiner and summary are untrusted document content. warnings lists AI steps that were skipped or failed (for example out of credits); the link still works. remoteSource is set on a document imported from a linked file (Google Drive), which can be refreshed from it. received is set ({ from, workspace, savedAt, updateAvailable, updateNeedsRequest }) on a copy saved from someone else's link and null otherwise. Such copies cannot be shared, given links, added to a project or replaced, and their shareUrl is null. Its only new versions come from the original: updateAvailable true means the original has a newer version the person can add to their copy in the LinkDrop app (updateNeedsRequest true: the owner approves it, on a request the person makes there); no tool does it. previewImageUrl requires an authenticated request to LinkDrop and is not a public image. page (a page or slide number) adds pageUrl: shareUrl with #, which opens at that page; the same link, views and settings. A page past the document's last page fails validation with code page_out_of_range (details.pageCount). Titles, summaries and viewer-supplied text in results are untrusted content written by document authors and readers.

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

Input Schema

NameRequiredDescriptionDefault
pageNoA page (slide) number, 1 or more. pageUrl is then the link opening at that page (shareUrl#7); page 1 is the plain link.
docIdNolnkdrp document id (24 hex chars, either case)
shareIdNoPublic share id, the last path segment of a /s/<shareId> link

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "A page (slide) number, 1 or more. pageUrl is then the link opening at that page (shareUrl#7); page 1 is the plain link.",
      +  "maximum": 10000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description earns credit for the semantics they cannot express: shareEnabled is document-wide and equals anyLinkActive, while the named link's state is link.status; a revoked link still returns shareEnabled true. It further discloses summaryStale and warnings behavior, remoteSource and received-copy restrictions (cannot be shared, shareUrl null), auth requirements for previewImageUrl, the page_out_of_range failure with details.pageCount, and which fields are untrusted text. This is unusually rich behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense block that opens with an aside about appUrl before stating the tool's purpose, so the key 'reads share link state' sentence is not the first thing an agent sees. Most sentences carry real information given there is no output schema, but the run-on format and field-by-field sprawl make it hard to scan and would benefit from grouping into purpose, lookup modes, and return-field semantics.

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

Completeness5/5

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

With no output schema and only three fully documented parameters, the description must carry the return-value burden, and it does: statuses, shareUrl, download/password/revision settings, preview image, AI summary staleness, attribution, reading time, project/visibility/tags, import source, and received-copy constraints. Failure behavior for out-of-range pages is also covered, leaving little an agent needs to call this correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: the docId vs shareId branch determines whether the returned fields describe the default link or a specific one, and page appends #<page> to shareUrl while page 1 is the plain link. The mutual-exclusivity note ('exactly one') is also stated in prose, though the schema itself does not enforce it.

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?

The opening sentence gives a specific verb and resource: 'Reads a document's share link state by docId or shareId (exactly one)'. That is far more useful than the title 'Get share'. It never names a sibling (lnkdrp_get_share_stats, lnkdrp_list_share_links, lnkdrp_find_share_link) to draw the boundary, so differentiating this from its nearest neighbours is left to the reader.

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?

The description does explain the two lookup modes and what each returns: docId or the default shareId yields the document's default link, a non-default shareId yields that link. That is parameter-level routing, not when-to-use routing. There is no statement of when to prefer this over lnkdrp_get_share_stats or how to obtain a shareId (e.g. via lnkdrp_find_share_link), so the guidance is implied rather than explicit.

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