Skip to main content
Glama
huiseo

Outline Wiki MCP Server

by huiseo

move_document

Relocate documents between collections or reposition them under parent documents to organize content structure in Outline wiki.

Instructions

Move document to another collection or under a parent document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes
collectionIdNo
parentDocumentIdNo

Implementation Reference

  • The core handler function that implements the move_document tool logic. It performs access check, constructs payload from input args, calls the Outline API endpoint '/documents.move', and returns formatted result with updated collectionId and parentDocumentId.
    async move_document(args: MoveDocumentInput) {
      checkAccess(config, 'move_document');
    
      const payload: Record<string, unknown> = { id: args.documentId };
      if (args.collectionId) payload.collectionId = args.collectionId;
      if (args.parentDocumentId !== undefined) payload.parentDocumentId = args.parentDocumentId;
    
      const { data } = await apiCall(() =>
        apiClient.post<OutlineDocument>('/documents.move', payload)
      );
      return {
        ...docResult(data, MESSAGES.DOCUMENT_MOVED),
        collectionId: data.collectionId,
        parentDocumentId: data.parentDocumentId,
      };
    },
  • Zod schema defining the input validation for move_document tool: requires documentId, optional collectionId (UUID), optional nullable parentDocumentId (UUID).
    export const moveDocumentSchema = z.object({
      documentId,
      collectionId: collectionId.optional(),
      parentDocumentId: z.string().uuid().nullable().optional(),
    });
  • src/lib/tools.ts:85-89 (registration)
    Tool registration in the allTools array, defining the name, description, and linking to the Zod schema for JSON Schema conversion used in MCP tool definitions.
    createTool(
      'move_document',
      'Move document to another collection or under a parent document.',
      'move_document'
    ),
  • Maps the move_document tool name to its Zod schema in the central toolSchemas object used by tool definitions.
    move_document: moveDocumentSchema,
  • Includes 'move_document' in the WRITE_TOOLS Set for access control checks in read-only mode.
    'move_document',
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a mutation ('Move') but doesn't disclose permissions required, whether the move is reversible, effects on document links or metadata, error conditions, or response format. This leaves significant gaps for a tool that modifies document structure.

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 a single, efficient sentence with no wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every word contributes to understanding the tool's purpose.

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 complexity of a mutation tool with 3 parameters, 0% schema coverage, no annotations, and no output schema, the description is insufficient. It lacks details on behavior, parameter usage, error handling, and output, leaving the agent with significant uncertainty about how to invoke it correctly.

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?

Schema description coverage is 0%, so the description must compensate but adds little. It mentions 'collection' and 'parent document' as destinations, hinting at parameters 'collectionId' and 'parentDocumentId', but doesn't explain their relationship (e.g., mutually exclusive?), formats, or that 'documentId' is required. With 3 parameters and no schema descriptions, this is inadequate.

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 clearly states the action ('Move') and resource ('document'), specifying the destination ('to another collection or under a parent document'). It distinguishes from siblings like 'batch_move_documents' by implying single-document operation, though not explicitly. However, it lacks explicit differentiation from tools like 'update_document' which might also handle document relocation.

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?

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., document must exist), exclusions (e.g., cannot move to a non-existent collection), or comparisons with sibling tools like 'batch_move_documents' for multiple documents or 'update_document' for other modifications.

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