uptrace_list_monitors
List all alerting monitors to view IDs, names, types, and configurations for monitoring setup management.
Instructions
List all alerting monitors. Returns monitor IDs, names, types, and configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/uptrace_mcp/server.py:949-966 (handler)The handler implementation for the uptrace_list_monitors tool. It calls client.get_monitors() and formats the output as text.
elif name == "uptrace_list_monitors": logger.info("Listing monitors") monitors = client.get_monitors() lines = [ "# Monitors", f"**Total Monitors**: {len(monitors)}", "", ] if monitors: lines.append("## Monitor List") for monitor in monitors: lines.append(f"- **{monitor.name}** ({monitor.type}) [ID: {monitor.id}]") else: lines.append("No monitors found.") return [TextContent(type="text", text="\n".join(lines))] - src/uptrace_mcp/server.py:322-329 (registration)The Tool definition and registration for uptrace_list_monitors in the MCP server.
Tool( name="uptrace_list_monitors", description="List all alerting monitors. Returns monitor IDs, names, types, and configuration.", inputSchema={ "type": "object", "properties": {}, }, ),