Skip to main content
POST
Create an eval case

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

suiteId
string
required

Eval suite ID, as returned by POST /eval-runs.

Body

application/json

Create one case. title and a non-empty steps array are both required — a case persisted without executable steps could never run.

title
string
required
Minimum string length: 1
steps
object[]
required

REPLACES the case's test definition wholesale when provided.

Minimum array length: 1
expectedOutput
string
iterations
integer
Required range: 1 <= x <= 10
isNegative
boolean
scenario
string
models
object[]
matchOptions
object | null

null clears the case override and inherits the suite's.

checks
object | null

null clears the case override.

Response

The created case.

A persisted eval case, in the public steps-first shape. Note this is NOT EvalTestCase, which is the INLINE authoring shape accepted by suite creation.

id
string
required
title
string
required
steps
object[]
required

Ordered test steps. A prompt step is a model turn; a single model-free toolCall step is a render-check; assert steps hold the expectations.

Minimum array length: 1
iterations
integer
required
Required range: 1 <= x <= 10
isNegative
boolean
required

When true, the case passes if NO tools are called.

models
object[]
required
expectedOutput
string
scenario
string
matchOptions
object | null
checks
object | null
createdAt
number | null
updatedAt
number | null