Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Standardize API

swagger_standardize_api
DestructiveIdempotent

Standardize and fix API definitions for governance compliance using AI. Scans for standardization errors, auto-fixes them, and returns an updated definition with error count.

Instructions

Standardize and fix an API definition using AI to ensure compliance with governance policies. Scans the API definition for standardization errors and automatically fixes them using SmartBear AI. Optionally provide 'newVersion' (e.g. patch bump '1.0.0' → '1.0.1') to save the fixed definition as a new version — omitting it will overwrite the current version. Returns the number of errors found, the fixed definition, and a URL to view the standardized API. Use this tool when users ask to standardize, fix, govern, or ensure governance compliance of APIs.

Toolset: Registry API

Parameters:

  • owner (string) required: API owner (organization or user, case-sensitive)

  • api (string) required: API name (case-sensitive)

  • version (string) required: Version identifier

  • newVersion (string): The version to save the fixed definition as (e.g. '1.0.1'). Omitting this will overwrite the current version — prefer providing a patch bump (e.g. '1.0.0' → '1.0.1') unless the user specifies otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiYesAPI name (case-sensitive)
ownerYesAPI owner (organization or user, case-sensitive)
versionYesVersion identifier
newVersionNoThe version to save the fixed definition as (e.g. '1.0.1'). Omitting this will overwrite the current version — prefer providing a patch bump (e.g. '1.0.0' → '1.0.1') unless the user specifies otherwise.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
messageNo
errorsFoundNo
savedVersionNo
fixedDefinitionNo
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

Discloses key behavioral consequences beyond annotations: omitting newVersion overwrites the current version, while providing it saves as a new version, and it states the return payload includes error count, fixed definition, and a URL. This aligns with destructiveHint=true and adds useful detail without contradicting 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 with the core behavior first, followed by newVersion behavior, return values, and usage cue. The parameter list duplicates the schema somewhat, but the layout remains scannable and efficient.

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?

The description gives enough context to invoke correctly: what the tool does, when to use it, how to avoid overwriting by supplying newVersion, and what the response contains. With an output schema present, no critical operational details are missing.

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?

The input schema has 100% description coverage, so the baseline is 3. The description repeats the parameter explanations but adds little beyond what the schema already provides; no new parameter semantics are introduced.

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 states a concrete action: 'Standardize and fix an API definition using AI to ensure compliance with governance policies' and 'automatically fixes them using SmartBear AI.' It clearly names the resource and the fix/overwrite behavior, and the 'fix' verb distinguishes it from scan-only siblings in the same toolset.

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 explicit guidance: 'Use this tool when users ask to standardize, fix, govern, or ensure governance compliance of APIs.' It does not name specific alternatives or exclusions, but the when-to-use instruction is clear and actionable.

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