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

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)

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