Skip to main content
Glama
delano
by delano

get_collection_forks

Retrieve a list of forks for a Postman collection, with support for pagination, sorting, and direction.

Instructions

Get a list of collection forks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesCollection ID
cursorNoPagination cursor
limitNoMaximum number of results to return
directionNoSort direction
sortNoSort field

Implementation Reference

  • Handler function that executes the 'get_collection_forks' tool logic. Makes a GET request to the Postman API endpoint /collections/{collection_id}/forks with pagination params (cursor, limit, direction, sort).
    /**
     * Get a list of collection forks
     */
    async getCollectionForks(args: any): Promise<ToolCallResponse> {
      const { collection_id, ...params } = args;
      const response = await this.client.get(`/collections/${collection_id}/forks`, {
        params: {
          cursor: params.cursor,
          limit: params.limit,
          direction: params.direction,
          sort: params.sort
        }
      });
      return this.createResponse(response.data);
    }
  • Schema definition for the 'get_collection_forks' tool, specifying name, description, and inputSchema with properties: collection_id (required), cursor, limit, direction (asc/desc), sort (createdAt).
    {
      name: 'get_collection_forks',
      description: 'Get a list of collection forks',
      inputSchema: {
        type: 'object',
        properties: {
          collection_id: {
            type: 'string',
            description: 'Collection ID',
          },
          cursor: {
            type: 'string',
            description: 'Pagination cursor',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of results to return',
          },
          direction: {
            type: 'string',
            enum: ['asc', 'desc'],
            description: 'Sort direction',
          },
          sort: {
            type: 'string',
            enum: ['createdAt'],
            description: 'Sort field',
          }
        },
        required: ['collection_id'],
      },
    },
  • Tool dispatch registration in the switch statement of the CollectionTools class. Maps the tool name 'get_collection_forks' to its handler method getCollectionForks().
    case 'fork_collection':
      return await this.forkCollection(args);
    case 'get_collection_forks':
      return await this.getCollectionForks(args);
    case 'merge_collection_fork':
Behavior2/5

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

With no annotations, the description carries the full burden but only states the basic function. No disclosure of pagination behavior, required permissions, or data returned. The schema includes cursor/limit but description doesn't explain these.

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 sentence, concise and without fluff. It could benefit from structure but remains appropriately brief.

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 5 parameters, no output schema, and no annotations, the description is insufficient. It does not explain return values (list of forks), pagination, or how to interpret results.

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 description coverage is 100%, so baseline is 3. The description adds no additional meaning beyond the schema; it does not elaborate on parameter semantics or usage.

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

Purpose5/5

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

The description 'Get a list of collection forks' uses a specific verb (Get) and resource (collection forks), clearly distinguishing it from sibling tools like fork_collection (create) or get_environment_forks (different resource).

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 alternatives (e.g., fork_collection, merge_collection_fork). The description lacks any context about prerequisites, use cases, or exclusions.

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