get_dashboard_by_uid
Retrieve a complete Grafana dashboard with all panels, variables, and settings using the dashboard's unique identifier (UID).
Instructions
Retrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>"
},
"name": "get_dashboard_by_uid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The UID of the dashboard |
Implementation Reference
- src/clients/grafana-client.ts:65-72 (helper)GrafanaClient helper method that performs the actual API call to retrieve the dashboard by UID from Grafana.
async getDashboardByUid(uid: string): Promise<Dashboard> { try { const response = await this.client.get(`/api/dashboards/uid/${uid}`); return response.data.dashboard; } catch (error) { this.handleError(error); } }