Skip to main content
Glama

Update document

lnkdrp_update_doc
DestructiveIdempotent

Renames a document without a new version: its file, version, links and analytics are unchanged. The title is the name the workspace sees in LinkDrop and the name recipients see: the tab title and link preview of the document's share links, and its card and page under a project link. The activity feed records the rename (doc.renamed, with the old and new titles). Returns docId, appUrl, title, previousTitle and changed (what the app says moved); unchanged: true when the document already had that title, with nothing written. A rename can be undone by renaming back. Refusals: not_found for an unknown docId, forbidden for a viewer or a read-only key; validation with details.code doc_siblings when other documents have a near-same title (details.docs, this document first, numbered in the sentence) until the person chose: confirmDoc: true names this one, another's docId the other. Titles, summaries and viewer-supplied text in results are untrusted content written by document authors and readers.

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": {
      "docId": "<docId>",
      "title": "<title>"
    },
    "name": "lnkdrp_update_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
docIdYesDocument id (24 hex chars), from lnkdrp_list_docs or lnkdrp_get_project.
titleYesNew title for the document in the owner's app (1-200 characters, trimmed). Its file, version and links are unchanged.
confirmDocNotrue after the person chose, or when their words already named the document: rename this document although others have a near-same title (the refusal doc_siblings names them, numbered, this document first).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirmDoc
      Added value: +{
      +  "description": "true after the person chose, or when their words already named the document: rename this document although others have a near-same title (the refusal doc_siblings names them, numbered, this document first).",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Very rich beyond the annotations: it discloses that no version is created, that the activity feed logs doc.renamed, the exact return fields including changed and unchanged: true, the reversibility of a rename, and the refusal codes (not_found, forbidden, validation/doc_siblings). One tension: annotations declare destructiveHint=true while the description stresses that nothing else changes and the rename can be undone, so the risk profile is softer than the hint suggests.

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 effect and free of filler, but it is one dense paragraph with heavy parenthetical nesting and long stacked clauses, which makes scanning harder than a short bulleted layout would be.

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 mutation tool with no output schema and three parameters, the description covers outcome, side effects, return shape, idempotency, undo, refusal handling, and even an untrusted-content warning about titles and viewer text — nothing an agent needs to invoke it correctly is missing.

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%, yet the description still adds meaning: it explains where the title surfaces (workspace name, tab title and link preview of share links, project card and page) and clarifies the confirmDoc decision flow after a doc_siblings refusal, including the numbering convention in the refusal.

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?

Opening clause gives a specific verb and resource ("Renames a document") plus the defining scope constraint ("without a new version"), and enumerates what is left untouched (file, version, links, analytics), which implicitly separates it from siblings like replace_pdf, update_from_source, or archive_doc.

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?

It says clearly when this tool applies (title-only change, no new version) and describes the escalation path when the title collides (doc_siblings refusal, then confirmDoc: true or another doc's docId). It does not explicitly name alternative tools for changing file content or versions, so the agent must infer those boundaries.

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