Skip to main content
Glama

outline_get_collection

Retrieve detailed information about a specific collection from Outline documents. Use this tool to access collection data by providing its unique ID for document organization and management.

Instructions

Get information about a specific collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the collection to retrieve

Implementation Reference

  • The client method that executes the API request for fetching collection details.
    async getCollection(id: string): Promise<Collection> {
      const endpoints = ['/api/collections.info', '/api/collections/info', '/api/collection/info'];
    
      for (const endpoint of endpoints) {
        try {
          const response = await this.api.post(endpoint, { id });
          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...`);
            continue;
          }
          throw error;
        }
      }
      throw new Error('No valid endpoint found for getting collection');
    }
  • The MCP tool handler that invokes the OutlineClient method when 'outline_get_collection' is called.
    case 'outline_get_collection':
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(
              await this.outlineClient.getCollection(args.id as string),
              null,
              2
            ),
          },
        ],
      };
  • The definition and input schema for the 'outline_get_collection' tool.
    {
      name: 'outline_get_collection',
      description: 'Get information about a specific collection',
      inputSchema: {
        type: 'object',
        properties: {
          id: {
            type: 'string',
            description: 'The ID of the collection to retrieve',
          },
        },
        required: ['id'],
      },
    },

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