Skip to main content
Glama

Create a collection

createCollection

Creates a Postman collection in your workspace using the v2.1.0 schema format. Provide collection details and a workspace ID to organize API requests, folders, auth, and scripts.

Instructions

Creates a collection using the Postman Collection v2.1.0 schema format.

Note:

If you do not include the `workspace` query parameter, the system creates the collection in the oldest personal Internal workspace you own.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace's ID.
collectionNoInformation about the collection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.12.3
    • addedInput schema / properties / collection / description
      Added value: +"Information about the collection."
  2. Changed3 schema fields changedv2.12.0
    • removedInput schema / properties / collection / properties / info / properties / schema / const
      Removed value: -"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    • changedInput schema / properties / collection / properties / info / properties / schema / description
      Previous value: -"The \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\" Postman Collection Format v2.1.0 schema."New value: +"The \"https://schema.postman.com/json/collection/v2.1.0/collection.json\" Postman Collection Format v2.1.0 schema."
    • addedInput schema / properties / collection / properties / info / properties / schema / enum
      Added value: +[
      +  "https://schema.postman.com/json/collection/v2.1.0/collection.json",
      +  "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
      +]
  3. Changed1 schema field changedv2.8.9
    • addedInput schema / properties / collection / properties / item / items / properties / item
      Added value: +{
      +  "description": "A list of items contained in this folder. Use this property to create folder structures within the collection. Each item can be a request (with a 'request' property) or a nested folder (with its own 'item' property). Omit the 'request' property for folder items.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "A nested collection item — either a request (has 'request') or a folder (has 'item').",
      +    "properties": {
      +      "description": {
      +        "description": "The item's description.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "item": {
      +        "description": "Nested folder items for deeper folder structures.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "description": {
      +              "description": "The item's description.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "item": {
      +              "description": "Further nested folder items.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "request": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "method": {
      +                        "type": "string"
      +                      },
      +                      "url": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "raw": {
      +                                "type": "string"
      +                              }
      +                            },
      +                            "type": "object"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "name": {
      +              "description": "The item's name.",
      +              "type": "string"
      +            },
      +            "request": {
      +              "additionalProperties": false,
      +              "description": "The request definition.",
      +              "properties": {
      +                "body": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "mode": {
      +                      "type": "string"
      +                    },
      +                    "raw": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "header": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "key": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "method": {
      +                  "enum": [
      +                    "GET",
      +                    "PUT",
      +                    "POST",
      +                    "PATCH",
      +                    "DELETE",
      +                    "COPY",
      +                    "HEAD",
      +                    "OPTIONS",
      +                    "LINK",
      +                    "UNLINK",
      +                    "PURGE",
      +                    "LOCK",
      +                    "UNLOCK",
      +                    "PROPFIND",
      +                    "VIEW"
      +                  ],
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "raw": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "type": "object"
      +                    }
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "The item's name.",
      +        "type": "string"
      +      },
      +      "request": {
      +        "additionalProperties": false,
      +        "description": "The request definition. Include for request items, omit for folder items.",
      +        "properties": {
      +          "auth": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "type": {
      +                "enum": [
      +                  "noauth",
      +                  "basic",
      +                  "bearer",
      +                  "apikey",
      +                  "digest",
      +                  "oauth1",
      +                  "oauth2",
      +                  "hawk",
      +                  "awsv4",
      +                  "ntlm",
      +                  "edgegrid"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "body": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "mode": {
      +                "enum": [
      +                  "raw",
      +                  "urlencoded",
      +                  "formdata",
      +                  "file",
      +                  "graphql"
      +                ],
      +                "type": "string"
      +              },
      +              "options": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "raw": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "language": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "raw": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "header": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "description": {
      +                  "type": "string"
      +                },
      +                "key": {
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "method": {
      +            "description": "The HTTP method.",
      +            "enum": [
      +              "GET",
      +              "PUT",
      +              "POST",
      +              "PATCH",
      +              "DELETE",
      +              "COPY",
      +              "HEAD",
      +              "OPTIONS",
      +              "LINK",
      +              "UNLINK",
      +              "PURGE",
      +              "LOCK",
      +              "UNLOCK",
      +              "PROPFIND",
      +              "VIEW"
      +            ],
      +            "type": "string"
      +          },
      +          "url": {
      +            "anyOf": [
      +              {
      +                "description": "The request's URL string.",
      +                "type": "string"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "host": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "path": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "protocol": {
      +                    "type": "string"
      +                  },
      +                  "query": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "key": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "raw": {
      +                    "description": "The request's raw URL.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Changed2 schema fields changedv2.8.7
    • changedInput schema / properties / collection / properties / info / properties / name / description
      Previous value: -"The collection's name."New value: +"The collection's name. Must not be empty."
    • addedInput schema / properties / collection / properties / info / properties / name / minLength
      Added value: +1
  5. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare the operation non-read-only, non-destructive, and non-idempotent. The description adds one useful behavioral detail beyond that—the default workspace behavior when the workspace parameter is omitted—but it still does not reveal validation behavior, authorization requirements, or what happens on repeated identical calls. The added value is moderate but incomplete.

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

Conciseness5/5

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

The description is two sentences with no filler: the first defines what the tool does and includes the schema format link; the second is a clearly separated default‑behavior note. The most important piece (creates a collection) is front-loaded, and the note is compact.

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

Completeness3/5

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

The collection body is exhaustively specified in the schema and the safety annotations cover the core misuse, so the description can be lightweight. Still, no output schema exists and the description does not state what a successful call returns, nor does it mention any prerequisites such as workspace-level permissions. The tool is adequately described for basic invocation but leaves return behavior and preconditions undetermined.

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

Parameters2/5

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

The input schema already documents both parameters with high coverage, so the description does not need to re-explain them. The only added semantic note about the workspace parameter being optional is at odds with the schema's requirement of workspace, which can mislead an agent into constructing an invalid request. This makes the description's extra parameter information a drawback rather than a benefit.

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 states a specific verb ('Creates') and resource ('a collection') with the exact Postman Collection v2.1.0 schema format, giving a clear and unambiguous purpose. It is easy to distinguish from sibling tools like createCollectionRequest, generateCollection, or duplicateCollection without needing to inspect their schemas.

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?

The description provides no when-to-use guidance relative to the many sibling create/update tools; it never names an alternative or states conditions for choosing this tool. The note about workspace default is about behavior rather than use-case selection, and it creates ambiguity because it says the workspace can be omitted while the input schema marks it as required.

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