Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Swagger: Scan API Standardization

swagger_scan_api_standardization
Read-onlyIdempotent

Validates an OpenAPI or AsyncAPI definition against organizational governance rules, returning a list of standardization errors and severity counts.

Instructions

Run a standardization scan against an API definition using the organization's governance and standardization rules. Accepts a raw YAML or JSON OpenAPI/AsyncAPI definition and returns a list of validation errors, the total issue count, and counts grouped by severity. Use this tool when the user provides the API definition content directly (as raw YAML or JSON) and asks to validate, scan, or check the governance or standardization of the API.

Toolset: Registry API

Parameters:

  • orgName (string) required: The organization name to use for standardization rules

  • definition (string) required: API definition content (OpenAPI/AsyncAPI specification in JSON or YAML format) to scan for standardization errors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgNameYesThe organization name to use for standardization rules
definitionYesAPI definition content (OpenAPI/AsyncAPI specification in JSON or YAML format) to scan for standardization errors
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is clear. The description adds behavioral details beyond annotations: it explains the output format (list of validation errors, total count, severity counts) and that it uses organization governance rules. 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.

Conciseness5/5

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

The description is concise and well-structured. It starts with a clear action verb, explains input/output, provides usage guidance, mentions the toolset, and lists parameters. Every sentence adds value, and the key information is front-loaded.

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

Completeness4/5

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

Given the absence of an output schema, the description adequately describes the return format (list of errors, total count, severity counts). It also explains the input format and the rule source. It covers the usage context and differentiates from similar tools. The description is complete enough for an agent to correctly select and invoke the tool.

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%, and the description essentially restates the parameter names and types from the schema. While it adds context about providing raw content, it does not significantly add new semantic meaning beyond what the schema already provides. Baseline 3 is appropriate.

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 runs a standardization scan against an API definition using organizational rules. It specifically says 'Accept a raw YAML or JSON OpenAPI/AsyncAPI definition' and returns validation errors, issue count, and severity counts. It also differentiates from the sibling tool 'swagger_scan_api_standardization_from_registry' by emphasizing that this tool uses content provided directly by the user, not from a registry.

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

Usage Guidelines5/5

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

The description explicitly says 'Use this tool when the user provides the API definition content directly (as raw YAML or JSON) and asks to validate, scan, or check the governance or standardization of the API.' This clearly tells the agent when to invoke this tool versus alternatives like the registry-based scan.

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