---
title: "Grafana Cloud MCP tools | Grafana Cloud documentation"
description: "Explore the tools and tool areas available to external AI agents on a Grafana Cloud MCP connection, including observability, dashboards, alerting, hosted gcx, and Grafana Assistant tools."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Grafana Cloud MCP tools

The Grafana Cloud MCP server exposes the same tool categories as the [open source Grafana MCP server](https://github.com/grafana/mcp-grafana), plus Assistant-native tools, for example, infrastructure memory. Tools marked **Query** require query access, and tools marked **Write** require write access.

Ask your agent to discover the tools available on your connection. The tool list depends on your granted [access level](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/#choose-an-access-level), [tool areas](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/tools/#tool-areas), and enabled features. If a tool is missing, it may be outside your granted areas. To change those areas, refer to [Change a connection’s tool areas](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/#change-a-connections-tool-areas).

To use interactive charts and alert apps, your client must also support MCP Apps. Tools for a specific Grafana app require that app to be installed and configured, and your account needs permission to use it.

## Tool areas

> Note
> 
> Grafana Cloud MCP tool areas is currently in [public preview](https://grafana.com/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.

Tool areas let you choose which kinds of tools an external AI agent sees on a Grafana Cloud MCP connection. For example, an analyst’s connection can see only business data tools, while an on-call engineer’s connection sees observability, dashboards, alerting, and Assistant tools. A smaller tool list keeps your agent focused on the work you connected it for.

Tool areas work alongside the access level you choose for the connection. A tool is available only when the connection has one of the tool’s areas and the access level the tool needs. Your Grafana permissions still apply to every operation. To choose areas when you connect, refer to [Choose tool areas](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/#choose-tool-areas).

Each area adds a group of tools to the connection. Tools that several areas need, for example, data source discovery, come with each of those areas. Every area also includes documentation search, links into Grafana, and your user details.

Expand table

| Area                                 | Scope                  | Tools for                                                                                   |
|--------------------------------------|------------------------|---------------------------------------------------------------------------------------------|
| **Observability**                    | `mcp:observability`    | Metrics, logs, traces, and profiles, plus Grafana Cloud apps such as Kubernetes Monitoring. |
| **Dashboards**                       | `mcp:dashboards`       | Dashboards, folders, panels, snapshots, annotations, and notebooks.                         |
| **Grafana Pages**                    | `mcp:pages`            | Finding, building, and publishing Pages.                                                    |
| **Alerting &amp; incident response** | `mcp:alerting`         | Alert rules, silences, notification routing, incidents, and OnCall.                         |
| **Grafana Assistant**                | `mcp:assistant`        | Asking Assistant and running investigations.                                                |
| **Business data**                    | `mcp:business-data`    | Knowledge Base, SQL table discovery, and SQL queries.                                       |
| **AI Observability**                 | `mcp:ai-observability` | LLM conversations, evaluators, experiments, and test suites.                                |
| **Administration**                   | `mcp:admin`            | Users, teams, roles, plugins, and data source settings.                                     |
| **Raw API &amp; CLI**                | `mcp:raw-api`          | Calling any Grafana API and running the gcx CLI.                                            |

Three areas reach beyond their own tools. **Grafana Assistant** tools hand your request to Assistant, which uses its own full toolset rather than the connection’s areas. **Grafana Pages** tools build pages whose queries can read any data source you can, and show the results in a page snapshot. **Raw API &amp; CLI** can call any Grafana API and run any gcx command, which bypasses the limits of the other areas. Access levels still apply to all three. If you keep any of these areas but clear others, the consent page shows a warning.

You can still add **Raw API &amp; CLI** to a narrow selection when you need it, for example, to reach products without dedicated tools, such as SLO and Fleet Management.

## Available tools

The following sections list the tools by category.

### Search and navigation

Use these tools to find dashboards, folders, and generate links to Grafana resources.

Expand table

| Tool                | Description                                                |
|---------------------|------------------------------------------------------------|
| `search_dashboards` | Search for dashboards by query string.                     |
| `search_folders`    | Search for folders by query string.                        |
| `generate_deeplink` | Generate links to dashboards, panels, and Explore queries. |

### Dashboards and folders

Use these tools to view and manage dashboards and folders.

Expand table

| Tool                          | Description                                                                | Access    |
|-------------------------------|----------------------------------------------------------------------------|-----------|
| `get_dashboard_by_uid`        | Retrieve the complete dashboard JSON by UID.                               | Read      |
| `get_dashboard_summary`       | Get a compact summary of a dashboard without the full JSON.                | Read      |
| `get_dashboard_property`      | Extract specific parts of a dashboard using JSONPath expressions.          | Read      |
| `get_dashboard_panel_queries` | Retrieve panel queries with template variable substitution.                | Read      |
| `update_dashboard`            | Create or update a dashboard using full JSON or targeted patch operations. | **Write** |
| `create_folder`               | Create a Grafana folder.                                                   | **Write** |

### Notebooks

Your agent can list, search, and read Grafana notebooks, and export a notebook as a PDF with `render_notebook_pdf`. With write access, it can also create, update, and delete notebooks.

Notebook tools require the notebooks preview to be enabled on your stack. Exporting a PDF also requires the Grafana Image Renderer.

### Build Pages

Your agent can build [Pages](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/pages/), interactive pages on your Grafana data such as reports, service overviews, and presentations, and write them itself instead of asking Assistant. A page is a small React and TypeScript project that your stack builds and hosts, and its queries run with the permissions of each person who opens it. Pages tools require the **Grafana Pages** tool area and Pages enabled on your stack.

Use `list_pages` to find published pages and `get_page` to read a page’s details, queries, and source. With write access, `create_page_draft` starts a private draft from the Pages template, and `edit_page` copies a published page into a draft so your agent can change it. Each draft opens in its own Assistant conversation.

Your agent reads a draft’s files with `read_page_draft_files` and writes them with `write_page_draft_files`, which builds the page on your stack and returns any build errors. A build that fails keeps the draft’s previous version. Use `snapshot_page_draft` to see an image of the draft rendered with your data.

A draft is private until you publish it. Ask your agent to publish with `publish_page_draft` when the page is ready. A new page goes into a folder, whose permissions decide who can open it, or stays unlisted. A draft of a published page becomes that page’s next version, keeps its folder and sharing, and leaves earlier versions in its history.

Reading pages and drafts and taking snapshots require read access. Starting, changing, and publishing pages require write access. These tools don’t run Assistant, so they don’t use Assistant tokens.

### Data sources

Use these tools to list and inspect configured data sources.

Expand table

| Tool               | Description                                                                  |
|--------------------|------------------------------------------------------------------------------|
| `list_datasources` | List all configured data sources. Supports filtering by type and pagination. |
| `get_datasource`   | Get detailed information about a data source by UID or name.                 |

### Prometheus

Use these tools to discover metrics and execute PromQL queries.

Expand table

| Tool                              | Description                                                                  |
|-----------------------------------|------------------------------------------------------------------------------|
| `list_prometheus_metric_names`    | Discover available metrics with regular expression filtering and pagination. |
| `list_prometheus_metric_metadata` | List metadata about currently scraped metrics.                               |
| `list_prometheus_label_names`     | List label names with optional series selector and time range filtering.     |
| `list_prometheus_label_values`    | Get values for a specific label.                                             |
| `query_prometheus`                | Execute PromQL instant or range queries.                                     |
| `query_prometheus_histogram`      | Query histogram percentiles.                                                 |

### Loki

Use these tools to query logs and discover label metadata.

Expand table

| Tool                     | Description                                             |
|--------------------------|---------------------------------------------------------|
| `list_loki_label_names`  | List available label names in logs.                     |
| `list_loki_label_values` | Get unique values for a specific label.                 |
| `query_loki_logs`        | Execute LogQL queries for log entries or metric values. |
| `query_loki_stats`       | Get statistics about log streams.                       |
| `query_loki_patterns`    | Detect and analyze common log patterns.                 |

### Tempo

If you have Tempo data sources in your Grafana Cloud stack, the Grafana Cloud MCP server proxies any tools that the Tempo data source offers.

You can also use native Tempo tools to search and compare traces, query trace-derived metrics, and explore trace attributes.

### Pyroscope

Use these tools to query profiling data.

Expand table

| Tool                           | Description                               |
|--------------------------------|-------------------------------------------|
| `list_pyroscope_label_names`   | List available label names in profiles.   |
| `list_pyroscope_label_values`  | List values for a specific label.         |
| `list_pyroscope_profile_types` | List available profile types.             |
| `query_pyroscope`              | Query profiles or metrics from Pyroscope. |

### Application and infrastructure observability

Use these tools to extend dashboard and data source queries with app-specific context.

Expand table

| Tool                                  | Description                                                                                                                 | Access           |
|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------|
| `app_observability_handler`           | List services and inspect operations, dependencies, instrumentation quality, and runtimes.                                  | Read             |
| `app_observability_operation_handler` | Find top operations and inspect a specific operation’s metrics.                                                             | Read             |
| `frontend_observability_handler`      | Find apps and inspect Web Vitals and browser errors. With write access, create an app and get its instrumentation snippets. | Read / **Write** |
| `kubernetes_handler`                  | Inspect clusters, namespaces, Deployments, and pods, with links to Kubernetes Monitoring.                                   | Read             |

Application Observability features that use graph-backed inventory and topology also require Knowledge Graph. Native operation queries don’t require it.

### SQL data sources

Use these tools to explore and query SQL data sources: ClickHouse, Snowflake, Amazon Athena, MySQL, PostgreSQL, Microsoft SQL Server, and Google BigQuery.

Expand table

| Tool                 | Description                                                                                        | Access    |
|----------------------|----------------------------------------------------------------------------------------------------|-----------|
| `list_sql_databases` | List databases, schemas, or catalogs. For Athena, list catalogs first, then a catalog’s databases. | Read      |
| `list_sql_tables`    | List tables and their available metadata.                                                          | Read      |
| `describe_sql_table` | Get column names, types, and available metadata for a table.                                       | Read      |
| `query_sql`          | Execute SQL queries, with support for time macros and template variables.                          | **Query** |

### Amazon CloudWatch

Use these tools to query Amazon CloudWatch metrics and logs.

Expand table

| Tool                               | Description                                   |
|------------------------------------|-----------------------------------------------|
| `list_cloudwatch_namespaces`       | List available AWS namespaces.                |
| `list_cloudwatch_metrics`          | List metrics for a namespace.                 |
| `list_cloudwatch_dimensions`       | List dimension keys for a metric.             |
| `query_cloudwatch`                 | Query Amazon CloudWatch metrics.              |
| `list_cloudwatch_log_groups`       | Find CloudWatch log groups.                   |
| `list_cloudwatch_log_group_fields` | List the fields you can query in a log group. |
| `query_cloudwatch_logs`            | Run CloudWatch Logs Insights queries.         |

### AWS X-Ray

Use these tools to search and read AWS X-Ray traces.

Expand table

| Tool                 | Description                                 |
|----------------------|---------------------------------------------|
| `search_xray_traces` | Find traces that match a filter expression. |
| `get_xray_trace`     | Read a trace as a tree of segments.         |

### Azure Monitor

Use these tools to query Azure Monitor data.

Expand table

| Tool                         | Description                    |
|------------------------------|--------------------------------|
| `query_azure_log_analytics`  | Run KQL against Log Analytics. |
| `query_azure_resource_graph` | Query Azure Resource Graph.    |

### Elasticsearch

Use this tool to search Elasticsearch data sources.

Expand table

| Tool                  | Description                                                              |
|-----------------------|--------------------------------------------------------------------------|
| `query_elasticsearch` | Execute Lucene or Query DSL searches against Elasticsearch data sources. |

### InfluxDB

Use this tool to query InfluxDB data sources.

Expand table

| Tool             | Description                                                     | Access    |
|------------------|-----------------------------------------------------------------|-----------|
| `query_influxdb` | Execute InfluxQL or Flux queries against InfluxDB data sources. | **Query** |

### Alerting

Use these tools to view and manage alert rules, silences, and routing configuration.

Expand table

| Tool                      | Description                                                                                     | Access    |
|---------------------------|-------------------------------------------------------------------------------------------------|-----------|
| `alerting_manage_routing` | View alerting routing configuration, notification policies, contact points, and time intervals. | Read      |
| `alerting_rules_read`     | Read alert rules.                                                                               | Read      |
| `alerting_rules_write`    | Create and change alert rules.                                                                  | **Write** |
| `alerting_silences_read`  | Read silences.                                                                                  | Read      |
| `alerting_silences_write` | Create and change silences.                                                                     | **Write** |
| `alerting_routing_write`  | Change notification routing.                                                                    | **Write** |

### Annotations

Use these tools to view and create annotations on dashboards.

Expand table

| Tool                  | Description                                                       | Access    |
|-----------------------|-------------------------------------------------------------------|-----------|
| `get_annotations`     | Fetch annotations filtered by dashboard UID, time range, or tags. | Read      |
| `get_annotation_tags` | Get annotation tags with optional filtering.                      | Read      |
| `create_annotation`   | Create a new annotation on a dashboard or panel.                  | **Write** |
| `update_annotation`   | Update properties of an existing annotation.                      | **Write** |

### Incidents

Use these tools to view and manage incidents.

Expand table

| Tool                       | Description                                    | Access    |
|----------------------------|------------------------------------------------|-----------|
| `list_incidents`           | List incidents with optional status filtering. | Read      |
| `get_incident`             | Get full incident details by ID.               | Read      |
| `create_incident`          | Create a new incident.                         | **Write** |
| `add_activity_to_incident` | Add a note to an incident’s timeline.          | **Write** |

### OnCall

Use these tools to view on-call schedules, shifts, teams, and alert groups.

Expand table

| Tool                       | Description                                                              |
|----------------------------|--------------------------------------------------------------------------|
| `list_oncall_schedules`    | List OnCall schedules with optional team filtering.                      |
| `get_oncall_shift`         | Get detailed shift information.                                          |
| `get_current_oncall_users` | Get users currently on-call for a schedule.                              |
| `list_oncall_teams`        | List OnCall teams.                                                       |
| `list_oncall_users`        | List OnCall users with optional filtering.                               |
| `list_alert_groups`        | List alert groups with filtering by state, team, time range, and labels. |
| `get_alert_group`          | Get a specific alert group by ID.                                        |

### Assistant and context search

Use these tools to search indexed context and work with Grafana Assistant.

Expand table

| Tool                         | Description                                                                                  | Access    |
|------------------------------|----------------------------------------------------------------------------------------------|-----------|
| `assistant_search`           | Search indexed infrastructure, dashboards, incidents, alert rules, and past investigations.  | Read      |
| `search_context`             | Find business definitions and dashboard query context.                                       | Read      |
| `search_sql_tables`          | Discover indexed SQL tables.                                                                 | Read      |
| `read_grafanafs_file`        | Read a Knowledge Base file.                                                                  | Read      |
| `get_assistant_conversation` | Read an existing Assistant conversation.                                                     | Read      |
| `ask_assistant`              | Send a prompt to Grafana Assistant and get the full reply, including tool use and reasoning. | **Write** |

`assistant_search` replaces the older `describe_infrastructure` tool on the hosted server. `search_context`, `search_sql_tables`, and `read_grafanafs_file` don’t run SQL. `search_context` requires Analyst mode to be available on your stack. `ask_assistant` requires write access because Assistant can perform actions that change resources.

### Use Assistant investigations

Use these tools to list, create, and inspect Grafana Assistant Investigations.

Expand table

| Tool                          | Description                                                                | Access    |
|-------------------------------|----------------------------------------------------------------------------|-----------|
| `list_investigations`         | List Assistant investigations with optional filtering and pagination.      | Read      |
| `list_investigation_profiles` | List available Assistant investigation profiles.                           | Read      |
| `get_investigation`           | Get investigation details, lifecycle state, metadata, and report snapshot. | Read      |
| `list_investigation_evidence` | List evidence collected for an Assistant investigation.                    | Read      |
| `get_investigation_thread`    | Get the message thread for an Assistant investigation.                     | Read      |
| `create_investigation`        | Start a new Assistant investigation from an external AI agent.             | **Write** |
| `wait_for_investigation`      | Wait for an investigation to finish.                                       | Read      |
| `get_investigation_report`    | Read an investigation’s Markdown report.                                   | Read      |

Read access to investigations is subject to your investigation permissions.

### Other tools

Use these tools for additional Grafana tasks, including assertion summaries, panel rendering, and query examples.

Expand table

| Tool                 | Description                                | Access |
|----------------------|--------------------------------------------|--------|
| `get_assertions`     | Get assertion summary for an entity.       | Read   |
| `get_panel_image`    | Render a dashboard panel as a PNG image.   | Read   |
| `get_query_examples` | Get example queries for data source types. | Read   |

## Attach data sources and incidents as resources

The server exposes each data source you can access as an MCP resource at `grafana://datasources/<UID>`, and each active IRM incident at `grafana://irm/incidents/<ID>`, so you can tell your agent what to work on instead of having it search.

In clients that offer a resource picker, for example, Claude Code, type `@` and choose a data source or incident to attach its details to your prompt. Each data source entry shows the data source name and type, and marks your default data source. Each incident entry shows the incident title and severity. Other clients might instead let your agent list and read resources itself.

A data source resource contains the same details that `get_datasource` returns, including the type, URL, and settings. An incident resource contains the same details that `get_incident` returns, including the status, severity, labels, and custom fields. The picker lists active incidents, excluding drills, that started in the last 30 days, but your agent can read any incident by its URI, including resolved ones.

Resources follow the same access as the matching tool: if your connection can’t use `get_datasource` or `get_incident`, it doesn’t list or read that kind of resource.

## Use interactive charts and alert apps

In clients that support MCP Apps, ask your agent to use `render_grafana_app` to show a query result in an interactive Grafana App. It draws Prometheus queries as time series, heatmaps, bars, stats, or tables, shows Tempo traces, and charts queries on other data sources with Grafana visualizations.

`render_grafana_app` requires query or write access, because it can run any data source query. With read access, your agent can still run `query_prometheus`, but the results appear only as text.

Ask your agent to use `render_alert_status` to inspect a Grafana-managed alert rule’s status, instances, and history. With write access and the required Grafana permissions, you can silence the rule from the app, and remove its silence with **Unsilence**.

Use `render_alert_creation` to open a Prometheus alert draft. Review the expression, threshold, folder, and notification settings before you create the rule. Opening the draft doesn’t save an alert. Simulating or creating the rule requires write access and the corresponding Grafana permissions.

## Run hosted gcx commands

When no dedicated tool covers your task, use `run_gcx_command` to run the Grafana Cloud CLI against your connected stack. You don’t need to install gcx or log in separately. Hosted commands use your connection’s permissions.

This tool was previously named `exec_gcx`. Calls to the old name still work, but if your client allows or blocks tools by name, update those rules to `run_gcx_command`.

Ask your agent to discover commands before running them. For example, pass these arguments to `run_gcx_command` to list command areas:

JSON ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy

```json
{
  "args": ["help-tree", "--depth", "1", "-o", "text"]
}
```

Pass arguments without the `gcx` program name. Hosted gcx covers additional workflows, for example, SLO, IRM, Fleet Management, and Knowledge Graph. Prefer a dedicated MCP tool when one covers your task.

Hosted gcx runs in a sandbox. It can’t read your local files or run local setup commands. Commands that require separate Grafana Cloud credentials, for example, k6 and Synthetic Monitoring, aren’t supported through `run_gcx_command`. Data source queries through gcx require query or write access, and resource changes require write access. If `run_gcx_command` isn’t listed, it isn’t available for your connection.

Like the gcx CLI, hosted gcx sends Grafana Labs [usage statistics](https://grafana.com/docs/grafana-cloud/as-code/observability-as-code/grafana-cli/gcx/anonymous-usage-statistics/) for each command, for example, the command path and flag names, never flag values or arguments. All hosted commands report the same device ID, so the statistics don’t carry an identifier for your stack.

## Send feedback about Grafana Cloud MCP

Your agent can tell Grafana Labs when a tool is missing, broken, or confusing by calling `send_feedback`. Every connection can use it, whatever its access and tool areas.

The agent describes what it was trying to do and what went wrong, picks a kind and an impact, and can name the tool the feedback is about. Feedback is stored with your stack and user account, so ask your agent to leave out credentials, personal data, and query results.

## Next steps

- [Configure access](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/#configure-access)
- [Manage Assistant access with RBAC](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/privacy-and-security/rbac/)
- [Investigations](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/investigation/)
- [Grafana Assistant Workspace](https://grafana.com/docs/grafana-cloud/platform/grafana-assistant/platform/workspace/)
