Skip to main content
Glama
Linkly AI

Linkly AI

Official

library_link

DestructiveIdempotent

Link or unlink a cloud knowledge library using its exact cloud://owner/slug to add it to searchable account libraries or remove it and free its slot.

Instructions

Link a cloud knowledge library to this account, or unlink one (action: "unlink"). Pass the exact cloud://owner/slug — from a library_search result to link, from list_libraries to unlink; bare names, local:// references and document ids are rejected.

LINK (default action): the library appears in list_libraries immediately and search / explore / list accept its cloud://owner/slug right away. Who can link: Public libraries — any signed-in user; Showcase and Private libraries — the owner or an invited reader only (the tool answers invite_required, or not_found for a private library you cannot see). Linking the same library again is safe and answers already_linked without using another Slot. Every link uses one Slot (Free plan: 1, Pro: 99). When the quota is full the tool answers slot_exhausted with the current count, the limit and an upgrade link — do NOT pick a library to unlink yourself: show the user their linked libraries (list_libraries), let them name the one to release, then call this tool with action "unlink" on it and retry.

UNLINK (action: "unlink"): the library disappears from list_libraries and stops being searchable through this MCP server — for every client of this account, not just this session — and its Slot is freed. Call it ONLY for a library the user has named ("replace A with B"); never choose on their behalf, and never unlink to make room without being told which one. Unlinking is reversible: the user keeps their reader access and stars, so linking again later works — any time for a Public library, and while the invitation stands for a Showcase / Private one. Unlinking a library that is not linked is safe and answers already_unlinked.

This tool never searches anything: use library_search to find a library, search to find documents.

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": {
      "library": "<library>"
    },
    "name": "library_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo"link" (default) adds the library to this account; "unlink" removes it and frees its Slot. Omit or send null to link.
libraryYesThe cloud library, exactly as returned by `library_search` (to link) or listed by `list_libraries` (to unlink): `cloud://<owner>/<slug>` (e.g. `cloud://acme/handbook`). No other form is accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes far past them: unlink affects 'every client of this account, not just this session,' each link consumes one Slot with plan limits (Free 1, Pro 99), and unlink is reversible because reader access and stars persist. It also enumerates the error vocabulary the agent must handle: invite_required, not_found, slot_exhausted, already_linked, already_unlinked.

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?

Long, but organized into labelled LINK and UNLINK blocks with the default action and the safety constraint front-loaded. Minor redundancy: 'never choose on their behalf' repeats the quota paragraph's 'do NOT pick a library to unlink yourself,' and the closing no-search sentence duplicates the find-a-library guidance. Still, nearly every sentence carries a distinct rule.

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?

For a two-action, state-mutating tool with account-wide blast radius and quota side effects, nothing material is missing: permissions per library type, slot accounting, idempotent repeats, reversibility, and all response codes are covered. No output schema exists, yet the description supplies the key return signals itself.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 real meaning beyond the schema: it names the authoritative source for each parameter value (library_search for link, list_libraries for unlink) and spells out rejection cases ('bare names, `local://` references and document ids are rejected'). That is operational detail the schema only gestures at.

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?

Opens with a specific verb+resource pair ('Link a cloud knowledge library to this account') and covers the inverse operation ('or unlink one') with the triggering parameter. It also explicitly negates the sibling confusion by stating 'This tool never searches anything: use `library_search` to find a library, `search` to find documents.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing rule per action: take the slug 'from a `library_search` result to link, from `list_libraries` to unlink.' It states who may link per library visibility (Public vs Showcase/Private), and constrains unlink to 'ONLY for a library the user has named,' plus a concrete quota-recovery workflow (list_libraries, user names the one, unlink, retry).

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