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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:773-784 (registration)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]
- src/mcp_coroot/server.py:763-771 (handler)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, }
- src/mcp_coroot/client.py:717-730 (helper)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