Skip to main content
Glama

Move a document out of Archived

unarchive_document

Move an archived document back: to the top of the user's personal library, or into the folder or team named. It opens again, starting fresh: the share links, favourites and Recent entries it had are gone. find_documents with archived true lists the archived 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": {
      "documentId": "<documentId>"
    },
    "name": "unarchive_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamIdNoA team the user belongs to, to move it into that team’s library.
folderIdNoA folder to move it into. A folder in a team library needs that team as teamId too. Without folderId or teamId it goes to the top of the personal library.
documentIdYesThe archived document to move out (from find_documents with archived true).

Output Schema

NameRequiredDescriptionDefault
idYesThe document id.
urlYesLink that opens the document in the livediagram editor.
nameYesThe document name, or null if unknown.
libraryYesWhere it is now: "personal", or the name of the team whose library holds it.
unarchivedYesAlways "document".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior2/5

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

The description adds substantial behavior beyond the annotations: the document reopens fresh and its prior share links, favourites and Recent entries are permanently gone. However, that disclosure of lost metadata conflicts with destructiveHint=false, which promises only additive changes, so the agent gets contradictory safety signals. The description is more informative than the annotation here, but the mismatch is a real defect.

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, front-loaded with the action and destination, then the consequence, then the discovery hint. Occasional editorial phrasing ("It opens again, starting fresh") and awkward punctuation cost a point but nothing is padded.

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?

With an output schema present, 3 fully documented parameters, and only a simple move operation to describe, the description covers destination semantics, the default case, and the irreversible side effects. Only the sibling disambiguation against restore_document 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 the schema already documents teamId, folderId, documentId, and the destination default. The description restates the destination options but adds no new syntax, format, or constraint beyond what the structured schema provides, so the baseline 3 applies.

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 gives a specific verb and resource ("Move an archived document back") plus the exact destinations (personal library top, a folder, or a team). It is clear on its own, but it never contrasts itself with the sibling restore_document, which an agent must disambiguate from unarchive_document.

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 supplies an explicit discovery path ("find_documents with archived true lists the archived documents") and states the destination default when neither folderId nor teamId is given. It stops short of saying when this is preferable to restore_document or delete/archive, so it is clear context without full exclusions.

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