Skip to content

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 valueDescription
createCreate a new custom role with a name, description, parent role, and permissions.
getRetrieve a specific custom role by ID.
listList custom roles with an optional case-insensitive name filter.
updateUpdate an existing custom role without changing its parent role.
deleteDelete a custom role by ID.
generate_openapiGenerate the OpenAPI JSON payload for use with the Coralogix REST API.
generate_kubernetesGenerate a Kubernetes Operator YAML manifest for the Coralogix Operator.
generate_terraformGenerate 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

List Coralogix custom roles whose name contains "Observability".

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 parentRoleName during 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.