list_applications
Retrieve all APM applications from New Relic to monitor application performance and identify issues across your software portfolio.
Instructions
List all New Relic APM applications
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- newrelic_mcp/server.py:303-314 (handler)MCP tool handler function for 'list_applications'. Decorated with @mcp.tool(), calls the NewRelicClient.list_applications() method, handles errors, and returns JSON-formatted result.@mcp.tool() async def list_applications() -> str: """List all New Relic APM applications""" if not client: return json.dumps({"error": "New Relic client not initialized"}) try: result = await client.list_applications() return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- newrelic_mcp/server.py:68-71 (helper)Helper method in NewRelicClient class that makes a GET request to the New Relic API to list applications.async def list_applications(self) -> Dict[str, Any]: """List all New Relic APM applications""" url = f"{self.base_url}/applications.json" return await self._make_request("GET", url)
- newrelic_mcp/server.py:303-303 (registration)Registration of the 'list_applications' tool via FastMCP decorator @mcp.tool().@mcp.tool()