Skip to main content
Glama

syncSpecWithCollection

Idempotent

Sync an OpenAPI 3.0 specification with its associated Postman collection to ensure API documentation matches implementation.

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 3.0 specification type.

  • You can only sync specs generated from the given collection 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 readOnlyHint=false, idempotentHint=true, and destructiveHint=false, indicating it's a non-destructive, idempotent mutation. The description adds valuable context beyond this: it specifies the operation is asynchronous (returns HTTP 202 Accepted), supports only OpenAPI 3.0, and works only with specs generated from the given collection ID. This clarifies execution behavior and constraints not covered by annotations.

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 well-structured and concise: it starts with the core purpose, then notes the asynchronous nature, and lists key constraints in bullet points. Every sentence adds value without redundancy. It could be slightly more front-loaded by emphasizing constraints earlier, but overall it's efficient.

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 tool's complexity (asynchronous mutation with specific constraints), the description covers key behavioral aspects but lacks output details (no output schema provided) and doesn't explain the sync's purpose or outcome. Annotations help with safety profile, but for a tool with no output schema, more context on what 'syncing' entails or expected results would improve completeness.

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 clear descriptions for 'specId' and 'collectionUid'. The description doesn't add any parameter-specific details beyond what the schema provides (e.g., no format examples or relationships between parameters). Given the high schema coverage, a baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't need to.

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's purpose: 'Syncs an API specification linked to a collection.' It specifies the verb ('Syncs') and resource ('API specification linked to a collection'), making the action clear. However, it doesn't explicitly differentiate from sibling tools like 'syncCollectionWithSpec' or 'generateSpecFromCollection', which appear related but have different directions/approaches.

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. It mentions constraints (OpenAPI 3.0 only, specs generated from collection ID) but doesn't explain when this sync is needed, what triggers it, or how it differs from tools like 'syncCollectionWithSpec' or 'updateSpecProperties'. Without such context, an agent might struggle to choose appropriately.

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