Skip to main content
Glama
delano
by delano

create_collection_request

Add a new HTTP request to a specified Postman collection, optionally within a folder, by providing its name, method, and URL.

Instructions

Create a new request in a collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesCollection ID
folder_idNoOptional folder ID to create request in
requestYesRequest details

Implementation Reference

  • The handler function for 'create_collection_request'. It performs a POST to /collections/{collection_id}/requests with the request body, optionally including folder_id as a query parameter.
    async createCollectionRequest(args: any): Promise<ToolCallResponse> {
      const response = await this.client.post(
        `/collections/${args.collection_id}/requests`,
        args.request,
        { params: args.folder_id ? { folder_id: args.folder_id } : undefined }
      );
      return this.createResponse(response.data);
    }
  • The input schema/tool definition for 'create_collection_request'. Validates collection_id (required), folder_id (optional), and request (required) which contains name, method, and url properties.
    {
      name: 'create_collection_request',
      description: 'Create a new request in a collection',
      inputSchema: {
        type: 'object',
        properties: {
          collection_id: {
            type: 'string',
            description: 'Collection ID',
          },
          folder_id: {
            type: 'string',
            description: 'Optional folder ID to create request in',
          },
          request: {
            type: 'object',
            description: 'Request details',
            properties: {
              name: { type: 'string' },
              method: { type: 'string' },
              url: { type: 'string' }
            }
          }
        },
        required: ['collection_id', 'request'],
      },
    },
  • The routing/registration case statement in handleToolCall() that dispatches 'create_collection_request' to the createCollectionRequest handler method.
    case 'create_collection_request':
      return await this.createCollectionRequest(args);
  • The CollectionTools class returns TOOL_DEFINITIONS (which includes create_collection_request) via getToolDefinitions(). The class is instantiated in server.ts and its definitions are registered with the MCP server.
    getToolDefinitions(): ToolDefinition[] {
      return TOOL_DEFINITIONS;
    }
Behavior2/5

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

With no annotations, the description should disclose behavioral traits like idempotency, side effects, or permissions. It simply states the action without any behavioral clues, forcing the agent to rely solely on the sparse description.

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 short sentence, which is concise. However, for a tool with nested parameters and many siblings, it could be more informative while remaining succinct. It avoids bloat but lacks depth.

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?

The tool has no output schema, so the description should explain the return value or success behavior. It does not. Given the complexity of nested parameters and many sibling tools, the description is insufficient for full understanding.

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% coverage with descriptions for all parameters, so the schema already documents them adequately. The description adds no extra meaning beyond what is in the schema, earning the baseline score.

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 'Create a new request in a collection' uses a specific verb and resource, clearly stating the action and target. It distinguishes well from sibling tools like 'create_collection' and 'create_collection_response' which create different entities.

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 such as 'update_collection_request' or 'create_collection_folder'. The description lacks context for prerequisites or scenarios, leaving the agent without decision support.

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