Skip to main content
Glama

syncCollectionWithSpec

Idempotent

Syncs a Postman collection with its OpenAPI 3.0 specification to maintain API documentation consistency. This asynchronous operation updates the collection to match the current spec.

Instructions

Syncs a collection generated from an API specification. This is an asynchronous endpoint that returns an HTTP `202 Accepted` response.

Note:

  • This endpoint only supports the OpenAPI 3.0 specification type.

  • You can only sync collections generated from the given spec ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionUidYesThe collection's unique ID.
specIdYesThe spec's ID.
Behavior4/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds valuable behavioral context beyond annotations: it explicitly states this is an asynchronous endpoint returning HTTP 202 Accepted, and includes important constraints about OpenAPI 3.0 support and spec ID limitations. This enhances the agent's understanding of execution behavior.

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 well-structured and front-loaded with the core purpose, followed by important notes in a clear format. Every sentence adds value: the first explains the action and async nature, while the notes provide critical constraints. No wasted words or redundancy.

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

Completeness4/5

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

Given the tool's complexity (async operation with constraints), the description provides good context about the asynchronous nature and format limitations. However, without an output schema, it doesn't explain what the agent should expect as a result beyond the HTTP 202 response. The annotations cover safety aspects well, making this reasonably complete.

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%, with both parameters (collectionUid, specId) clearly documented in the schema. The description doesn't add any additional parameter semantics beyond what the schema provides, so it meets the baseline expectation when schema coverage is complete.

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 the tool 'syncs a collection generated from an API specification' with the specific verb 'syncs' and resource 'collection', distinguishing it from siblings like 'createCollection' or 'generateCollection'. However, it doesn't explicitly differentiate from 'syncSpecWithCollection', which appears to be a related but inverse operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides implied usage context through notes about supporting only OpenAPI 3.0 and syncing collections from given spec IDs, but lacks explicit guidance on when to use this tool versus alternatives like 'syncSpecWithCollection' or 'generateCollection'. No when-not-to-use scenarios or prerequisites 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