> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modulex.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Grafana Integration for AI Agents & Workflows

> Manage Grafana dashboards, alert rules, annotations, contact points, data sources, and folders, and monitor instance and data source health via the Grafana HTTP API.

{/* Self-hosted logo — build-time vendored from modulex.json / Iconify (see scripts/lib/logo.js). */}

<img src="https://mintcdn.com/modulexaillc/df8MOr-hXotYLTh5/logos/placeholder.svg?fit=max&auto=format&n=df8MOr-hXotYLTh5&q=85&s=a4046f9cd6d738c81259050e9833913c" alt="Grafana logo" width="72" height="72" data-path="logos/placeholder.svg" />

## Overview

Add **Grafana** to any ModuleX agent or workflow. Manage Grafana dashboards, alert rules, annotations, contact points, data sources, and folders, and monitor instance and data source health against the Grafana HTTP API of your own instance.

<Info>
  **Categories**: Monitoring & Observability · Monitoring · Data Analytics · **Auth**: Service Account Token · **Actions**: 25
</Info>

## Authentication

### Service Account Token

Authenticate with a Grafana service account token against your instance

<Steps>
  <Step title="Step 1">
    In Grafana, open Administration -> Users and access -> Service accounts
  </Step>

  <Step title="Step 2">
    Create a service account with the roles your workflow needs (e.g. Editor or Admin)
  </Step>

  <Step title="Step 3">
    Add a service account token and copy the generated 'glsa\_...' value
  </Step>

  <Step title="Step 4">
    Paste the token below and set your Grafana instance URL (e.g. [https://your-grafana.com](https://your-grafana.com))
  </Step>
</Steps>

#### Required Credentials

| Field                 | Description                                                                               | Required | Format                                           |
| --------------------- | ----------------------------------------------------------------------------------------- | -------- | ------------------------------------------------ |
| Service Account Token | Your Grafana service account token (starts with glsa\_)                                   | Yes      | `glsa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxx` |
| Grafana URL           | Your Grafana instance base URL, e.g. [https://your-grafana.com](https://your-grafana.com) | Yes      | `https://your-grafana.com`                       |

## Available Actions

<AccordionGroup>
  <Accordion title="list_dashboards — Search and list all dashboards.">
    ### Parameters

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    <ResponseField name="query" type="string">
      Search query to filter dashboards by title
    </ResponseField>

    <ResponseField name="tag" type="string">
      Filter by tag (comma-separated for multiple tags)
    </ResponseField>

    <ResponseField name="folder_uids" type="string">
      Filter by folder UIDs (comma-separated)
    </ResponseField>

    <ResponseField name="dashboard_uids" type="string">
      Filter by dashboard UIDs (comma-separated)
    </ResponseField>

    <ResponseField name="starred" type="boolean">
      Only return starred dashboards
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Maximum number of dashboards to return
    </ResponseField>

    <ResponseField name="page" type="integer">
      Page number for pagination (1-based)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "DashboardSearchResult": {
          "additionalProperties": false,
          "description": "A single dashboard search-result row from ``/api/search``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "uri": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uri"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "is_starred": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Starred"
            },
            "folder_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Id"
            },
            "folder_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Uid"
            },
            "folder_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Title"
            },
            "folder_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Url"
            }
          },
          "title": "DashboardSearchResult",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "dashboards": {
          "items": {
            "$ref": "#/$defs/DashboardSearchResult"
          },
          "title": "Dashboards",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListDashboardsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_dashboard — Get a dashboard by its UID.">
    ### Parameters

    <ResponseField name="dashboard_uid" type="string" required>
      The UID of the dashboard to retrieve
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "dashboard": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Dashboard"
        },
        "meta": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Meta"
        }
      },
      "required": [
        "success"
      ],
      "title": "GetDashboardOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_dashboard — Create a new dashboard.">
    ### Parameters

    <ResponseField name="title" type="string" required>
      The title of the new dashboard
    </ResponseField>

    <ResponseField name="folder_uid" type="string">
      UID of the folder to create the dashboard in
    </ResponseField>

    <ResponseField name="tags" type="string">
      Comma-separated list of tags
    </ResponseField>

    <ResponseField name="timezone" type="string">
      Dashboard timezone (e.g. browser, utc)
    </ResponseField>

    <ResponseField name="refresh" type="string">
      Auto-refresh interval (e.g. 5s, 1m, 5m)
    </ResponseField>

    <ResponseField name="panels" type="string">
      JSON array of panel configurations
    </ResponseField>

    <ResponseField name="overwrite" type="boolean">
      Overwrite an existing dashboard with the same title
    </ResponseField>

    <ResponseField name="message" type="string">
      Commit message for the dashboard version
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "uid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Uid"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Url"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        },
        "version": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Version"
        },
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Slug"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateDashboardOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_dashboard — Update an existing dashboard. Fetches the current dashboard and merges your changes.">
    ### Parameters

    <ResponseField name="dashboard_uid" type="string" required>
      The UID of the dashboard to update
    </ResponseField>

    <ResponseField name="title" type="string">
      New title for the dashboard
    </ResponseField>

    <ResponseField name="folder_uid" type="string">
      New folder UID to move the dashboard to
    </ResponseField>

    <ResponseField name="tags" type="string">
      Comma-separated list of new tags
    </ResponseField>

    <ResponseField name="timezone" type="string">
      Dashboard timezone (e.g. browser, utc)
    </ResponseField>

    <ResponseField name="refresh" type="string">
      Auto-refresh interval (e.g. 5s, 1m, 5m)
    </ResponseField>

    <ResponseField name="panels" type="string">
      JSON array of panel configurations
    </ResponseField>

    <ResponseField name="overwrite" type="boolean">
      Overwrite even on a version conflict
    </ResponseField>

    <ResponseField name="message" type="string">
      Commit message for this version
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "uid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Uid"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Url"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        },
        "version": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Version"
        },
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Slug"
        }
      },
      "required": [
        "success"
      ],
      "title": "UpdateDashboardOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_dashboard — Delete a dashboard by its UID.">
    ### Parameters

    <ResponseField name="dashboard_uid" type="string" required>
      The UID of the dashboard to delete
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Title"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        }
      },
      "required": [
        "success"
      ],
      "title": "DeleteDashboardOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_alert_rules — List all alert rules in the Grafana instance.">
    ### Parameters

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "AlertRule": {
          "additionalProperties": false,
          "description": "A provisioned alert rule (shared by list/get/create/update).",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "condition": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Condition"
            },
            "data": {
              "items": {},
              "title": "Data",
              "type": "array"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "no_data_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "No Data State"
            },
            "exec_err_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Exec Err State"
            },
            "for_": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "For"
            },
            "keep_firing_for": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Keep Firing For"
            },
            "missing_series_evals_to_resolve": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Missing Series Evals To Resolve"
            },
            "annotations": {
              "additionalProperties": true,
              "title": "Annotations",
              "type": "object"
            },
            "labels": {
              "additionalProperties": true,
              "title": "Labels",
              "type": "object"
            },
            "is_paused": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Paused"
            },
            "folder_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Uid"
            },
            "rule_group": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Rule Group"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "provenance": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Provenance"
            },
            "notification_settings": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Notification Settings"
            },
            "record": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Record"
            }
          },
          "title": "AlertRule",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "rules": {
          "items": {
            "$ref": "#/$defs/AlertRule"
          },
          "title": "Rules",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListAlertRulesOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_alert_rule — Get a specific alert rule by its UID.">
    ### Parameters

    <ResponseField name="alert_rule_uid" type="string" required>
      The UID of the alert rule to retrieve
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "AlertRule": {
          "additionalProperties": false,
          "description": "A provisioned alert rule (shared by list/get/create/update).",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "condition": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Condition"
            },
            "data": {
              "items": {},
              "title": "Data",
              "type": "array"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "no_data_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "No Data State"
            },
            "exec_err_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Exec Err State"
            },
            "for_": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "For"
            },
            "keep_firing_for": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Keep Firing For"
            },
            "missing_series_evals_to_resolve": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Missing Series Evals To Resolve"
            },
            "annotations": {
              "additionalProperties": true,
              "title": "Annotations",
              "type": "object"
            },
            "labels": {
              "additionalProperties": true,
              "title": "Labels",
              "type": "object"
            },
            "is_paused": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Paused"
            },
            "folder_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Uid"
            },
            "rule_group": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Rule Group"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "provenance": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Provenance"
            },
            "notification_settings": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Notification Settings"
            },
            "record": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Record"
            }
          },
          "title": "AlertRule",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "rule": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertRule"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "GetAlertRuleOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_alert_rule — Create a new alert rule.">
    ### Parameters

    <ResponseField name="title" type="string" required>
      The title of the alert rule
    </ResponseField>

    <ResponseField name="folder_uid" type="string" required>
      UID of the folder to create the alert in
    </ResponseField>

    <ResponseField name="rule_group" type="string" required>
      The name of the rule group
    </ResponseField>

    <ResponseField name="data" type="string" required>
      JSON array of query/expression data objects
    </ResponseField>

    <ResponseField name="condition" type="string">
      RefId of the query/expression used as the alert condition (omit for recording rules)
    </ResponseField>

    <ResponseField name="for_duration" type="string">
      Duration to wait before firing (e.g. 5m, 1h)
    </ResponseField>

    <ResponseField name="no_data_state" type="string">
      State when no data is returned (NoData, Alerting, OK)
    </ResponseField>

    <ResponseField name="exec_err_state" type="string">
      State on execution error (Error, Alerting, OK)
    </ResponseField>

    <ResponseField name="annotations" type="string">
      JSON object of annotations
    </ResponseField>

    <ResponseField name="labels" type="string">
      JSON object of labels
    </ResponseField>

    <ResponseField name="uid" type="string">
      Optional custom UID for the alert rule
    </ResponseField>

    <ResponseField name="is_paused" type="boolean">
      Whether the rule is paused on creation
    </ResponseField>

    <ResponseField name="keep_firing_for" type="string">
      Duration to keep firing after the condition stops
    </ResponseField>

    <ResponseField name="missing_series_evals_to_resolve" type="integer">
      Missing series evaluations before resolving
    </ResponseField>

    <ResponseField name="notification_settings" type="string">
      JSON object of per-rule notification settings
    </ResponseField>

    <ResponseField name="record" type="string">
      JSON object configuring this as a recording rule
    </ResponseField>

    <ResponseField name="disable_provenance" type="boolean">
      Set the X-Disable-Provenance header so the rule stays UI-editable
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "AlertRule": {
          "additionalProperties": false,
          "description": "A provisioned alert rule (shared by list/get/create/update).",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "condition": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Condition"
            },
            "data": {
              "items": {},
              "title": "Data",
              "type": "array"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "no_data_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "No Data State"
            },
            "exec_err_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Exec Err State"
            },
            "for_": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "For"
            },
            "keep_firing_for": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Keep Firing For"
            },
            "missing_series_evals_to_resolve": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Missing Series Evals To Resolve"
            },
            "annotations": {
              "additionalProperties": true,
              "title": "Annotations",
              "type": "object"
            },
            "labels": {
              "additionalProperties": true,
              "title": "Labels",
              "type": "object"
            },
            "is_paused": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Paused"
            },
            "folder_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Uid"
            },
            "rule_group": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Rule Group"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "provenance": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Provenance"
            },
            "notification_settings": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Notification Settings"
            },
            "record": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Record"
            }
          },
          "title": "AlertRule",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "rule": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertRule"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateAlertRuleOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_alert_rule — Update an existing alert rule. Fetches the current rule and merges your changes.">
    ### Parameters

    <ResponseField name="alert_rule_uid" type="string" required>
      The UID of the alert rule to update
    </ResponseField>

    <ResponseField name="title" type="string">
      New title for the alert rule
    </ResponseField>

    <ResponseField name="folder_uid" type="string">
      New folder UID for the rule
    </ResponseField>

    <ResponseField name="rule_group" type="string">
      New rule group name
    </ResponseField>

    <ResponseField name="condition" type="string">
      New condition refId
    </ResponseField>

    <ResponseField name="data" type="string">
      New JSON array of query/expression data objects
    </ResponseField>

    <ResponseField name="for_duration" type="string">
      Duration to wait before firing (e.g. 5m, 1h)
    </ResponseField>

    <ResponseField name="no_data_state" type="string">
      State when no data is returned (NoData, Alerting, OK)
    </ResponseField>

    <ResponseField name="exec_err_state" type="string">
      State on execution error (Error, Alerting, OK)
    </ResponseField>

    <ResponseField name="annotations" type="string">
      JSON object of annotations
    </ResponseField>

    <ResponseField name="labels" type="string">
      JSON object of labels
    </ResponseField>

    <ResponseField name="is_paused" type="boolean">
      Whether the rule is paused
    </ResponseField>

    <ResponseField name="keep_firing_for" type="string">
      Duration to keep firing after the condition stops
    </ResponseField>

    <ResponseField name="missing_series_evals_to_resolve" type="integer">
      Missing series evaluations before resolving
    </ResponseField>

    <ResponseField name="notification_settings" type="string">
      JSON object of per-rule notification settings
    </ResponseField>

    <ResponseField name="record" type="string">
      JSON object configuring this as a recording rule
    </ResponseField>

    <ResponseField name="disable_provenance" type="boolean">
      Set the X-Disable-Provenance header so the rule stays UI-editable
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "AlertRule": {
          "additionalProperties": false,
          "description": "A provisioned alert rule (shared by list/get/create/update).",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "condition": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Condition"
            },
            "data": {
              "items": {},
              "title": "Data",
              "type": "array"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "no_data_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "No Data State"
            },
            "exec_err_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Exec Err State"
            },
            "for_": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "For"
            },
            "keep_firing_for": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Keep Firing For"
            },
            "missing_series_evals_to_resolve": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Missing Series Evals To Resolve"
            },
            "annotations": {
              "additionalProperties": true,
              "title": "Annotations",
              "type": "object"
            },
            "labels": {
              "additionalProperties": true,
              "title": "Labels",
              "type": "object"
            },
            "is_paused": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Paused"
            },
            "folder_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Folder Uid"
            },
            "rule_group": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Rule Group"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "provenance": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Provenance"
            },
            "notification_settings": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Notification Settings"
            },
            "record": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Record"
            }
          },
          "title": "AlertRule",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "rule": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertRule"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "UpdateAlertRuleOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_alert_rule — Delete an alert rule by its UID.">
    ### Parameters

    <ResponseField name="alert_rule_uid" type="string" required>
      The UID of the alert rule to delete
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "DeleteAlertRuleOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_contact_points — List all alert notification contact points.">
    ### Parameters

    <ResponseField name="name" type="string">
      Filter contact points by exact name match
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ContactPoint": {
          "additionalProperties": false,
          "description": "A single notification contact point.",
          "properties": {
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type"
            },
            "settings": {
              "additionalProperties": true,
              "title": "Settings",
              "type": "object"
            },
            "disable_resolve_message": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Disable Resolve Message"
            },
            "provenance": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Provenance"
            }
          },
          "title": "ContactPoint",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "contact_points": {
          "items": {
            "$ref": "#/$defs/ContactPoint"
          },
          "title": "Contact Points",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListContactPointsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_contact_point — Create a notification contact point (e.g. Slack, email, PagerDuty).">
    ### Parameters

    <ResponseField name="name" type="string" required>
      Name of the contact point
    </ResponseField>

    <ResponseField name="type" type="string" required>
      Receiver type (e.g. slack, email, pagerduty, webhook, teams, opsgenie, discord)
    </ResponseField>

    <ResponseField name="settings" type="string" required>
      JSON object of type-specific receiver settings
    </ResponseField>

    <ResponseField name="disable_resolve_message" type="boolean">
      Do not send a notification when the alert resolves
    </ResponseField>

    <ResponseField name="disable_provenance" type="boolean">
      Set the X-Disable-Provenance header so the contact point stays UI-editable
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "uid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Uid"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Type"
        },
        "settings": {
          "additionalProperties": true,
          "title": "Settings",
          "type": "object"
        },
        "disable_resolve_message": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Disable Resolve Message"
        },
        "provenance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Provenance"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateContactPointOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_annotation — Create an annotation on a dashboard or as a global annotation.">
    ### Parameters

    <ResponseField name="text" type="string" required>
      The text content of the annotation
    </ResponseField>

    <ResponseField name="tags" type="string">
      Comma-separated list of tags
    </ResponseField>

    <ResponseField name="dashboard_uid" type="string">
      UID of the dashboard to annotate; omit for a global annotation
    </ResponseField>

    <ResponseField name="panel_id" type="integer">
      ID of the panel to attach the annotation to
    </ResponseField>

    <ResponseField name="time" type="integer">
      Start time in epoch milliseconds (defaults to now)
    </ResponseField>

    <ResponseField name="time_end" type="integer">
      End time in epoch milliseconds for range annotations
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateAnnotationOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_annotations — Query annotations by time range, dashboard, or tags.">
    ### Parameters

    <ResponseField name="from_" type="integer">
      Start time in epoch milliseconds
    </ResponseField>

    <ResponseField name="to" type="integer">
      End time in epoch milliseconds
    </ResponseField>

    <ResponseField name="dashboard_uid" type="string">
      Dashboard UID to query annotations from
    </ResponseField>

    <ResponseField name="dashboard_id" type="integer">
      Legacy numeric dashboard ID filter
    </ResponseField>

    <ResponseField name="panel_id" type="integer">
      Filter by panel ID
    </ResponseField>

    <ResponseField name="alert_id" type="integer">
      Filter by alert ID
    </ResponseField>

    <ResponseField name="user_id" type="integer">
      Filter by ID of the creating user
    </ResponseField>

    <ResponseField name="tags" type="string">
      Comma-separated list of tags to filter by
    </ResponseField>

    <ResponseField name="type" type="string">
      Filter by type (alert or annotation)
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Maximum number of annotations to return
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "Annotation": {
          "additionalProperties": false,
          "description": "A single annotation row from ``/api/annotations``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "alert_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Alert Id"
            },
            "dashboard_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Dashboard Id"
            },
            "dashboard_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Dashboard Uid"
            },
            "panel_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Panel Id"
            },
            "user_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "User Id"
            },
            "user_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "User Name"
            },
            "new_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "New State"
            },
            "prev_state": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Prev State"
            },
            "time": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Time"
            },
            "time_end": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Time End"
            },
            "text": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Text"
            },
            "metric": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Metric"
            },
            "tags": {
              "items": {
                "type": "string"
              },
              "title": "Tags",
              "type": "array"
            },
            "data": {
              "additionalProperties": true,
              "title": "Data",
              "type": "object"
            }
          },
          "title": "Annotation",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "annotations": {
          "items": {
            "$ref": "#/$defs/Annotation"
          },
          "title": "Annotations",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListAnnotationsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_annotation — Update an existing annotation.">
    ### Parameters

    <ResponseField name="annotation_id" type="integer" required>
      The ID of the annotation to update
    </ResponseField>

    <ResponseField name="text" type="string">
      New text content for the annotation
    </ResponseField>

    <ResponseField name="tags" type="string">
      Comma-separated list of new tags
    </ResponseField>

    <ResponseField name="time" type="integer">
      New start time in epoch milliseconds
    </ResponseField>

    <ResponseField name="time_end" type="integer">
      New end time in epoch milliseconds
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "UpdateAnnotationOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_annotation — Delete an annotation by its ID.">
    ### Parameters

    <ResponseField name="annotation_id" type="integer" required>
      The ID of the annotation to delete
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "DeleteAnnotationOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_data_sources — List all data sources configured in Grafana.">
    ### Parameters

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "DataSource": {
          "additionalProperties": false,
          "description": "A single data source from ``/api/datasources``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type"
            },
            "type_logo_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type Logo Url"
            },
            "access": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Access"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "user": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "User"
            },
            "database": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Database"
            },
            "basic_auth": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Basic Auth"
            },
            "basic_auth_user": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Basic Auth User"
            },
            "with_credentials": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "With Credentials"
            },
            "is_default": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Default"
            },
            "json_data": {
              "additionalProperties": true,
              "title": "Json Data",
              "type": "object"
            },
            "secure_json_fields": {
              "additionalProperties": true,
              "title": "Secure Json Fields",
              "type": "object"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            },
            "read_only": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Read Only"
            }
          },
          "title": "DataSource",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "data_sources": {
          "items": {
            "$ref": "#/$defs/DataSource"
          },
          "title": "Data Sources",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListDataSourcesOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_data_source — Get a data source by its ID or UID.">
    ### Parameters

    <ResponseField name="data_source_id" type="string" required>
      The ID or UID of the data source to retrieve
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "DataSource": {
          "additionalProperties": false,
          "description": "A single data source from ``/api/datasources``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "org_id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Org Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type"
            },
            "type_logo_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type Logo Url"
            },
            "access": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Access"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "user": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "User"
            },
            "database": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Database"
            },
            "basic_auth": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Basic Auth"
            },
            "basic_auth_user": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Basic Auth User"
            },
            "with_credentials": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "With Credentials"
            },
            "is_default": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Default"
            },
            "json_data": {
              "additionalProperties": true,
              "title": "Json Data",
              "type": "object"
            },
            "secure_json_fields": {
              "additionalProperties": true,
              "title": "Secure Json Fields",
              "type": "object"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            },
            "read_only": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Read Only"
            }
          },
          "title": "DataSource",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "data_source": {
          "anyOf": [
            {
              "$ref": "#/$defs/DataSource"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "GetDataSourceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="check_data_source_health — Test connectivity to a data source by its UID.">
    ### Parameters

    <ResponseField name="data_source_uid" type="string" required>
      The UID of the data source to health-check
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "CheckDataSourceHealthOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_folders — List all folders in Grafana.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Maximum number of folders to return
    </ResponseField>

    <ResponseField name="page" type="integer">
      Page number for pagination
    </ResponseField>

    <ResponseField name="parent_uid" type="string">
      List children of this folder UID
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "Folder": {
          "additionalProperties": false,
          "description": "A single folder from ``/api/folders``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "parent_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Parent Uid"
            },
            "parents": {
              "items": {
                "$ref": "#/$defs/FolderParent"
              },
              "title": "Parents",
              "type": "array"
            },
            "has_acl": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Acl"
            },
            "can_save": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Save"
            },
            "can_edit": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Edit"
            },
            "can_admin": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Admin"
            },
            "created_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created By"
            },
            "created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created"
            },
            "updated_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated By"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            }
          },
          "title": "Folder",
          "type": "object"
        },
        "FolderParent": {
          "additionalProperties": false,
          "description": "An ancestor folder entry (nested folders only).",
          "properties": {
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            }
          },
          "title": "FolderParent",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "folders": {
          "items": {
            "$ref": "#/$defs/Folder"
          },
          "title": "Folders",
          "type": "array"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListFoldersOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_folder — Create a new folder in Grafana.">
    ### Parameters

    <ResponseField name="title" type="string" required>
      The title of the new folder
    </ResponseField>

    <ResponseField name="uid" type="string">
      Optional UID for the folder
    </ResponseField>

    <ResponseField name="parent_uid" type="string">
      Parent folder UID for nested folders
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "Folder": {
          "additionalProperties": false,
          "description": "A single folder from ``/api/folders``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "parent_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Parent Uid"
            },
            "parents": {
              "items": {
                "$ref": "#/$defs/FolderParent"
              },
              "title": "Parents",
              "type": "array"
            },
            "has_acl": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Acl"
            },
            "can_save": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Save"
            },
            "can_edit": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Edit"
            },
            "can_admin": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Admin"
            },
            "created_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created By"
            },
            "created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created"
            },
            "updated_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated By"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            }
          },
          "title": "Folder",
          "type": "object"
        },
        "FolderParent": {
          "additionalProperties": false,
          "description": "An ancestor folder entry (nested folders only).",
          "properties": {
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            }
          },
          "title": "FolderParent",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "folder": {
          "anyOf": [
            {
              "$ref": "#/$defs/Folder"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateFolderOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_folder — Get a folder by its UID.">
    ### Parameters

    <ResponseField name="folder_uid" type="string" required>
      The UID of the folder to retrieve
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "Folder": {
          "additionalProperties": false,
          "description": "A single folder from ``/api/folders``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "parent_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Parent Uid"
            },
            "parents": {
              "items": {
                "$ref": "#/$defs/FolderParent"
              },
              "title": "Parents",
              "type": "array"
            },
            "has_acl": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Acl"
            },
            "can_save": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Save"
            },
            "can_edit": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Edit"
            },
            "can_admin": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Admin"
            },
            "created_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created By"
            },
            "created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created"
            },
            "updated_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated By"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            }
          },
          "title": "Folder",
          "type": "object"
        },
        "FolderParent": {
          "additionalProperties": false,
          "description": "An ancestor folder entry (nested folders only).",
          "properties": {
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            }
          },
          "title": "FolderParent",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "folder": {
          "anyOf": [
            {
              "$ref": "#/$defs/Folder"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "GetFolderOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_folder — Update (rename) a folder. Fetches the current folder and merges your changes.">
    ### Parameters

    <ResponseField name="folder_uid" type="string" required>
      The UID of the folder to update
    </ResponseField>

    <ResponseField name="title" type="string" required>
      New title for the folder
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "Folder": {
          "additionalProperties": false,
          "description": "A single folder from ``/api/folders``.",
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            },
            "parent_uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Parent Uid"
            },
            "parents": {
              "items": {
                "$ref": "#/$defs/FolderParent"
              },
              "title": "Parents",
              "type": "array"
            },
            "has_acl": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Acl"
            },
            "can_save": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Save"
            },
            "can_edit": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Edit"
            },
            "can_admin": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Can Admin"
            },
            "created_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created By"
            },
            "created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created"
            },
            "updated_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated By"
            },
            "updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Updated"
            },
            "version": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Version"
            }
          },
          "title": "Folder",
          "type": "object"
        },
        "FolderParent": {
          "additionalProperties": false,
          "description": "An ancestor folder entry (nested folders only).",
          "properties": {
            "uid": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Uid"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Url"
            }
          },
          "title": "FolderParent",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "folder": {
          "anyOf": [
            {
              "$ref": "#/$defs/Folder"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "UpdateFolderOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_folder — Delete a folder by its UID.">
    ### Parameters

    <ResponseField name="folder_uid" type="string" required>
      The UID of the folder to delete
    </ResponseField>

    <ResponseField name="force_delete_rules" type="boolean">
      Delete any alert rules stored in the folder along with it
    </ResponseField>

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "uid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Uid"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "DeleteFolderOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_health — Check the health of the Grafana instance (version, database status).">
    ### Parameters

    <ResponseField name="organization_id" type="string">
      Organization ID for multi-org Grafana instances (e.g. 1, 2). Sent as the X-Grafana-Org-Id header when set.
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "commit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Commit"
        },
        "database": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Database"
        },
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Version"
        }
      },
      "required": [
        "success"
      ],
      "title": "GetHealthOutput",
      "type": "object"
    }
    ```
  </Accordion>
</AccordionGroup>

## Limits & Quotas

* **Rate limits** are configured per Grafana instance; self-hosted
  instances are unbounded by default, while Grafana Cloud applies tier
  limits.
* **Update semantics**: `update_dashboard`, `update_alert_rule`, and
  `update_folder` first `GET` the current resource, merge your changes,
  and write the full body back (Grafana's update endpoints require the
  complete resource and a version for conflict detection).
* **Error model**: non-2xx responses and timeouts are caught and
  returned as `success=False` + `error` rather than raising. Plan for
  retries on the agent side based on the error string.

## Related integrations

<CardGroup cols={3}>
  <Card title="New Relic" href="/integrations/tools/new-relic" />

  <Card title="Sentry" href="/integrations/tools/sentry" />

  <Card title="CrowdStrike" href="/integrations/tools/crowdstrike" />
</CardGroup>

## Links

* [Grafana](https://grafana.com)
