Skip to main content
Glama

update_collection

Modify collection details in Outline wiki by updating name, description, or color for better organization and visual identification.

Instructions

Update collection information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdYes
nameNo
descriptionNo
colorNo

Implementation Reference

  • Core implementation of the update_collection tool handler. Updates collection details (name, description, color) by calling the Outline API /collections.update endpoint.
    async update_collection(args: UpdateCollectionInput) { checkAccess(config, 'update_collection'); const payload: Record<string, unknown> = { id: args.collectionId }; if (args.name) payload.name = args.name; if (args.description !== undefined) payload.description = args.description; if (args.color) payload.color = args.color; const { data } = await apiCall(() => apiClient.post<OutlineCollection>('/collections.update', payload) ); return colResult(data, MESSAGES.COLLECTION_UPDATED); },
  • Zod input schema for the update_collection tool, validating collectionId (required UUID), optional name, description, and hex color.
    export const updateCollectionSchema = z.object({ collectionId, name: z.string().min(1).optional(), description: z.string().optional(), color: hexColor.optional(), });
  • Registers the update_collection tool in the allTools array. Uses createTool to generate JSON schema from Zod schema for MCP tool definition.
    createTool( 'update_collection', 'Update collection information.', 'update_collection' ),
  • TypeScript type definition for UpdateCollectionInput inferred from the updateCollectionSchema.
    export type UpdateCollectionInput = z.infer<typeof updateCollectionSchema>;
  • Spreads collection handlers (including update_collection) into the combined all handlers object used by the MCP server.
    ...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