Skip to main content
Glama
piekstra

New Relic MCP Server

by piekstra

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
NameRequiredDescriptionDefault
monitor_idYes

Implementation Reference

  • 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)
  • 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}" )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/newrelic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server