b8c36aef7731

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-108296301.0 KB
Eval runs

Generate eval cases from the suite's tools

Discovers the suite's server tools over a live MCP connection, generates cases against them, and persists them — the only edit route that connects to a server, and the only one that SPENDS ORG CREDITS. Synchronous: connect, generate, persist, disconnect, respond.

An environment-based suite generates against that environment's closed server set, so the cases match the tools its runs will actually see.

Pass x-mcpjam-idempotency-key to make a retry safe: drafts are recorded backend-side BEFORE any case is persisted, so a replay reuses them instead of spending credits again, and each case is persisted under a derived per-item key so the loop is resumable.

post/projects/{projectId}/eval-suites/{suiteId}/cases/generate

Path parameters

projectIdstring required

ID of the hosted project that contains the server.

suiteIdstring required

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

Headers

x-mcpjam-idempotency-keystring

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

Request body

mode'normal' | 'negative'

Superseded by caseMix when that is present.

serversstring[]

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

environmentIdstring

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.

varyUserStylesboolean

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

Response

The generated cases.

generationModelstring required
skippedobject[]

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