Coval Metrics API

CRUD operations for custom evaluation metrics

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Agent Quality & Operations AE-100.60

Operations 22

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /metrics List evaluation metrics · List metrics #
Ask an LLM
“Which custom evaluation metrics have I defined for testing?”
“Can I include Coval's built-in metrics when listing my metrics?”
Tell an agent
List all my evaluation metrics.
List metrics matching {filter}.
POST /metrics Create a custom evaluation metric · Create metric #
Ask an LLM
“How do I create a metric that judges whether an agent's output is correct?”
“What prompt and categories does a categorical evaluation metric need?”
Tell an agent
Create a {metric_type} metric named {metric_name} described as {description}.
Create a {metric_type} metric {metric_name} with prompt {prompt}.
GET /metrics/template-variables List variables usable in metric prompts · List metric template variables #
Ask an LLM
“What template variables can I use in an LLM-judge metric prompt?”
“Which agent and test case values are substituted into metric prompts?”
Tell an agent
List the template variables available for metric prompts.
Show me the prompt template variables.
GET /metrics/{metric_id} Get an evaluation metric · Get metric #
Ask an LLM
“What prompt and type does one of my metrics have?”
“Can I look up a metric by its ID?”
Tell an agent
Get metric {metric_id}.
Show the configuration of evaluation metric {metric_id}.
PATCH /metrics/{metric_id} Update an evaluation metric · Update metric #
Ask an LLM
“Can I change the prompt on an existing metric?”
“How do I add categories to a metric that already has them?”
Tell an agent
Update metric {metric_id} to use prompt {prompt}.
Set the categories of metric {metric_id} to {categories}.
DELETE /metrics/{metric_id} Soft-delete an evaluation metric · Delete metric #
Ask an LLM
“How do I delete a metric I no longer use?”
“Is deleting a metric permanent or can I recover it later?”
Tell an agent destructive · confirm first
Delete metric {metric_id}.
Soft-delete evaluation metric {metric_id}.
GET /metrics/{metric_id}/versions List a metric's version history · List metric versions #
Ask an LLM
“What changes have been made to a metric over time?”
“Can I see the prior versions of a metric?”
Tell an agent
List the version history of metric {metric_id}.
Show every prior version of evaluation metric {metric_id}.
POST /metrics/{metric_id}/versions/{version_id}/revert Revert a metric to an earlier version · Revert metric version #
Ask an LLM
“Can I undo a change to a metric by rolling it back to a previous version?”
“What happens to the version history when I revert a metric?”
Tell an agent
Revert metric {metric_id} back to version {version_id}.
Restore evaluation metric {metric_id} to its state at version {version_id}.
GET /metrics/recently-deleted List recently soft-deleted metrics · List recently-deleted metrics #
Ask an LLM
“Which metrics have I deleted recently and can still recover?”
“How long is the recovery window for deleted metrics?”
Tell an agent
List my recently deleted metrics.
Show metrics deleted in the last recovery window.
POST /metrics/{metric_id}/restore Restore a soft-deleted metric · Restore a recently-deleted metric #
Ask an LLM
“How do I bring back a metric I deleted by mistake?”
“Does restoring a metric return it to the state it was in when I deleted it?”
Tell an agent
Restore deleted metric {metric_id}.
Bring back evaluation metric {metric_id} from the trash.
GET /metrics/{metric_id}/thresholds List thresholds for a metric · List metric thresholds #
Ask an LLM
“What thresholds are configured for a metric?”
“Can I see the upper and lower bounds a metric's score must stay within?”
Tell an agent
List the thresholds for metric {metric_id}.
Show the threshold values configured on evaluation metric {metric_id}.
POST /metrics/{metric_id}/thresholds Create a threshold for a metric · Create metric threshold #
Ask an LLM
“How do I set a threshold that flags a metric score as bad?”
“Can I create a threshold that only triggers above a certain value?”
Tell an agent
Create a {comparison_operator} threshold on metric {metric_id} with value {target_float_upper}.
Add a threshold to metric {metric_id} that triggers when the score is {comparison_operator} {target_float_lower}.
GET /metrics/{metric_id}/threshold Get a metric's singleton threshold · Get metric threshold #
Ask an LLM
“Does this metric have a threshold configured?”
“What threshold value is set on a metric?”
Tell an agent
Get the threshold for metric {metric_id}.
Show the single threshold configured on evaluation metric {metric_id}.
PATCH /metrics/{metric_id}/threshold Update a metric's threshold · Update metric threshold #
Ask an LLM
“How do I change the threshold value on a metric?”
“Can I clear a metric's threshold by setting it to null?”
Tell an agent
Set the threshold on metric {metric_id} to {comparison_operator} {target_float_upper}.
Clear the threshold on evaluation metric {metric_id}.
DELETE /metrics/{metric_id}/thresholds/{threshold_id} Delete a metric threshold · Delete metric threshold #
Ask an LLM
“How do I remove a threshold from a metric?”
“Can I delete a single threshold by its ID?”
Tell an agent destructive · confirm first
Delete threshold {threshold_id} from metric {metric_id}.
Remove metric {metric_id}'s threshold {threshold_id}.
GET /metrics/{metric_id}/baselines List anomaly-detection baselines for a metric · List metric baselines #
Ask an LLM
“What anomaly-detection baselines exist for a metric?”
“Can I filter a metric's baselines by agent or test set?”
Tell an agent
List the baselines for metric {metric_id}.
Show baselines for metric {metric_id} on test set {test_set_id}.
POST /metrics/{metric_id}/baselines Create an anomaly-detection baseline for a metric · Create metric baseline #
Ask an LLM
“How do I set up anomaly detection for a metric?”
“Can I choose the detection method and sigma threshold for a baseline?”
Tell an agent
Create a {detection_method} baseline for metric {metric_id}.
Create a baseline on metric {metric_id} with sigma threshold {sigma_threshold}.
GET /metrics/{metric_id}/baselines/{baseline_id} Get an anomaly-detection baseline · Get metric baseline #
Ask an LLM
“What detection method and sigma threshold does a baseline use?”
“Can I see one baseline's configuration by its ID?”
Tell an agent
Get baseline {baseline_id} for metric {metric_id}.
Show the anomaly-detection baseline {baseline_id} on evaluation metric {metric_id}.
PATCH /metrics/{metric_id}/baselines/{baseline_id} Update an anomaly-detection baseline · Update metric baseline #
Ask an LLM
“Can I change the sigma threshold on an existing baseline?”
“How do I rename an anomaly-detection baseline?”
Tell an agent
Set baseline {baseline_id} on metric {metric_id} to sigma threshold {sigma_threshold}.
Rename anomaly-detection baseline {baseline_id} on evaluation metric {metric_id} to {display_name}.
DELETE /metrics/{metric_id}/baselines/{baseline_id} Delete an anomaly-detection baseline · Delete metric baseline #
Ask an LLM
“How do I remove an anomaly-detection baseline?”
“Can I delete a baseline by its ID?”
Tell an agent destructive · confirm first
Delete baseline {baseline_id} from metric {metric_id}.
Remove anomaly-detection baseline {baseline_id} on evaluation metric {metric_id}.
POST /metrics/{metric_id}/test Test a custom metric against a simulation · Trigger test metric execution #
Ask an LLM
“How do I run a custom metric against a simulation output?”
“Can I test a metric before using it in a simulation?”
Tell an agent
Test metric {metric_id} against simulation output {simulation_output_id}.
Run custom metric {metric_id} on simulation output {simulation_output_id} for developer {dev_id}.
GET /models/metric List metric evaluation models · List available metric models #
Ask an LLM
“Which LLM models can I use for metric evaluation?”
“Are the enterprise metric models available to my organization?”
Tell an agent
List the metric models available for evaluation.
Show the standard and enterprise models for custom metrics.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coval:coval-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coval-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coval Metrics API
  version: 1.0.0
  description: Manage custom evaluation metrics for agent testing and monitoring.
  contact:
    name: Coval API Support
    email: support@coval.dev
    url: https://docs.coval.ai
  license:
    name: Proprietary
    url: https://coval.dev/terms
servers:
- url: https://api.coval.dev/v1
  description: Production API
security:
- ApiKeyAuth: []
tags:


# --- truncated at 32 KB (72 KB total) ---
# Full source: https://artifacts.apis.io/coval/openapi/coval-metrics-api-openapi.yml