get_dashboard
Retrieve detailed information for a specific dashboard in New Relic, enabling users to access and analyze monitoring data through programmatic API calls.
Instructions
Get details for a specific dashboard
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guid | Yes |
Implementation Reference
- newrelic_mcp/server.py:442-453 (handler)The MCP tool handler for 'get_dashboard', decorated with @mcp.tool() for registration, which calls the NewRelicClient's get_dashboard method and serializes the result to JSON.@mcp.tool() async def get_dashboard(guid: str) -> str: """Get details for a specific dashboard""" if not client: return json.dumps({"error": "New Relic client not initialized"}) try: result = await client.get_dashboard(guid) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- newrelic_mcp/server.py:213-246 (helper)The NewRelicClient method implementing the core logic to fetch dashboard details via NerdGraph GraphQL query.async def get_dashboard(self, guid: str) -> Dict[str, Any]: """Get details for a specific dashboard""" query = """ query($guid: EntityGuid!) { actor { entity(guid: $guid) { ... on DashboardEntity { guid name description createdAt updatedAt permissions pages { guid name widgets { id title visualization { id } configuration } } } } } } """ variables = {"guid": guid} return await self.nerdgraph_query(query, variables)