---
title: "Generate clean metric description"
method: POST
path: "/test_framework/v3/metrics/generate_clean_description/"
tags: ["test_framework"]
---

# Generate clean metric description

`POST /test_framework/v3/metrics/generate_clean_description/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/test_framework/v3/metrics/generate_clean_description/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Turn a rough metric description into a clean one suited to the agent, and return it. Usually takes under 30 seconds.

## Request body

- CleanMetricDescriptionRequest
  - `agent` integer, required
  - `metric_description` string, required
  - `eval_type` 'boolean' | 'numeric' | 'rating' | 'enum', required: * `boolean` - boolean * `numeric` - numeric * `rating` - rating * `enum` - enum

## Response `200`

- object
  - `status` 'completed' | 'failed': `failed` when the job could not produce its result; see `error` / `errors`.
  - `agent_id` integer
  - `clean_description` string
  - `error` string, nullable: Why the job failed, when it did.

## Other responses

- `400`
- `403`: No access to the agent, project, metric or result the job runs on.
- `504`: The job did not finish within 15 minutes. It may still complete in the background.

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/test_framework/v3/metrics/generate_clean_description/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
