Skip to main content
Glama

outline_list_collections

Retrieve all document collections from Outline to organize and manage your structured content efficiently.

Instructions

List all collections in Outline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `getCollections` method implementation in `OutlineClient`, which is responsible for fetching collections from the Outline API.
    async getCollections(): Promise<Collection[]> {
      const endpoints = ['/api/collections.list', '/api/collections/list', '/api/collections', '/api/collection/list'];
    
      for (const endpoint of endpoints) {
        try {
          const response = await this.api.post(endpoint, {});
          return response.data.data || response.data;
        } catch (error: any) {
          if (error.response?.status === 404 && endpoint !== endpoints[endpoints.length - 1]) {
            console.error(`Endpoint ${endpoint} not found, trying next...`);
  • src/index.ts:284-295 (registration)
    The tool `outline_list_collections` handler within the main MCP tool execution block.
    case 'outline_list_collections':
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(
              await this.outlineClient.getCollections(),
              null,
              2
            ),
          },
        ],

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/HelicopterHelicopter/outline-mcp-server'

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