Skip to main content
Glama
huiseo
by huiseo

archive_document

Archive documents in Outline wiki to remove them from active view while preserving content for future reference or compliance needs.

Instructions

Archive a document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • Handler function that archives a document by calling the Outline API's /documents.archive endpoint.
    async archive_document(args: ArchiveDocumentInput) {
      checkAccess(config, 'archive_document');
      const { data } = await apiCall(() =>
        apiClient.post<OutlineDocument>('/documents.archive', { id: args.documentId })
      );
      return { id: data.id, title: data.title, archivedAt: data.archivedAt, message: MESSAGES.DOCUMENT_ARCHIVED };
    },
  • Zod input schema for the archive_document tool, requiring a documentId.
    export const archiveDocumentSchema = z.object({ documentId });
  • src/lib/tools.ts:92-96 (registration)
    Registration of the archive_document tool definition, including name, description, and schema reference.
    createTool(
      'archive_document',
      'Archive a document.',
      'archive_document'
    ),
  • Mapping of archive_document tool name to its schema in the toolSchemas object.
    archive_document: archiveDocumentSchema,
  • Handler registration: spreading document handlers (including archive_document) into the main ToolHandlers object.
      ...createSmartHandlers(ctx),
    } as ToolHandlers;
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Archive a document' implies a mutation operation but doesn't specify whether archiving is reversible, what permissions are required, whether it affects document visibility or access, or what the response looks like. This is inadequate for a mutation tool with zero annotation coverage.

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?

The description is extremely concise with a single sentence that states the core action. There's no wasted text, and it's front-loaded with the essential information, though this brevity comes at the cost of completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's mutation nature, lack of annotations, no output schema, and incomplete parameter documentation, the description is severely inadequate. It doesn't address key contextual aspects like what archiving entails, how it differs from deletion or moving, or what happens after invocation.

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

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning beyond what the input schema provides. With 0% schema description coverage and 1 undocumented parameter ('documentId'), the description doesn't explain what a documentId is, how to obtain it, or its format. This fails to compensate for the schema's lack of documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Archive a document' is a tautology that restates the tool name with minimal elaboration. It specifies the verb ('archive') and resource ('document'), but doesn't distinguish this tool from sibling tools like 'batch_archive_documents' or clarify what archiving means in this context versus deletion or moving.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, when archiving is appropriate versus deletion or moving, or how it relates to sibling tools like 'unarchive_document', 'list_archived_documents', or 'batch_archive_documents'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huiseo/outline-wiki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server