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
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes |
Implementation Reference
- newrelic_mcp/server.py:316-327 (handler)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)
- newrelic_mcp/server.py:73-76 (helper)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)