Skip to main content
Glama

Create a response

createCollectionResponse

Add a saved response to a Postman collection request by specifying the parent request ID and response details like status, headers, and body.

Instructions

Creates a request response in a collection. For a complete list of request body properties, refer to the Response entry in the Postman Collection Format documentation.

Note:

It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoThe associated request's URL.
mimeNoThe response's MIME type.
nameNoThe response's name. It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name.
textNoThe raw text of the response body.
timeNoThe time taken by the request to complete, in milliseconds.
methodNoThe associated request's HTTP method.
statusNoThe response's HTTP status text.
cookiesNoThe response's cookie data.
headersNoThe response's headers.
requestYesThe parent request's ID.
dataModeNoThe associated request body's data mode.
languageNoThe response body's language type.
dataOptionsNoAdditional options for the associated request body data.
descriptionNoThe response's description.
rawDataTypeNoThe response's raw data type.
rawModeDataNoThe associated request body's raw mode data.
collectionIdYesThe collection's ID.
responseCodeNoThe response's HTTP response code information.
requestObjectNoA JSON-stringified representation of the associated request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.12.3
    • changedInput schema / properties / dataOptions / description
      Previous value: -"Additional configurations and options set for the request body's various data modes."New value: +"Additional options for the associated request body data."
    • changedInput schema / properties / headers / description
      Previous value: -"A list of headers."New value: +"The response's headers."
    • changedInput schema / properties / method / description
      Previous value: -"The request's HTTP method."New value: +"The associated request's HTTP method."
  2. Changed19 schema fields changedv2.8.7
    • addedInput schema / properties / cookies
      Added value: +{
      +  "description": "The response's cookie data.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / dataMode
      Added value: +{
      +  "description": "The associated request body's data mode.",
      +  "enum": [
      +    "raw",
      +    "urlencoded",
      +    "formdata",
      +    "binary",
      +    "graphql"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / dataOptions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "binary": {
      +          "additionalProperties": {},
      +          "description": "Options for the `binary` data mode.",
      +          "type": "object"
      +        },
      +        "graphql": {
      +          "additionalProperties": {},
      +          "description": "Options for the `graphql` data mode.",
      +          "type": "object"
      +        },
      +        "params": {
      +          "additionalProperties": {},
      +          "description": "Options for the `params` data mode.",
      +          "type": "object"
      +        },
      +        "raw": {
      +          "additionalProperties": false,
      +          "description": "Options for the `raw` data mode.",
      +          "properties": {
      +            "language": {
      +              "description": "The raw mode data's language type.",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "urlencoded": {
      +          "additionalProperties": {},
      +          "description": "Options for the `urlencoded` data mode.",
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Additional configurations and options set for the request body's various data modes."
      +}
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "The response's description.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / headers
      Added value: +{
      +  "description": "A list of headers.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "Information about the header.",
      +    "properties": {
      +      "description": {
      +        "description": "The header's description.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "key": {
      +        "description": "The header's key, such as `Content-Type` or `X-Custom-Header`.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The header key's value.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "The response body's language type.",
      +  "type": "string"
      +}
    • addedInput schema / properties / method
      Added value: +{
      +  "description": "The request's HTTP method.",
      +  "enum": [
      +    "GET",
      +    "PUT",
      +    "POST",
      +    "PATCH",
      +    "DELETE",
      +    "COPY",
      +    "HEAD",
      +    "OPTIONS",
      +    "LINK",
      +    "UNLINK",
      +    "PURGE",
      +    "LOCK",
      +    "UNLOCK",
      +    "PROPFIND",
      +    "VIEW"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / mime
      Added value: +{
      +  "description": "The response's MIME type.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / rawDataType
      Added value: +{
      +  "description": "The response's raw data type.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / rawModeData
      Added value: +{
      +  "description": "The associated request body's raw mode data.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / request
      Added value: +{
      +  "description": "The parent request's ID.",
      +  "type": "string"
      +}
    • removedInput schema / properties / requestId
      Removed value: -{
      -  "description": "The parent request's ID.",
      -  "type": "string"
      -}
    • addedInput schema / properties / requestObject
      Added value: +{
      +  "description": "A JSON-stringified representation of the associated request.",
      +  "type": "string"
      +}
    • addedInput schema / properties / responseCode
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The response's HTTP response code information.",
      +  "properties": {
      +    "code": {
      +      "description": "The response's HTTP response status code.",
      +      "type": "number"
      +    },
      +    "name": {
      +      "description": "The name of the status code.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "The response's HTTP status text.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "The raw text of the response body.",
      +  "type": "string"
      +}
    • addedInput schema / properties / time
      Added value: +{
      +  "description": "The time taken by the request to complete, in milliseconds.",
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "The associated request's URL.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / required
      Previous value: -[
      -  "collectionId",
      -  "requestId"
      -]New value: +[
      +  "collectionId",
      +  "request"
      +]
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=false (write operation) and destructiveHint=false. The description adds a useful behavioral note: omitting `name` results in a null value and a blank response name. This adds value beyond the annotations, though it doesn't discuss other behaviors like required dependency on an existing request or error cases. Given the annotation coverage, a 3 is appropriate.

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 concise and well-structured: a single purpose sentence followed by a focused, bolded 'Note' about the `name` property. The core purpose is front-loaded, and the note earns its place by flagging a common pitfall. Slightly more detail could be added, but overall it is appropriately sized for the tool.

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?

For a create operation with 19 parameters and no output schema, the description is reasonably complete given the schema's 100% parameter coverage and the external documentation link. However, it does not explain what happens on success (e.g., returned object or status), any validation constraints, or dependencies on an existing request—which an agent might need since there is no output schema to clarify return values.

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 the schema fully documents all 19 parameters including enums and nested structures. The description adds a note about the `name` property recommendation, but this same detail is already present in the schema's `name` property description ('It is recommended that you pass the `name` property...'). Therefore the description adds minimal value beyond the schema, warranting the baseline 3.

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 states a clear verb and resource: 'Creates a request response in a collection.' This is specific enough to understand the operation, but it does not explicitly differentiate from close siblings like `createCollectionRequest` or `updateCollectionRequest`, relying on the name's 'Response' component to hint at the distinction. Overall, the purpose is clear and not a tautology.

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 guidance on when to use this tool versus alternatives. There are no exclusions, prerequisites, or mentions of sibling tools like `createCollectionRequest` to clarify context. The only contextual note is the recommendation about the `name` property, which is a parameter-level detail rather than usage guidance.

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