Skip to main content
Glama
delano
by delano

get_collection

Retrieve details of a Postman collection by providing its collection ID. Optionally use an access key for read-only access or request a minimal data subset.

Instructions

Get details of a specific collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesCollection ID
access_keyNoCollection's read-only access key. Using this query parameter does not require an API key.
modelNoReturn minimal collection data (only root-level request and folder IDs)

Implementation Reference

  • The handler function for the 'get_collection' tool. It destructures collection_id from args, passes remaining params (access_key, model) as query parameters to a GET /collections/{collection_id} API call, and returns the response data.
    async getCollection(args: any): Promise<ToolCallResponse> {
      const { collection_id, ...params } = args;
      const response = await this.client.get(`/collections/${collection_id}`, { params });
      return this.createResponse(response.data);
    }
  • The tool definition registration (input schema) for 'get_collection'. Specifies required collection_id, optional access_key and model (enum 'minimal') parameters.
    {
      name: 'get_collection',
      description: 'Get details of a specific collection',
      inputSchema: {
        type: 'object',
        properties: {
          collection_id: {
            type: 'string',
            description: 'Collection ID',
          },
          access_key: {
            type: 'string',
            description: "Collection's read-only access key. Using this query parameter does not require an API key.",
          },
          model: {
            type: 'string',
            enum: ['minimal'],
            description: 'Return minimal collection data (only root-level request and folder IDs)',
          },
        },
        required: ['collection_id'],
      },
  • TypeScript interface GetCollectionArgs defining the typed arguments: extends CollectionIdArg with optional access_key and model fields.
    export interface GetCollectionArgs extends CollectionIdArg {
      access_key?: string;
      model?: 'minimal';
    }
  • The case branch in handleToolCall that dispatches 'get_collection' to the getCollection handler method.
    case 'get_collection':
      return await this.getCollection(args);
  • The getToolDefinitions method returning all collection tool definitions, including 'get_collection'.
    getToolDefinitions(): ToolDefinition[] {
      return TOOL_DEFINITIONS;
    }
Behavior2/5

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

With no annotations provided, the description carries high burden. It only restates the tool's name without disclosing behavioral traits like authentication (e.g., access_key bypasses API key), read-only nature, or what details are returned. This is insufficient.

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 concise sentence with no wasted words. It is appropriately front-loaded, though minimal. Could benefit from more detail without losing conciseness.

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?

Given 3 parameters and no output schema or annotations, the description should cover use cases, parameter interplay, and return value context. It falls short, missing key info like the minimal model or access_key usage.

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?

Schema coverage is 100%, so the input schema already documents parameters well. The description adds no extra meaning beyond 'Get details', meeting the baseline but not exceeding it.

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

Purpose4/5

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

The description clearly states the tool retrieves details of a collection, with a specific verb and resource. However, it does not distinguish itself from sibling tools like get_api or get_environment, lacking differentiation.

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 on when to use this tool versus alternatives. The description does not mention prerequisites, exclusions, or context for selection among many similar get_* 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/delano/postman-mcp-server'

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