Skip to main content
Glama

update_custom_applications

Update custom application configurations in Coroot to group instances by container name patterns for better monitoring organization.

Instructions

Update custom applications configuration.

Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns.

Args: project_id: Project ID applications: New custom applications list with instance patterns

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
applicationsYes

Implementation Reference

  • MCP tool handler: the @mcp.tool()-decorated function that handles tool invocation and delegates to the implementation wrapper.
    @mcp.tool() async def update_custom_applications( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications configuration. Updates the list of custom application definitions. Custom applications allow grouping instances by container name patterns. Args: project_id: Project ID applications: New custom applications list with instance patterns """ return await update_custom_applications_impl( # type: ignore[no-any-return] project_id, applications )
  • Error-handling wrapper implementation that invokes the CorootClient method and formats the response.
    @handle_errors async def update_custom_applications_impl( project_id: str, applications: dict[str, Any], ) -> dict[str, Any]: """Update custom applications.""" result = await get_client().update_custom_applications(project_id, applications) return { "success": True, "message": "Custom applications updated successfully", "applications": result, }
  • Coroot API client method implementing the HTTP POST request to the Coroot API endpoint for updating custom applications.
    async def update_custom_applications( self, project_id: str, applications: dict[str, Any] ) -> dict[str, Any]: """Update custom applications configuration. Args: project_id: Project ID. applications: New custom applications configuration. Returns: Updated applications. """ response = await self._request( "POST", f"/api/project/{project_id}/custom_applications", json=applications ) data: dict[str, Any] = response.json() return data

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/jamesbrink/mcp-coroot'

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