You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keywords: [logz.io, mcp, model context protocol, llm tools, observability, logs, metrics, prometheus, promql, dashboards, alerts, elasticsearch, ai agents, integrations]
7
7
---
8
8
9
-
The Logz.io Public API MCP (Model Context Protocol) server allows LLM clients (Claude, Cursor, ChatGPT, etc.) to access observability data—logs, metrics, dashboards, and alerts, in a standardized way. With MCP, AI agents can fetch context and trigger actions without custom integrations.
9
+
The Logz.io Public API MCP (Model Context Protocol) server allows LLM clients (Claude, Cursor, ChatGPT, etc.) to access observability data - logs, metrics, dashboards, and alerts, in a standardized way. With MCP, AI agents can fetch context and trigger actions without custom integrations.
10
10
11
11
### Prerequisites
12
12
@@ -56,62 +56,62 @@ The MCP server exposes tools grouped by domain. Each tool follows the MCP reques
56
56
57
57
Tools for managing and retrieving account information:
|`get_account_info`| Retrieve account name and ID for the current token. | None |[Link](https://api-docs.logz.io/docs/logz/who-am-i/)|
62
+
|`get_associated_accounts`| List all accounts associated with the current account (including sub-accounts for owners). | None ||
63
+
|`get_metrics_accounts`| List all metrics accounts with details. | None |[Link](https://api-docs.logz.io/docs/logz/get-a-list-of-all-metrics-accounts)|
64
64
65
65
### Metrics management
66
66
67
67
Tools for querying metrics:
68
68
69
-
| Tool | Description | Parameters |
70
-
| ---- | ----------- | ---------- |
71
-
|`query_prometheus_metrics`| Run a PromQL query at a single timestamp. |`query` (string, required), `time` (string, optional), `timeout` (string, optional) |
72
-
|`query_prometheus_metrics_range`| Run a PromQL query over a time range. |`query` (string, required), `start` (string, required), `end` (string, required), `step` (string, required), `timeout` (string, optional) |
73
-
|`get_available_metrics`| List available Prometheus metric names. | None |
74
-
|`get_metric_labels`| List available labels for a metric. |`metric_name` (string, required) |
69
+
| Tool | Description | Parameters | API Link |
70
+
| ---- | ----------- | ---------- | ---------- |
71
+
|`query_prometheus_metrics`| Run a PromQL query at a single timestamp. |`query` (string, required), `time` (string, optional), `timeout` (string, optional) |[Link](https://api-docs.logz.io/docs/logz/post-instant-query/)|
72
+
|`query_prometheus_metrics_range`| Run a PromQL query over a time range. |`query` (string, required), `start` (string, required), `end` (string, required), `step` (string, required), `timeout` (string, optional) |[Link](https://api-docs.logz.io/docs/logz/post-range-query)|
73
+
|`get_available_metrics`| List available Prometheus metric names. | None ||
74
+
|`get_metric_labels`| List available labels for a metric. |`metric_name` (string, required) |[Link](https://api-docs.logz.io/docs/logz/post-series-by-labels)|
75
75
76
76
### Logs management
77
77
78
78
Tools for searching, filtering, and managing logs:
|`move_dashboard`| Move a dashboard to a different folder. |`uid` (string, required), `target_folder_id` (string, required) |[Link](https://api-docs.logz.io/docs/logz/move-a-dashboard-to-a-different-folder)|
101
+
|`get_all_dashboard_folders`| List all dashboard folders. |`with_dashboards` (string, optional) |[Link](https://api-docs.logz.io/docs/logz/get-all-dashboards-folders)|
102
+
|`create_dashboard_folder`| Create a new dashboard folder. |`name` (string, required) |[Link](https://api-docs.logz.io/docs/logz/create-dashboards-folder)|
103
+
|`get_dashboard_schema_example`| Retrieve an example dashboard schema. | None ||
104
104
105
105
106
106
### Alerts & insights
107
107
108
108
Tools for alerts and insights:
109
109
110
-
| Tool | Description | Parameters |
111
-
| ---- | ----------- | ---------- |
112
-
|`get_all_alerts`| List all configured alerts. | None |
113
-
|`get_triggered_alerts`| List all triggered alerts. | None |
0 commit comments