Skip to main content
Glama
jamesbrink

MCP Server for Coroot

get_application_categories

Retrieve application categorization rules to understand how applications are grouped in Coroot projects, such as monitoring or control-plane categories.

Instructions

Get application categories configuration.

Returns the current application categorization rules that determine how applications are grouped (e.g., monitoring, control-plane, etc).

Args: project_id: Project ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • MCP tool registration using @mcp.tool() decorator for get_application_categories. This is where the tool is registered in the FastMCP server.
    @mcp.tool() async def get_application_categories(project_id: str) -> dict[str, Any]: """Get application categories configuration. Returns the current application categorization rules that determine how applications are grouped (e.g., monitoring, control-plane, etc). Args: project_id: Project ID """ return await get_application_categories_impl(project_id) # type: ignore[no-any-return]
  • Handler implementation that calls the CorootClient to fetch application categories and formats the response.
    @handle_errors async def get_application_categories_impl(project_id: str) -> dict[str, Any]: """Get application categories.""" categories = await get_client().get_application_categories(project_id) return { "success": True, "categories": categories, }
  • CorootClient helper method that makes the HTTP GET request to the Coroot API endpoint for application categories.
    async def get_application_categories(self, project_id: str) -> dict[str, Any]: """Get application categories configuration. Args: project_id: Project ID. Returns: Application categories. """ response = await self._request( "GET", f"/api/project/{project_id}/application_categories" ) 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