Skip to main content
Glama
huiseo

Outline Wiki MCP Server

by huiseo

archive_document

Archive documents in Outline wiki by moving them to archived status. Use this tool to remove active documents from regular view while preserving their content.

Instructions

Archive a document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • The main handler function for the 'archive_document' tool. It checks access, calls the Outline API to archive the document, and returns the document ID, title, archivedAt timestamp, and a success message.
    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 schema definition for the 'archive_document' tool input, requiring a documentId string.
    export const archiveDocumentSchema = z.object({ documentId });
  • src/lib/tools.ts:92-96 (registration)
    Tool registration in the allTools array using createTool, specifying name, description, and schema reference.
    createTool(
      'archive_document',
      'Archive a document.',
      'archive_document'
    ),
  • Inclusion of the archive_document schema in the central toolSchemas map used for generating JSON schemas.
    archive_document: archiveDocumentSchema,
  • The toolSchemas object maps tool names to their Zod schemas, used in tool definition generation.
    archive_document: archiveDocumentSchema,
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but fails to do so. It doesn't specify whether archiving is reversible, requires specific permissions, affects document accessibility, or has side effects (e.g., removing from regular listings). This leaves critical behavioral traits undisclosed for a mutation tool.

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 ('Archive a document.'), which is front-loaded and wastes no words. For a simple tool, this brevity is appropriate, though it may sacrifice clarity for conciseness.

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

Completeness2/5

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

Given the tool's complexity as a mutation operation with no annotations, 0% schema description coverage, and no output schema, the description is incomplete. It doesn't address behavioral aspects, parameter details, or expected outcomes, making it inadequate for safe and effective use by an AI agent.

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

Parameters2/5

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

The input schema has 1 parameter with 0% description coverage, and the tool description adds no semantic information about 'documentId' (e.g., format, source, or constraints). This fails to compensate for the schema's lack of documentation, leaving the parameter's meaning unclear beyond its name.

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

Purpose3/5

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

The description states the action ('Archive') and resource ('a document'), which provides a basic understanding of what the tool does. However, it lacks specificity about what 'archive' means in this context (e.g., moving to an archived state vs. permanent deletion) and doesn't differentiate from sibling tools like 'batch_archive_documents' or 'unarchive_document', making it vague in comparison.

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

Usage Guidelines2/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 (e.g., document must exist), exclusions (e.g., cannot archive already archived documents), or related tools like 'unarchive_document' for reversal or 'list_archived_documents' for viewing archived items, leaving usage unclear.

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-smart-mcp'

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