Custom roles
Manage Coralogix custom roles directly from your AI agent. The Model Context Protocol (MCP) server provides a unified tool to create, retrieve, update, and delete custom roles, and to generate infrastructure-as-code definitions from role configurations.
Tool
Use manage_custom_roles for all custom role operations.
| Action value | Description |
|---|---|
create | Create a new custom role with a name, description, parent role, and permissions. |
get | Retrieve a specific custom role by ID. |
list | List custom roles with an optional case-insensitive name filter. |
update | Update an existing custom role without changing its parent role. |
delete | Delete a custom role by ID. |
generate_openapi | Generate the OpenAPI JSON payload for use with the Coralogix REST API. |
generate_kubernetes | Generate a Kubernetes Operator YAML manifest for the Coralogix Operator. |
generate_terraform | Generate Terraform configuration for the Coralogix Terraform Provider. |
Example prompts
Create a custom role
Create a Coralogix custom role named Observability Reader.
Use description "Read-only observability access", parent role Standard User,
and permission alerts:ReadConfig.
List custom roles
Update a custom role
Update custom role <custom-role-id> by changing the description to
"Read-only observability and alerting access" and keeping the same parent role.
Generate Terraform configuration
Generate Terraform configuration for a custom role named Pipeline Manager with
description "Pipeline management role", parent role Standard User,
and permission spans.events2metrics:UpdateConfig. Do not create it.
Important behaviors
- Parent role changes are not supported during update. If you provide
parentRoleNameduring update, it must match the current backend value. - Provide permissions. The tool rejects empty or blank permission strings.
- Custom role IDs are strings in Model Context Protocol payloads. The server parses them to numeric IDs only when calling the role management API.
- Update requires the current role shape. Retrieve the current role, modify it, then update with the complete definition.
Theme
Light