Skip to main content
Glama

syncSpecWithCollection

Idempotent

Sync an API specification with its associated Postman collection. Supports OpenAPI 2.0, 3.0, and 3.1.

Instructions

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

Note:

  • This endpoint only supports the OpenAPI 2.0, 3.0, and 3.1 specification types.

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

Input Schema

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

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

Annotations provide idempotentHint=true and no destructive hint; the description adds that it's an asynchronous endpoint returning HTTP 202. This extra context about the async behavior is valuable beyond the annotations. However, it does not disclose potential side effects or error scenarios, but for a non-destructive, idempotent sync, this is acceptable.

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 with two sentences plus a note list. It front-loads the core purpose and async nature, then provides constraints. No wasted words, but the note formatting could be slightly improved for scanning.

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, constraints on spec type and collection origin), the description covers the main points adequately. It lacks details on error handling, status checking, or consequences of violating constraints, but for a sync tool with no output schema, it provides sufficient guidance.

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 coverage is 100% (both specId and collectionUid are described clearly in the schema). The description adds no additional meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 clearly states the tool syncs an API specification linked to a collection, specifies it's asynchronous (returns 202), and lists supported spec types (OpenAPI 2.0, 3.0, 3.1). This specific verb-resource pairing is distinct from sibling tools like syncCollectionWithSpec, which likely performs the reverse 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 gives context (supported spec types, prerequisite that the collection must be generated from the spec) but does not explicitly state when to use this tool vs alternatives like syncCollectionWithSpec. It fails to exclude cases where the collection was not generated from the spec or the spec type is unsupported, leaving the agent to infer.

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