list_users
Retrieve all users within a New Relic account to manage access and permissions for monitoring and observability data.
Instructions
List all users in the New Relic account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- newrelic_mcp/server.py:619-629 (handler)MCP tool handler for 'list_users' that initializes check, calls NewRelicClient.list_users(), and returns JSON-formatted result or error.@mcp.tool() async def list_users() -> str: """List all users in the New Relic account""" if not client: return json.dumps({"error": "New Relic client not initialized"}) try: result = await client.list_users() return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- newrelic_mcp/server.py:126-129 (helper)NewRelicClient helper method that performs the actual HTTP GET request to New Relic API endpoint /users.json to list users.async def list_users(self) -> Dict[str, Any]: """List all users in the account""" url = f"{self.base_url}/users.json" return await self._make_request("GET", url)