Skip to main content
Glama

Huddle

archive_doc

Idempotent

Archive a document, or restore an archived one. Use it to take a finished document out of the list, search and activity: its text, draft and revisions stay readable at the same address, and archived set to false brings it back. Returns the document's id, title and revision number.

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": {
      "id": "<id>",
      "archived": "<archived>"
    },
    "name": "archive_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe document id, from list_docs or search_docs
archivedYestrue archives the document, false restores it

Output Schema

NameRequiredDescriptionDefault
idYesThe document id.
titleYesIts title.
revisionsYesIts revision count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, idempotent mutation; the description adds what actually changes (removal from list, search and activity) and what is preserved (text, draft, revisions at the same address), plus reversibility. That is exactly the extra context the annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, verb-first, no filler; the key state effects are front-loaded and the return-value note closes cleanly. Every clause conveys actionable information.

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-parameter toggle tool with full schema coverage, annotations, and an output schema, the description covers purpose, effect, reversibility and return values. Nothing an agent needs in order 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.

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 both id (with source tools) and archived (true archives, false restores). The description's 'archived set to false brings it back' largely restates the schema, so a baseline 3 is appropriate.

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?

Names a specific verb (archive) and resource (document) and covers both directions of the toggle (archive or restore). The clause about removing it from list/search/activity and leaving text, draft and revisions readable distinguishes it from destructive siblings like discard_draft.

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?

States the context for use: taking a finished document out of the list, search and activity, with restoration via archived=false. It does not explicitly name alternatives (e.g., discard_draft as the destructive option) or state exclusions, so it falls short of a full when/when-not routing statement.

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