Skip to main content
Glama
piekstra

New Relic MCP Server

by piekstra

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
NameRequiredDescriptionDefault
guidYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • 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)
  • 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)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states 'Get details' which implies a read-only operation, but doesn't disclose behavioral traits like authentication requirements, rate limits, error conditions, or what 'details' includes. The description is minimal and lacks necessary context for safe invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with zero wasted words. It's appropriately sized for a simple tool and front-loads the core purpose without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter) and the presence of an output schema (which handles return values), the description is somewhat complete but lacks key context. Without annotations, it should explain more about the operation's behavior and parameter usage to be fully helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It mentions 'specific dashboard' which hints at the 'guid' parameter's purpose, but doesn't explain what a GUID is, its format, or where to obtain it. The description adds minimal meaning beyond the schema's basic structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('dashboard'), specifying it's for a 'specific dashboard' rather than listing all dashboards. However, it doesn't explicitly distinguish from sibling 'list_dashboards' beyond the singular vs. plural wording, which is implicit but not explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'list_dashboards' or other get_* tools. It mentions 'specific dashboard' but doesn't clarify prerequisites (e.g., needing a dashboard GUID) or contextual usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/newrelic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server