get_dashboard
Retrieve dashboard definitions by ID from OpenObserve Community Edition to access and analyze monitoring data visualizations.
Instructions
Get a dashboard definition by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes | ||
| include_raw | No |
Implementation Reference
- openobserve_mcp/server.py:207-217 (handler)The get_dashboard tool registration and handler implementation. It uses the OpenObserveClient to fetch the dashboard and then transforms the output using build_get_dashboard_result.
@server.tool() def get_dashboard(dashboard_id: str, include_raw: bool = False) -> dict[str, Any]: """Get a dashboard definition by id.""" client = client_provider.get() raw = client.get_dashboard(dashboard_id=dashboard_id) return build_get_dashboard_result( org_id=client.resolve_org_id(), dashboard_id=dashboard_id, raw=raw, include_raw=include_raw, )