Skip to main content
Glama

create_link

Share a document: a link to a page that plays it, an embed for other sites, and HLS playback. Nothing plays until a link exists. A link follows an alias (latest by default) or plays one fixed version.

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

Input Schema

NameRequiredDescriptionDefault
nameNoA name people recognize it by, such as "For Acme's review".
aliasNoAn alias, such as `latest`; `latest` when neither this nor `version` is given.
versionNoA version, by number.
autoplayNoStart playing as soon as the page opens.
controlsNoShow the player's controls.
passwordNoA password viewers enter before it plays, 4 to 128 characters; anyone with the link watches without one.
expires_atNoWhen the link stops working, as an RFC 3339 time; never when absent.
document_idYesThe document the link plays, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
idYes`lnk_…`.
urlYesThe view page.
nameNoA name people recognize it by; absent when it has none.
autoplayYesWhether the video starts playing when the page opens.
controlsYesWhether the player shows its controls.
embed_urlYesThe page to put in an iframe.
created_atYesRFC 3339.
created_byYesThe API key or member that created it.
expires_atNoRFC 3339.
project_idYesThe document's project.
revoked_atNoRFC 3339.
document_idYesThe document it plays.
password_protectedYesWhether viewers need a password to watch it. The password itself is never shown.

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 declare this is a non-destructive write with openWorldHint=true, so the safety profile is partly covered. The description adds genuinely new behavioral context — that a link defaults to the latest alias and gates playback, and that password-protected links are shareable by design ('anyone with the link watches without one' lives in the schema). It does not say whether repeated calls create duplicates, what permissions are required, or what happens to a link after expiry beyond the schema's note.

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?

Three short sentences that are front-loaded with the purpose and end with the alias/version rule, which is the most decision-relevant detail. The phrasing 'a link to a page that plays it' is slightly indirect but nothing is redundant or wasted.

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 an eight-parameter mutation tool with a full output schema and complete schema descriptions, the description supplies the dependency model and the alias/version default that the schema cannot express. Remaining gaps — permissions, duplicate-link behavior, lifecycle after expiry — are modest given that annotations and output schema cover much of the rest.

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 every one of the eight parameters is already documented in structured data and the baseline is 3. The description only reinforces the alias-versus-version default behavior; it adds no syntax, formatting, or interaction rules beyond what the schema states.

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 description uses a specific verb and resource ('Share a document', 'a link to a page that plays it, an embed ... and HLS playback'), so an agent can immediately tell this tool creates a shareable playback link rather than retrieving, updating, or revoking one. It does not name any sibling such as get_link or revoke_link, so differentiation is by inference from the verb rather than explicit contrast.

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 prerequisite 'Nothing plays until a link exists' tells the agent when this tool is necessary, and 'A link follows an alias (latest by default) or plays one fixed version' signals when to prefer alias over version. Beyond that it gives no exclusions, such as when to use update_link to modify an existing link instead of creating a new one, or what to do when a link already exists.

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