Skip to main content
POST
Generate eval cases from the suite's tools

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.

Headers

x-mcpjam-idempotency-key
string

Makes a retry replay the recorded drafts instead of spending credits again.

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

AI-generate cases from the suite's server tools and persist them. SPENDS ORG CREDITS.

mode
enum<string>

Superseded by caseMix when that is present.

Available options:
normal,
negative
servers
string[]

Server ids or names to discover tools from. Ignored when the suite is environment-based.

Minimum string length: 1
environmentId
string

Discover tools from this attached environment's closed server set, so generated cases are written against the tools the suite's runs will actually see.

Minimum string length: 1
caseModels
object[]
caseMix
object

Per-bucket case counts. Omitted buckets inherit the default mix; the backend bounds each bucket and the total.

varyUserStyles
boolean

Condition generated cases on a range of user styles so the queries read like different users wrote them.

Response

The generated cases.

generationModel
string
required
created
object[]
required
counts
object
required
skipped
object[]

Drafts that were generated but failed to persist. Surfaced rather than silently dropped.