Skip to main content
Glama

list_collections

Retrieve all available collections from Outline wiki to organize and access documents efficiently for content management workflows.

Instructions

Get list of all collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the list_collections tool. It calls the Outline API endpoint '/collections.list' to fetch collections and formats the results using formatCollections.
    async list_collections() { const { data } = await apiCall(() => apiClient.post<OutlineCollection[]>('/collections.list') ); return formatCollections(data || []); },
  • Zod schema definition for the list_collections tool input. It defines an empty object since the tool takes no parameters.
    export const listCollectionsSchema = z.object({});
  • src/lib/tools.ts:46-50 (registration)
    Registration of the 'list_collections' tool in the allTools array. It uses createTool to generate the MCP tool definition from the Zod schema, including name, description, and input schema.
    createTool( 'list_collections', 'Get list of all collections.', 'list_collections' ),
  • Mapping of the list_collections tool name to its schema in the toolSchemas record, used by tool definitions.
    list_collections: listCollectionsSchema,
  • The toolSchemas map includes list_collections, linking the tool name to its input schema for use in MCP tool definitions.
    list_collections: listCollectionsSchema,

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