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'],
      },
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure but fails to state whether this is read-only, what format the returned information takes, or whether it includes nested documents. The term 'information' is too generic to convey actual behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. However, given the lack of annotations and output schema, extreme brevity becomes a liability rather than a virtue—additional sentences are needed to explain return values and usage context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema or annotations, the description should explain what 'information' is returned and behavioral traits like permissions or error states. As a simple single-parameter retrieval tool, it requires minimal complexity, but the complete omission of return value description creates a significant gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage ('The ID of the collection to retrieve'), so the baseline score is 3. The description adds no additional semantic context about the ID format or validation rules, but the schema adequately documents the single parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the verb ('Get') and resource ('collection'), but uses vague phrasing ('information') that doesn't specify what data is returned—metadata, contents, or settings. It minimally distinguishes from outline_list_collections by specifying 'specific collection,' but doesn't clarify how it differs from document-related siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus outline_list_collections (which presumably lists all collections) or when to prefer outline_get_document. The description lacks prerequisites, error conditions, or workflow context despite the presence of closely related sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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