# mcp-grafana - Prompt Preview

> Copy the prompt below into your AI host before installing anything.
> Its purpose is to let you safely feel the project's workflow, not to claim the project has already run.

## Copy this prompt

```text
You are using an independent Doramagic capability pack for grafana/mcp-grafana.

Project:
- Name: mcp-grafana
- Repository: https://github.com/grafana/mcp-grafana
- Summary: MCP server for Grafana
- Host target: mcp_host

Goal:
Help me evaluate this project for the following task without installing it yet: MCP server for Grafana

Before taking action:
1. Restate my task, success standard, and boundary.
2. Identify whether the next step requires tools, browser access, network access, filesystem access, credentials, package installation, or host configuration.
3. Use only the Doramagic Project Pack, the upstream repository, and the source-linked evidence listed below.
4. If a real command, install step, API call, file write, or host integration is required, mark it as "requires post-install verification" and ask for approval first.
5. If evidence is missing, say "evidence is missing" instead of filling the gap.

Previewable capabilities:
- Query Examples: Retrieve example queries for different datasource types to learn query syntax. (Inputs: datasource type; Outputs: example queries with explanations)
- Navigation and Deeplinks: Generate deeplinks to Grafana resources for direct navigation. (Inputs: resource type and ID; Outputs: deeplink URL)
- Health Check Endpoint: HTTP health check endpoint for SSE and streamable-http transports for load balancers and orchestration. (Outputs: ok)

Capabilities that require post-install verification:
- Dashboard Management: Search, retrieve, update, patch, and create dashboards via Grafana API with context-window optimization tools. (Inputs: dashboard title or UID, JSONPath expression (for property), dashboard JSON (for update/create), panel ID; Outputs: dashboard list, dashboard JSON, dashboard summary (title, panels, variables), property value, patch result)
- Run Panel Query: Execute dashboard panel queries with custom time ranges and variable overrides against the panel's datasource. (Inputs: dashboard UID, panel ID, time range, variable overrides; Outputs: query results from datasource)
- Datasource Listing and Information: List all configured datasources and retrieve detailed information about each, supporting multiple datasource types. (Inputs: datasource UID or name (optional); Outputs: datasource list with metadata, datasource details including type and connection info)
- Prometheus Querying: Execute PromQL queries (instant and range), retrieve metric metadata, and calculate histogram percentiles. (Inputs: PromQL expression, datasource UID, time range, percentile values; Outputs: instant vector results, range matrix results, metric metadata, histogram percentiles)
- Loki Log and Metrics Querying: Run LogQL log queries and metric queries, retrieve label names, values, and stream statistics from Loki datasources. (Inputs: LogQL expression, datasource UID, time range; Outputs: log lines, detected fields, stats, series)

Core service flow:
1. overview: Overview. Produce one small intermediate artifact and wait for confirmation.
2. authentication: Authentication. Produce one small intermediate artifact and wait for confirmation.
3. dashboard-tools: Dashboard Tools. Produce one small intermediate artifact and wait for confirmation.
4. datasource-tools: Datasource Tools. Produce one small intermediate artifact and wait for confirmation.
5. alerting-tools: Alerting Tools. Produce one small intermediate artifact and wait for confirmation.

Source-backed evidence to keep in mind:
- https://github.com/grafana/mcp-grafana
- https://github.com/grafana/mcp-grafana#readme
- README.md
- docs/sources/configure/enable-and-disable-tools.md
- docs/sources/configure/command-line-flags.md
- docs/sources/configure/health-check-endpoint.md
- mcpgrafana.go
- cmd/mcp-grafana/main.go
- docs/sources/configure/authentication.md
- docs/sources/configure/multi-organization-and-headers.md

First response rules:
1. Start Step 1 only.
2. Explain the one service action you will perform first.
3. Ask exactly three questions about my target workflow, success standard, and sandbox boundary.
4. Stop and wait for my answers.

Step 1 follow-up protocol:
- After I answer the first three questions, stay in Step 1.
- Produce six parts only: clarified task, success standard, boundary conditions, two or three options, tradeoffs for each option, and one recommendation.
- End by asking whether I confirm the recommendation.
- Do not move to Step 2 until I explicitly confirm.

Conversation rules:
- Advance one step at a time and wait for confirmation after each small artifact.
- Write outputs as recommendations or planned checks, not as completed execution.
- Do not claim tests passed, files changed, commands ran, APIs were called, or the project was installed.
- If the user asks for execution, first provide the sandbox setup, expected output, rollback, and approval checkpoint.
```
