Skip to main content
Glama

Swagger MCP Server

by zidong0822

api_call

Execute HTTP requests to REST APIs by specifying method, path, parameters, headers, and body data for testing and integration.

Instructions

调用示例API API的通用工具。支持所有HTTP方法和路径。

Input Schema

NameRequiredDescriptionDefault
bodyNo请求体数据(用于POST/PUT等方法)
headersNo请求头,例如: {"Authorization": "Bearer token"}
methodYesHTTP方法
pathYesAPI路径,例如: /users/{id} 或 /posts
pathParamsNo路径参数,例如: {"id": "123"}
queryParamsNo查询参数,例如: {"limit": 10, "offset": 0}

Input Schema (JSON Schema)

{ "properties": { "body": { "additionalProperties": true, "description": "请求体数据(用于POST/PUT等方法)", "type": "object" }, "headers": { "additionalProperties": true, "description": "请求头,例如: {\"Authorization\": \"Bearer token\"}", "type": "object" }, "method": { "description": "HTTP方法", "enum": [ "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS" ], "type": "string" }, "path": { "description": "API路径,例如: /users/{id} 或 /posts", "type": "string" }, "pathParams": { "additionalProperties": true, "description": "路径参数,例如: {\"id\": \"123\"}", "type": "object" }, "queryParams": { "additionalProperties": true, "description": "查询参数,例如: {\"limit\": 10, \"offset\": 0}", "type": "object" } }, "required": [ "method", "path" ], "type": "object" }

Other Tools from Swagger 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/zidong0822/swagger-mcp'

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