Get API Info
swagger_get_infoRetrieve a high-level summary of a loaded OpenAPI/Swagger spec, including title, version, description, base URL, and counts of endpoints, schemas, and tags.
Instructions
Get general information about a loaded OpenAPI/Swagger specification, including title, version, description, server URL, contact info, and license.
Use this tool to get a high-level summary of an API spec.
Args:
spec_name (string): Name of the previously loaded spec (use swagger_list_loaded to see available names)
Returns: { "title": string, // API title "version": string, // API version "description": string, // API description "server_url": string, // Base server URL "endpoints": number, // Total endpoint count "schemas": number, // Total schema count "tags": number, // Total tag count "openapi_version": string // OpenAPI spec version }
Examples:
Use when: "Tell me about this API" -> params with spec_name=""
Use when: "What's the base URL for this API?" -> params with spec_name=""
Error Handling:
Returns error if the spec name has not been loaded
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_name | Yes | Name of the previously loaded OpenAPI/Swagger spec (use swagger_list_loaded to see available names) |