Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Publish Portal Product

swagger_publish_portal_product
DestructiveIdempotent

Publish product content as live or preview, with optional page-specific URL using tableOfContentsId. Test changes in preview mode before making them publicly visible.

Instructions

Publish a product's content to make it live or as preview. This endpoint publishes the current content of a product, making it visible to portal visitors. Use preview mode to test before going live. Optionally provide tableOfContentsId to get a page-specific URL. Returns publication status, a live or preview URL (null if URL building fails), product and portal metadata, and an optional warning when metadata/URL building failed — a warning does NOT mean the publish failed.

Toolset: Products

Parameters:

  • productId (string) required: Product UUID or identifier in the format 'portal-subdomain:product-slug' - unique identifier for the product

  • tableOfContentsId (string): Optional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'. When provided, publishPortalProduct uses it to resolve the published URL path for the returned preview/live link.

  • preview (boolean): Whether to publish as preview (true) or live (false). Preview allows testing before going live. Defaults to false (live publication) (default: false)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
previewNoWhether to publish as preview (true) or live (false). Preview allows testing before going live. Defaults to false (live publication)
productIdYesProduct UUID or identifier in the format 'portal-subdomain:product-slug' - unique identifier for the product
tableOfContentsIdNoOptional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'. When provided, publishPortalProduct uses it to resolve the published URL path for the returned preview/live link.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
liveUrlNo
previewNo
successNo
previewUrlNo
Behavior5/5

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

Adds value beyond annotations by explaining return structure (publication status, URLs, warning) and clarifying that a warning does not indicate publish failure. Annotations already indicate destructive and idempotent, but description enhances transparency.

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?

Well-structured with clear sections (purpose, toolset, parameters). Brief yet comprehensive, no unnecessary words. Front-loaded with the core action.

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

Completeness5/5

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

Given the output schema exists (context indicates yes), the description covers purpose, mode, parameters, and return details fully. Enables correct agent decision-making without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline 3. Description adds semantics like how tableOfContentsId resolves the URL path and that preview defaults to false, providing context beyond the schema.

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 publishes a product's content to make it live or as a preview. It specifies the verb 'publish' and resource 'product content', distinguishing it from sibling tools like create, update, or delete portal products.

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

Usage Guidelines4/5

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

Provides clear guidance on using preview mode to test before going live. Implies publishing follows creation/updating. Lacks explicit alternatives or when not to use, but the context of sibling tools (create/update/delete) makes usage clear.

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/SmartBear/smartbear-mcp'

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