get_swagger
Retrieve the Swagger/OpenAPI specification for the Congress.gov MCP Server to understand available API endpoints and data structures.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:22-25 (handler)The handler function for the get_swagger tool. It fetches and returns the Swagger JSON from the Congress.gov API GitHub repository. The @mcp.tool() decorator registers it as an MCP tool.@mcp.tool() async def get_swagger(): url = "https://raw.githubusercontent.com/LibraryOfCongress/api.congress.gov/refs/heads/main/Documentation/swagger.json" return requests.get(url).json()