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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

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}"
        )
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states this is a read operation ('Get details'), implying it's non-destructive, but doesn't cover aspects like authentication needs, rate limits, error handling, or response format. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one parameter) and the presence of an output schema (which handles return values), the description is minimally adequate. However, with no annotations and low schema coverage, it should provide more context on usage and parameters to be fully complete, resulting in a mid-range score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning the parameter 'monitor_id' is undocumented in the schema. The description adds minimal value by implying the parameter identifies a specific monitor, but doesn't specify format, source, or constraints. With low coverage, the description partially compensates but not fully, aligning with the baseline for moderate gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get details') and resource ('for a specific synthetic monitor'), making the purpose understandable. However, it doesn't distinguish this from sibling tools like 'list_synthetic_monitors' or 'get_application', which retrieve different resources or list multiple items rather than getting details for a specific one.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a monitor ID), exclusions, or comparisons to siblings like 'list_synthetic_monitors' for browsing or 'get_application' for different resource types, leaving usage context implied at best.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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