Skip to main content
Glama
piekstra

New Relic MCP Server

by piekstra

get_application

Retrieve detailed monitoring data for a specific New Relic application to analyze performance metrics and troubleshoot issues.

Instructions

Get details for a specific New Relic application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler for 'get_application'. Decorated with @mcp.tool() which registers the tool. Executes the logic by calling the NewRelicClient.get_application method, handles errors, and returns JSON-formatted response.
    @mcp.tool()
    async def get_application(app_id: str) -> str:
        """Get details for a specific New Relic application"""
        if not client:
            return json.dumps({"error": "New Relic client not initialized"})
    
        try:
            result = await client.get_application(app_id)
            return json.dumps(result, indent=2)
        except Exception as e:
            return json.dumps({"error": str(e)}, indent=2)
  • Core helper method in NewRelicClient class that constructs the New Relic API URL and makes the HTTP GET request to fetch application details.
    async def get_application(self, app_id: str) -> Dict[str, Any]:
        """Get details for a specific application"""
        url = f"{self.base_url}/applications/{app_id}.json"
        return await self._make_request("GET", url)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves details but doesn't specify whether this is a read-only operation, what authentication is required, potential rate limits, error conditions, or the format of returned data. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior and constraints.

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, efficient sentence that front-loads the core purpose without unnecessary words. It directly communicates the tool's function, making it easy to parse quickly. Every part of the sentence earns its place by specifying the action and target resource.

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

Completeness4/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, the description is reasonably complete for basic understanding. The output schema likely covers return values, reducing the need for detailed behavioral explanation. However, with no annotations and minimal parameter semantics, it could benefit from more context on usage and constraints to fully guide an agent.

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?

The input schema has 1 parameter with 0% description coverage, so the schema provides no semantic information. The description mentions 'specific New Relic application' but doesn't clarify what 'app_id' represents (e.g., numeric ID, name, GUID) or where to find it. It adds minimal value beyond implying a single identifier is needed, insufficient to fully compensate for the schema's lack of descriptions.

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 details') and resource ('specific New Relic application'), making the purpose immediately understandable. It distinguishes from siblings like 'list_applications' by specifying retrieval of details for a single application rather than listing multiple. However, it doesn't explicitly mention what details are included or the scope of information returned.

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

Usage Guidelines3/5

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

The description implies usage when details for a specific application are needed, contrasting with 'list_applications' for multiple applications. However, it doesn't provide explicit guidance on when to use this versus other detail-retrieval tools like 'get_dashboard' or 'get_server', nor does it mention prerequisites like authentication or rate limits. The context is clear but lacks comprehensive alternatives or exclusions.

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