Skip to main content
Glama
piekstra

New Relic MCP Server

by piekstra

list_deployments

Retrieve deployment history for a New Relic application to monitor release changes and track deployment timelines.

Instructions

List deployments for an application

Input Schema

NameRequiredDescriptionDefault
app_idYes

Input Schema (JSON Schema)

{ "properties": { "app_id": { "title": "App Id", "type": "string" } }, "required": [ "app_id" ], "type": "object" }

Implementation Reference

  • The main MCP tool handler for 'list_deployments'. This function is decorated with @mcp.tool(), handles input validation implicitly via type hints, calls the NewRelicClient helper, and returns JSON-formatted results or errors.
    @mcp.tool() async def list_deployments(app_id: str) -> str: """List deployments for an application""" if not client: return json.dumps({"error": "New Relic client not initialized"}) try: result = await client.list_deployments(app_id) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
  • Supporting method in NewRelicClient class that performs the actual HTTP GET request to the New Relic API endpoint for listing deployments of a specific application.
    async def list_deployments(self, app_id: str) -> Dict[str, Any]: """List deployments for an application""" url = f"{self.base_url}/applications/{app_id}/deployments.json" return await self._make_request("GET", url)

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