Added
- Notebooks tools for Grafana 13.3's notebooks preview:
list_notebooks,search_notebooks,get_notebook_by_uid,render_notebook_pdf,create_notebook,update_notebookanddelete_notebook.update_notebookkeeps the notebook's metadata and accepts theresourceVersionit was read at, so a concurrent edit fails instead of being overwritten, andrender_notebook_pdfreturns the notebook as a PDF (#1454) - AWS X-Ray tools in the opt-in
xraycategory:search_xray_traceslists traces matching a filter expression, newest first, andget_xray_tracereturns a trace as a tree of segments with timings, HTTP status and errors (#1653) - Azure Monitor tools in the opt-in
azuremonitorcategory:query_azure_log_analyticsruns KQL against Log Analytics resources over a time range, andquery_azure_resource_graphqueries Azure Resource Graph, both with a row limit (#1582) render_grafana_apphas aquery_datasourcesource, in the opt-indsquerycategory, that runs a query on any datasource and draws it with Grafana's own visualization Renderer in MCP hosts that support MCP Apps:- The chart is picked from the shape of the data, with
type,unitandtitlearguments to override it, and a failed query in a batch adds a note while the others still draw (#1493, #1497, #1498, #1499, #1549) - The user can refresh the view, pick its time range, zoom and pan, and pick another chart, and the model is told what the view shows and when it fails to load (#1623, #1633, #1638, #1651)
- A query block above the chart shows the queries, their range and series count, with a copy button (#1648, #1657)
- Ask in chat on a pinned tooltip sends that point to the conversation (#1701)
- The Renderer is served as its own MCP resource and loaded only when a chart needs it, so the App HTML shrinks from 4.9 MB to 1.3 MB (#1596, #1617)
- The chart is picked from the shape of the data, with
- Empty
query_prometheusandquery_loki_logsresults name the likely cause, such as a metric that doesn't exist (with a_totalsuggestion), a native histogram, an unknown label or a line filter that removed every line, with a stablehints.reason(#1691, #1700) --config(orGRAFANA_MCP_CONFIG) selects tools from a YAML file with categories, mode, query, allow and deny lists. Unknown keys and names that would have no effect fail at startup, and flags set explicitly override the file (#1689)--enable-write-toolscan keep any write tool that--disable-writeremoves, such asupdate_dashboardorcreate_folder, instead of only the alerting write and query tools (#1600)- Per-user mode for shared streamable HTTP servers:
--require-user-credentialsrefuses to start with a shared Grafana credential configured and rejects requests that carry no credential of their own with a 401.--user-identity-headersnames extra headers, such as an auth proxy's, that count as a credential (#1690) --log-tool-callslogs one line per tool call with the caller's Grafana user, tool, org, result and duration. Arguments are never logged (#1690)--server-auth-headerreads the server auth token from a header other thanAuthorization, leavingAuthorizationfree for the user's own Grafana credential behind a proxy (#1699)--prometheus-enforced-matchersANDs operator-set label matchers into every Prometheus query and discovery call, like--loki-enforced-matchers, and fails closed on queries it can't parse (#1475)- An opt-in TSDB cardinality check for the Prometheus guardrail, with a counter that says why a query was let through when its cardinality couldn't be found (#1561, #1583)
--dashboard-schema=v2makesupdate_dashboardrefuse to create new dashboards in the classic v1 format when Grafana serves dashboard schema v2, and returns a minimal v2 body to retry with. Existing dashboards save as before (#1555)query_loki_logsacceptsformat: "loki", which returns Loki's nativequery_rangeresponse shape. The default output is unchanged (#1572)- Grafana requests rate-limited with a 429 (or a 503 with
Retry-After) are retried up to twice, honouringRetry-After(#1613)
Fixed
- Time ranges with only an end time start an hour before that end, not an hour before now, in the CloudWatch, Cloud Logging, Azure Monitor, InfluxDB, SQL, Tempo, X-Ray and Cloud Monitoring tools, so a past end no longer gives an inverted range (#1674, #1675, #1677, #1685)
- Alerting:
alerting_manage_routingreads notification policy trees with string matchers such asseverity="critical", instead of failing to decode them (#1627)alerting_rules_readpages through rules until label selectors fill the limit, instead of dropping matches in later groups (#1591)get_contact_pointfinds receivers the provisioning API omits, such as those imported from Mimir or Alertmanager (#1629)- Contact points of an Alertmanager datasource with no implementation set are read as Mimir/Cortex, as Grafana does, and an empty match returns
[]instead ofnull(#1552, #1678) - Permission errors from the provisioning API name the permissions Grafana checks, instead of
(status 403): {}(#1630) alerting_rules_writedescribes and checks theno_data_stateandexec_err_statevalues Grafana accepts, in any letter case (#1628)- A 409 on alert rule update explains that the rule is provisioned and asks the user before editing it (#1599)
- Dashboards:
query_prometheusinstant queries on a range vector, such asup[5m], return every sample in the window, not just the last (#1562)query_cloudwatchkeeps series separate when a query returns several, such as a*dimension value, instead of merging them into one (#1540)- Bad arguments get clear errors instead of panics or silent misbehaviour: a negative
limitin the Prometheus label and metadata listing tools, a negativemax_node_depthinquery_pyroscope, an unknownqueryTypeinquery_loki_logsand a missingidinupdate_annotation(#1673, #1684, #1697, #1639, #1698) --grafana-timeoutapplies to the datasource query, alerting, Pyroscope and org lookup clients, and defaults to 30s for every client, matching Grafana's data proxy timeout (#1563, #1566)- The docs index fetch and usage stats go through
GRAFANA_SOCKS5_PROXYwhen it is set (#1567) - Server instructions under
--disable-writedescribe only the tools that are left, and no longer list the folder category (#1600, #1671) query_datasourcerounds its default query interval as Grafana does, so$__rate_intervalqueries over long ranges no longer fail to parse (#1686)render_grafana_appsays it sent the result to the App rather than that it was displayed, so the model doesn't tell the user a chart is up before it draws (#1702)- Failed
search_dashboards,search_foldersandlist_teamscalls no longer dump the Grafana client struct into the error (#1609)
Changed
- Breaking:
alerting_rules_readlist returns{rules, truncated, next_cursor}instead of an array, andquery_cloudwatchalways returns results underseries. Agents pick up the new shapes from the tool descriptions; only code that parses the output directly must change (#1591, #1540) - Breaking: the default
--grafana-timeoutfor the main Grafana client rises from 10s to 30s (#1566) - Every tool is registered from one catalog. Go embedders call
tools.Resolve(tools.Policy{...}).Register(s)instead of theAdd*Toolsfunctions (#1600)