list_endpoints
Discover and retrieve all available Rootly API endpoints with detailed descriptions to effectively manage incidents and metadata directly from your IDE.
Instructions
List all available Rootly API endpoints with their descriptions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/rootly_mcp_server/server.py:354-373 (handler)Handler function for the 'list_endpoints' MCP tool. Lists all available Rootly API endpoints from the filtered OpenAPI spec, including path, method, summary, and description.@mcp.tool() def list_endpoints() -> list: """List all available Rootly API endpoints with their descriptions.""" endpoints = [] for path, path_item in filtered_spec.get("paths", {}).items(): for method, operation in path_item.items(): if method.lower() not in ["get", "post", "put", "delete", "patch"]: continue summary = operation.get("summary", "") description = operation.get("description", "") endpoints.append({ "path": path, "method": method.upper(), "summary": summary, "description": description, }) return endpoints
- src/rootly_mcp_server/server.py:354-373 (registration)Registration of the 'list_endpoints' tool using the @mcp.tool() decorator within the create_rootly_mcp_server function.@mcp.tool() def list_endpoints() -> list: """List all available Rootly API endpoints with their descriptions.""" endpoints = [] for path, path_item in filtered_spec.get("paths", {}).items(): for method, operation in path_item.items(): if method.lower() not in ["get", "post", "put", "delete", "patch"]: continue summary = operation.get("summary", "") description = operation.get("description", "") endpoints.append({ "path": path, "method": method.upper(), "summary": summary, "description": description, }) return endpoints