Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fmcp-server%2Ftools%2Fslo-v2.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Fmcp-server%2Ftools%2Fslo-v2.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# Service level objectives

Manage [Coralogix service level objectives](https://docs-docusaurus.kinsta.page/user-guides/slos/introduction/.md) directly from your AI agent. The Model Context Protocol (MCP) server provides a unified tool to create, retrieve, update, and delete service level objective v2 resources, and to generate infrastructure-as-code definitions from their configurations.

## Tool[​](#tool "Direct link to Tool")

Use `manage_slo_v2s` for all service level objective operations.

| Action value          | Description                                                                                                                                                                                               |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `create`              | Create a new service level objective v2 resource.                                                                                                                                                         |
| `get`                 | Retrieve a specific resource by ID.                                                                                                                                                                       |
| `list`                | List resources with an optional case-insensitive name filter.                                                                                                                                             |
| `update`              | Update an existing resource. The agent retrieves the current configuration first, then applies your changes.                                                                                              |
| `delete`              | Delete a resource 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](https://docs-docusaurus.kinsta.page/external/coralogix-operator).                                                               |
| `generate_terraform`  | Generate Terraform configuration for the [Coralogix Terraform Provider](https://docs-docusaurus.kinsta.page/developer-portal/infrastructure-as-code/terraform-provider/coralogix-terraform-provider/.md). |

## Supported shape[​](#supported-shape "Direct link to Supported shape")

The tool supports request-based and window-based metric service level indicators. Supported time frames are 7, 14, 21, and 28 days. Window-based resources support 1-minute and 5-minute windows, with greater-than, less-than, greater-than-or-equal, and less-than-or-equal comparison operators.

## Example prompts[​](#example-prompts "Direct link to Example prompts")

### Create a request-based objective[​](#create-a-request-based-objective "Direct link to Create a request-based objective")

```
Create a request-based service level objective v2 named api-availability.

Use target threshold 99, time frame 7 days, good events query

sum(rate(cx_logs_count_total[1m])), and total events query

sum(rate(cx_logs_count_total[1m])).
```

### Create a window-based objective[​](#create-a-window-based-objective "Direct link to Create a window-based objective")

```
Create a window-based service level objective v2 named api-window-health.

Use target threshold 95, time frame 7 days, query

avg(rate(cx_logs_count_total[1m])), window 1 minute, comparison operator

greater than or equals, and threshold 0.
```

### Generate Terraform configuration[​](#generate-terraform-configuration "Direct link to Generate Terraform configuration")

```
Generate Terraform configuration for a request-based service level objective v2 named

api-availability-preview with target threshold 99 and time frame 14 days.

Do not create it.
```

## Important behaviors[​](#important-behaviors "Direct link to Important behaviors")

* **Use 1 service level indicator type.** A resource must be request-based or window-based, not both.
* **Target thresholds must be valid percentages.** The tool rejects values outside the supported range.
* **Use supported time frames and windows.** The tool rejects values outside the shared infrastructure-as-code subset.
* **Update requires retrieval first.** Retrieve the current resource, modify it, then update with the complete definition.
