Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Update Portal

swagger_update_portal
Read-onlyIdempotent

Update a portal's configuration settings including name, subdomain, custom domain, analytics, visibility, routing, authentication, renderer, and 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
Behavior1/5

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

The description claims an update operation, but annotations include readOnlyHint: true, indicating the tool does not modify state. This is a direct contradiction. Aside from that, the description does not disclose side effects, permission requirements, or rate limits. The contradiction severely undermines transparency.

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 verbose, listing every parameter with explanations that duplicate the schema. The lead sentence is clear, but the bulk is unnecessary repetition. A more concise description would highlight only key or non-obvious parameters.

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?

Despite having 10 parameters and no output schema, the description does not explain what happens after the update (e.g., return value, confirmation), nor does it mention any required permissions or potential side effects. The annotation contradiction also leaves the agent confused about the tool's actual behavior.

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?

All parameters are documented in the input schema (100% coverage). The description repeats the schema descriptions with minor additions like character limits. While this adds some value, it is mostly redundant. Baseline score of 3 is appropriate because schema carries the burden.

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 starts with 'Update a specific portal's configuration', clearly stating the action and resource. The list of parameters clarifies what can be updated, but it does not explicitly differentiate from sibling tools like swagger_create_portal or swagger_update_portal_product, though the name and context make the distinction clear.

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 lacks guidance on when to use this tool vs alternatives. It does not mention prerequisites, when not to use it, or scenarios where another tool (e.g., swagger_create_portal) would be more appropriate. The agent receives no usage context beyond the verb 'Update'.

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