Skip to main content
Glama

Linkly AI

library_link

DestructiveIdempotent

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 observed

TDQS

A4.2/5.0
Behavior3/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 adds substantial context beyond them: per-visibility permission rules, the invite_required / not_found / already_linked / slot_exhausted / already_unlinked responses, the Slot accounting model with plan limits, and the fact that unlink affects every client of the account rather than just this session. It also clarifies that unlinking is reversible, which refines rather than contradicts destructiveHint. Missing only a description of the actual response payload, which is minor.

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 core action and then cleanly sectioned into LINK and UNLINK blocks with a closing routing line. It is long for a two-parameter tool and repeats the exact-format requirement already in the schema, but nearly every sentence carries operational value such as quota handling and permission gating.

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 state-changing linking tool with no output schema, it covers permissions, idempotency, quota limits and recovery, error responses, reversibility, and cross-client scope. Nothing an agent needs in order to call it correctly or recover from a failure is missing.

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 coverage is 100% and both parameters are already documented, including the enum for `action` and the `cloud://<owner>/<slug>` format. The description reinforces this and adds the useful detail that bare names, local:// forms and document ids are rejected, but it is largely restating structured information rather than adding new parameter semantics.

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?

The first sentence names a specific verb and resource ('Link a cloud knowledge library to this account') and pairs it with the inverse operation. The closing line explicitly distinguishes it from `library_search` and `search`, so an agent can tell it apart from every sibling without opening a schema.

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?

It gives explicit when-to-use for both modes, states exactly where to source the argument for each ('from a library_search result to link, from list_libraries to unlink'), and names exclusions ('bare names, local:// references and document ids are rejected'). It also prescribes behavior when the quota is full: show `list_libraries`, let the user choose, never pick or unlink on their behalf.

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