get_synthetic_monitor
Retrieve detailed information about a specific synthetic monitor to analyze performance, track uptime, and troubleshoot issues in your New Relic environment.
Instructions
Get details for a specific synthetic monitor
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor_id | Yes |
Implementation Reference
- newrelic_mcp/server.py:416-427 (handler)MCP tool handler function that executes the get_synthetic_monitor tool by calling the NewRelicClient method and returning JSON result.@mcp.tool() async def get_synthetic_monitor(monitor_id: str) -> str: """Get details for a specific synthetic monitor""" if not client: return json.dumps({"error": "New Relic client not initialized"}) try: result = await client.get_synthetic_monitor(monitor_id) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- newrelic_mcp/server.py:120-124 (helper)NewRelicClient helper method that performs the HTTP GET request to the New Relic Synthetics API to retrieve details for the specified synthetic monitor.async def get_synthetic_monitor(self, monitor_id: str) -> Dict[str, Any]: """Get details for a specific synthetic monitor""" return await self._make_request( "GET", f"{self.synthetics_url}/monitors/{monitor_id}" )