Skip to main content
Glama

FastAPI OpenAPI MCP Server

by jason-chang

generate_examples

Generate API call examples in multiple formats like JSON, cURL, Python, and JavaScript based on OpenAPI specifications to help developers understand and test API endpoints.

Instructions

根据 OpenAPI 规范生成各种格式的 API 调用示例

Input Schema

NameRequiredDescriptionDefault
example_strategyNo示例生成策略realistic
formatsNo生成的示例格式,默认生成所有格式
include_authNo是否包含认证信息
methodYesHTTP 方法,例如 GET, POST, PUT, DELETE
pathYes接口路径,例如 /api/v1/users
server_urlNo服务器基础 URL,默认使用 OpenAPI 规范中的服务器 URL

Input Schema (JSON Schema)

{ "properties": { "example_strategy": { "default": "realistic", "description": "示例生成策略", "enum": [ "minimal", "complete", "realistic" ], "type": "string" }, "formats": { "description": "生成的示例格式,默认生成所有格式", "items": { "enum": [ "json", "curl", "python", "javascript", "http", "postman" ], "type": "string" }, "type": "array" }, "include_auth": { "default": true, "description": "是否包含认证信息", "type": "boolean" }, "method": { "description": "HTTP 方法,例如 GET, POST, PUT, DELETE", "enum": [ "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS" ], "type": "string" }, "path": { "description": "接口路径,例如 /api/v1/users", "type": "string" }, "server_url": { "description": "服务器基础 URL,默认使用 OpenAPI 规范中的服务器 URL", "type": "string" } }, "required": [ "path", "method" ], "type": "object" }

Other Tools from FastAPI OpenAPI MCP Server

Related Tools

    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/jason-chang/fastapi-openapi-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server