Skip to content

Wait for jobs

Use this to wait until one or more ChalkSurf jobs complete, fail, or time out.

{
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false
},
"fileParams": [],
"requiredPermission": "read",
"security": {
"type": "oauth2",
"scopes": [
"chalksurf:read"
]
}
}

The server advertises this JSON Schema to MCP clients. Runtime authorization and business-rule checks still apply.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"jobIds": {
"items": {
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"organizationId": {
"description": "The ChalkSurf organization ID to use for this request.",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"type": "string"
},
"pollIntervalMs": {
"default": 2000,
"maximum": 10000,
"minimum": 500,
"type": "integer"
},
"timeoutMs": {
"default": 60000,
"maximum": 60000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"organizationId",
"jobIds"
],
"type": "object"
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"jobs": {
"items": {
"additionalProperties": false,
"properties": {
"createdAt": {
"type": "string"
},
"id": {
"type": "string"
},
"result": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"status": {
"enum": [
"pending",
"in_progress",
"completed",
"failed"
],
"type": "string"
},
"type": {
"enum": [
"exercise_sheet_import",
"exercise_import",
"exercise_solution_import",
"exercise_solution_generation",
"exercise_translation_generation",
"exercise_sheet_translation_generation",
"exercise_sheet_solution_import",
"exercise_description_generation"
],
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"status",
"type",
"result",
"createdAt",
"updatedAt"
],
"type": "object"
},
"type": "array"
},
"timedOut": {
"type": "boolean"
}
},
"required": [
"jobs",
"timedOut"
],
"type": "object"
}