Skip to main content
POST
Author eval cases from a document

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 job instead of re-authoring — and re-billing — the document.

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
content
string
required

The document, as UTF-8 text. Markdown, JSON, CSV or plain notes — no format is declared, because the authoring model reads the document's shape itself. At most 100 KiB.

Maximum string length: 102400
fileName
string

Recorded on each case's provenance so a reviewer can find the source. Optional: a pasted document has no file behind it.

Required string length: 1 - 255
servers
string[]

Server ids or names to discover tools from. Mutually exclusive with environmentId.

environmentId
string

Author against this environment's closed server set. Mutually exclusive with servers.

caseModels
object[]
duplicatePolicy
enum<string>

Applied when the cases are written, not when the job starts. Anything but block requires overrideReason.

Available options:
block,
warn,
create_anyway
overrideReason
string
Minimum string length: 1
idempotencyKey
string

Makes a retry replay the recorded job instead of authoring — and billing — the document a second time.

Required string length: 1 - 256

Response

The cases the job authored and committed, or the job's own status when it finished without committing (failed, cancelled, or still pending at the end of the wait).

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

Cases the commit could not write, each with its reason. They stay on the job rather than being lost.

reviewUrl
string<uri>

Opens the app on exactly the skipped drafts. Present only when something was skipped — finishing them there costs nothing, whereas re-sending the document re-authors and re-bills every case in it.