Skip to main content
Glama
huiseo
by huiseo

delete_collection

Remove a collection and all its documents from Outline wiki to manage content organization.

Instructions

Delete a collection. All documents in the collection will also be deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdYes

Implementation Reference

  • The core handler function for the 'delete_collection' tool. It checks access, calls the Outline API to delete the collection by ID, and returns a success message.
    async delete_collection(args: DeleteCollectionInput) {
      checkAccess(config, 'delete_collection');
      await apiCall(() =>
        apiClient.post('/collections.delete', { id: args.collectionId })
      );
      return { success: true, collectionId: args.collectionId, message: MESSAGES.COLLECTION_DELETED };
    },
  • Zod schema defining the input for delete_collection: a required collectionId (UUID).
    export const deleteCollectionSchema = z.object({ collectionId });
  • Registration of the 'delete_collection' tool in the MCP tool definitions array, including name, description, and schema reference.
      'delete_collection',
      'Delete a collection. All documents in the collection will also be deleted.',
      'delete_collection'
    ),
  • Mapping of 'delete_collection' tool name to its Zod schema in the central toolSchemas object.
    delete_collection: deleteCollectionSchema,
  • Inclusion of collection handlers (including delete_collection) into the combined all handlers object.
    ...createCollectionHandlers(ctx),

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