Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Swagger Prompts MCP 是一个专业的 Swagger/OpenAPI 接口解析工具。

功能

提供三个主要工具:

  1. parseApiEndpoint - 解析单个 API 接口

    • 输入 Swagger/OpenAPI 文档的 URL 地址

    • 指定要解析的接口路径和方法

    • 返回该接口的完整 JSON Schema 格式中文提示词

  2. parseSchema - 递归解析指定 Schema

    • 输入 Swagger/OpenAPI 文档的 URL 地址

    • 指定要解析的 Schema 名称

    • 返回完整的 JSON Schema 结构

  3. downloadSwaggerJson - 下载 Swagger JSON 到本地

    • 输入 Swagger/OpenAPI 文档的 URL 地址

    • 支持用户名和密码认证(Basic Authentication)

    • 指定保存路径,支持相对路径和绝对路径

    • 自动创建目录结构

使用方式

直接调用相应工具,传入文档 URL 和所需参数即可。

输出格式

  • 请求参数:完整的 JSON Schema 格式

  • 响应数据:完整的 JSON Schema 格式

  • Schema 结构:完整的 JSON Schema 格式

  • 所有 $ref 引用都被完全解析

  • 清晰的中文说明

  • 输出为文本内容,适合直接提供给 AI 模型

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
parseApiEndpointA

解析 Swagger/OpenAPI 文档中的单个接口,生成 JSON Schema 格式的中文提示词

parseSchemaB

递归解析 Swagger/OpenAPI 文档中的指定 Schema,生成完整的 JSON Schema 结构

downloadSwaggerJsonB

下载 Swagger/OpenAPI JSON 文档到本地文件,支持用户名密码认证

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 3 tools

Disambiguation5/5

The three tools have clearly distinct purposes: downloading a Swagger/OpenAPI document, parsing a single endpoint into a prompt, and recursively parsing a schema. The naming and descriptions make it easy to choose the correct tool for each task.

Naming Consistency5/5

All tool names use consistent camelCase with a verb+noun structure: parseApiEndpoint, parseSchema, and downloadSwaggerJson. There is no mixing of conventions or vague verbs.

Tool Count5/5

Three tools is a well-scoped set for a focused Swagger/OpenAPI prompt-generation server. Each tool serves a clear role without unnecessary surface area.

Completeness3/5

The set covers downloading a document, parsing one endpoint, and parsing a schema, but lacks obvious operations for listing or enumerating all endpoints and generating prompts across the whole document. Agents can partially work around this by inspecting the downloaded JSON, but it remains a notable gap.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues