Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Update Portal

swagger_update_portal
DestructiveIdempotent

Update a SmartBear portal's configuration: change its name, subdomain, custom domain, analytics tracking, visibility, routing, authentication, OpenAPI renderer, or page content format.

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
Install Server

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already signal destructiveHint=true and idempotentHint=true, so the mutation profile is partially covered. The description's parameter notes add useful side-effect context, such as subdomain 'changes the portal URL' and offline 'hides portal from customers', though it does not discuss permissions, reversibility, or broader destructive impact. No contradiction with annotations.

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 purpose statement is front-loaded and clear, but the description then duplicates the entire 10-parameter input schema nearly verbatim. Most of the parameter entries do not earn their place because the agent already has that information in the structured schema.

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?

All parameters are documented, the required portalId is obvious, and an output schema exists, so an agent can construct a valid call. However, the description lacks guidance on prerequisites, when updating is appropriate, and what post-update side effects to verify, so it is adequate but not 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%, so the schema already documents all parameters thoroughly. The description's parameter list essentially mirrors the schema without adding new semantic meaning, so it stays at the baseline for high schema coverage.

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 states a clear verb and resource: 'Update a specific portal's configuration.' This distinguishes it from create/get/delete portal tools, though it does not explicitly name sibling tools to differentiate from update_portal_product.

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 verb 'Update' and resource 'portal' imply this is for modifying an existing portal, but there is no explicit when/when-not guidance or mention of alternatives like swagger_create_portal or swagger_get_portal. The 'Toolset: Portals' line provides only weak context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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