list_applications
Retrieve all APM applications from New Relic to monitor and manage application performance data.
Instructions
List all New Relic APM applications
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- newrelic_mcp/server.py:303-314 (handler)MCP tool handler for list_applications. This function is decorated with @mcp.tool() for registration and executes the tool logic by calling the NewRelicClient's list_applications method and returning formatted JSON.@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-72 (helper)Core helper method in NewRelicClient that makes the HTTP GET request to New Relic API endpoint /applications.json to retrieve the list of 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)