dashmetrics
v0.1.0Grafana dashboards, datasources, Prometheus, Loki, and alerts from your MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_dashboards
Search Grafana dashboards and folders by title text.
| Parameter | Type | Description |
|---|---|---|
limit | number | Optional maximum number of search results to return (default 100, clamped to 1-5000). |
query | string | Optional title text to search for; dashboards and folders with a matching title are returned. |
type | string | Optional Grafana search result type filter, such as 'dash-db' for dashboards or 'dash-folder' for folders. |
get_dashboard_by_uid
Get one dashboard by its uid, including panels and templating.
| Parameter | Type | Description |
|---|---|---|
uid * | string | The unique identifier (uid) of the dashboard to retrieve. |
list_datasources
List all datasources configured in Grafana.
get_datasource_by_uid
Get one datasource by its uid.
| Parameter | Type | Description |
|---|---|---|
uid * | string | The unique identifier (uid) of the datasource to retrieve. |
query_prometheus
Run a Prometheus range query through a datasource, returning the result matrix.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Prometheus datasource to query through. |
expr * | string | The PromQL expression to evaluate over the time range. |
end | string | Optional end of the query time range, as accepted by the Prometheus query_range API; defaults to 'now' when omitted. |
start | string | Optional start of the query time range, as accepted by the Prometheus query_range API; defaults to 'now-1h' when omitted. |
step | string | Optional query resolution step width, as a Prometheus duration string such as '15s' or '1m'; defaults to '15s' when omitted. |
list_prometheus_metric_names
List Prometheus metric names from a datasource, optionally filtered by a regex.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Prometheus datasource to list metric names from. |
regex | string | Optional regular expression; only metric names matching it are returned (the filter is applied client-side). |
list_prometheus_label_names
List Prometheus label names, optionally for one metric.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Prometheus datasource to list label names from. |
metric | string | Optional metric name; when given, only labels on series for that metric are listed (sent as the Prometheus match[] selector). |
list_prometheus_label_values
List the values of one Prometheus label.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Prometheus datasource to list label values from. |
label * | string | The name of the Prometheus label whose values are listed. |
metric | string | Optional metric name; when given, values are restricted to series for that metric (sent as the Prometheus match[] selector). |
query_loki_logs
Query Loki logs with a LogQL expression over a time range.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Loki datasource to query through. |
query * | string | The LogQL query expression selecting the log streams and lines to return. |
end | string | Optional end of the query time range, as accepted by the Loki query_range API. |
limit | number | Optional maximum number of log lines to return (default 100, clamped to 1-5000). |
start | string | Optional start of the query time range, as accepted by the Loki query_range API. |
list_loki_label_names
List Loki label names for a datasource.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Loki datasource to list label names from. |
list_loki_label_values
List the values of one Loki label.
| Parameter | Type | Description |
|---|---|---|
datasourceUid * | string | The uid of the Loki datasource to list label values from. |
label * | string | The name of the Loki label whose values are listed. |
list_alert_rules
List provisioned Grafana alert rules.
| Parameter | Type | Description |
|---|---|---|
limit | number | Optional maximum number of alert rules to return; when omitted, all provisioned alert rules are returned. |
get_alert_rule_by_uid
Get one provisioned alert rule by its uid.
| Parameter | Type | Description |
|---|---|---|
uid * | string | The unique identifier (uid) of the provisioned alert rule to retrieve. |
list_contact_points
List provisioned Grafana contact points (alert notification receivers).
| Parameter | Type | Description |
|---|---|---|
limit | number | Optional maximum number of contact points to return; when omitted, all provisioned contact points are returned. |