Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Update Portal

swagger_update_portal
DestructiveIdempotent

Update a portal's configuration including display name, subdomain, custom domain, visibility, analytics tracking, routing, authentication, and documentation renderer.

Instructions

Update a specific portal's configuration.

Toolset: Portals

Parameters:

  • portalId (string) required: Portal UUID or subdomain - unique identifier for the portal instance

  • name (string): Update the portal display name - shown to users and in branding (3-40 characters)

  • subdomain (string): Update the portal subdomain - changes the portal URL. Must remain unique across all portals (3-20 characters, lowercase, alphanumeric with hyphens)

  • customDomain (boolean): Enable/disable custom domain for the portal - allows using your own domain instead of the default subdomain

  • gtmKey (string): Google Tag Manager key for analytics tracking - format: GTM-XXXXXX (max 25 characters)

  • offline (boolean): Set portal visibility - true hides portal from customers (useful for maintenance or development)

  • routing (string): Update routing strategy - 'browser' for client-side routing or 'proxy' for server-side routing

  • credentialsEnabled (boolean): Enable/disable authentication credentials for portal access - controls whether users can authenticate to view private content

  • openapiRenderer (string): Change OpenAPI renderer: 'SWAGGER_UI' (Swagger UI), 'ELEMENTS' (Stoplight Elements), or 'TOGGLE' (switch between both)

  • pageContentFormat (string): Update page content format for documentation rendering: 'HTML', 'MARKDOWN', or 'BOTH'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoUpdate the portal display name - shown to users and in branding (3-40 characters)
gtmKeyNoGoogle Tag Manager key for analytics tracking - format: GTM-XXXXXX (max 25 characters)
offlineNoSet portal visibility - true hides portal from customers (useful for maintenance or development)
routingNoUpdate routing strategy - 'browser' for client-side routing or 'proxy' for server-side routing
portalIdYesPortal UUID or subdomain - unique identifier for the portal instance
subdomainNoUpdate the portal subdomain - changes the portal URL. Must remain unique across all portals (3-20 characters, lowercase, alphanumeric with hyphens)
customDomainNoEnable/disable custom domain for the portal - allows using your own domain instead of the default subdomain
openapiRendererNoChange OpenAPI renderer: 'SWAGGER_UI' (Swagger UI), 'ELEMENTS' (Stoplight Elements), or 'TOGGLE' (switch between both)
pageContentFormatNoUpdate page content format for documentation rendering: 'HTML', 'MARKDOWN', or 'BOTH'
credentialsEnabledNoEnable/disable authentication credentials for portal access - controls whether users can authenticate to view private content

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
nameNo
offlineNo
routingNo
subdomainNo
customDomainNo
openapiRendererNo
credentialsEnabledNo
swaggerHubOrganizationIdNo
Behavior2/5

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

The description does not add behavioral context beyond the annotations (destructiveHint, idempotentHint). It lacks details on side effects, authorization requirements, or error scenarios. Annotations are present but the description should still provide some added context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is unnecessarily long because it redundantly lists all parameters with descriptions already present in the schema. A concise description would focus on high-level purpose and usage, not duplicate structured data.

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

Completeness2/5

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

Given the tool's complexity (10 parameters), the description lacks important context such as whether updates are partial or full, how to revert changes, or typical use cases. It essentially rehashes the schema without providing higher-level 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%, so baseline is 3. The description repeats parameter descriptions verbatim from the schema, adding no additional meaning or usage hints beyond what the schema provides.

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 verb 'Update' and the resource 'portal's configuration', which distinguishes it from sibling tools like create_portal, delete_portal_product, and get_portal.

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. For example, it does not mention that if a portal doesn't exist, create_portal should be used first, or that for read-only access, get_portal is appropriate.

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