Skip to main content
Glama

generateSpecFromCollection

Generate an OpenAPI specification (2.0, 3.0, or 3.1) from a Postman collection. Provides a polling link to track task status.

Instructions

Generates an OpenAPI 2.0, 3.0, or 3.1 specification for the given collection. The response contains a polling link to the task status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionUidYesThe collection's unique ID.
elementTypeYesThe `spec` value.
nameYesThe API specification's name.
typeYesThe specification's type.
formatYesThe format of the API specification.
Behavior3/5

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

The description adds the behavioral trait of returning a polling link, indicating an async task. Annotations are minimal (no readOnly, destructive, or idempotent hints), so the description adds some value but does not cover side effects or permissions.

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?

Two concise sentences: first states purpose, second mentions polling link. Both sentences provide useful information with no fluff.

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?

Given the moderate complexity (5 required params), the description covers the core functionality and async return. However, it lacks usage context and sibling differentiation, and has no output schema to detail the response format.

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 already documents all parameters. The description adds no parameter-level semantics beyond what the schema provides.

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 it generates an OpenAPI specification from a collection, specifying version support (2.0, 3.0, 3.1). It does not explicitly differentiate from siblings like createSpec, but the name and resource ('from collection') provide context.

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 (e.g., createSpec, generateCollection). No when-not or prerequisite conditions are mentioned.

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/postmanlabs/postman-mcp-server'

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