Skip to main content
List jobs in a project, optionally filtered by status, cron job, environment, or batch

Tool details

FieldValue
Namelist_jobs
GroupJobs

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug whose jobs can be listed."
    },
    "status": {
      "type": "string",
      "enum": [
        "submitted",
        "working",
        "completed",
        "failed",
        "canceled"
      ],
      "description": "Optional lifecycle status filter for narrowing the job list."
    },
    "cron_job_id": {
      "type": "string",
      "description": "Optional cron job ID to show only runs created from that schedule."
    },
    "environment_id": {
      "type": "string",
      "description": "Optional environment ID to scope the results to one environment."
    },
    "batch_id": {
      "type": "string",
      "description": "Optional batch ID to return only jobs created together in the same batch."
    },
    "limit": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "description": "Maximum number of jobs to return. Defaults to 20.",
      "default": 20
    },
    "cursor": {
      "type": "string",
      "description": "Opaque pagination cursor from a previous list_jobs response."
    }
  },
  "required": [
    "project_reference"
  ],
  "additionalProperties": false,
  "description": "Input schema for listing jobs belonging to a project.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Job identifier."
          },
          "project_id": {
            "type": "string",
            "description": "Project identifier that owns the job."
          },
          "environment_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Environment identifier associated with the job, or null when not environment-scoped."
          },
          "branch_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Branch identifier associated with the job, or null when using mainline project state."
          },
          "cron_job_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cron job identifier when the job was scheduled from a cron definition."
          },
          "batch_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Batch identifier when the job belongs to a grouped submission."
          },
          "name": {
            "type": "string",
            "description": "Human-readable job name."
          },
          "status": {
            "type": "string",
            "description": "Lifecycle status of the job."
          },
          "target": {
            "type": "string",
            "description": "Execution target, such as a container image, script path, or task target name."
          },
          "config": {
            "type": "object",
            "additionalProperties": {
              "description": "Additional structured values associated with this result."
            },
            "description": "Resolved job configuration payload passed to the runtime."
          },
          "timeout_seconds": {
            "type": "number",
            "description": "Execution timeout for the job in seconds."
          },
          "backoff_limit": {
            "type": "number",
            "description": "Maximum retry count configured for the job."
          },
          "exit_code": {
            "type": [
              "number",
              "null"
            ],
            "description": "Process exit code when the job has completed."
          },
          "failed_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Failure reason when the job did not complete successfully."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Timestamp when job execution started."
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Timestamp when job execution finished."
          },
          "created_at": {
            "type": "string",
            "description": "Timestamp when the job was created."
          },
          "updated_at": {
            "type": "string",
            "description": "Timestamp when the job was last updated."
          }
        },
        "required": [
          "id",
          "project_id",
          "environment_id",
          "branch_id",
          "cron_job_id",
          "batch_id",
          "name",
          "status",
          "target",
          "config",
          "timeout_seconds",
          "backoff_limit",
          "exit_code",
          "failed_reason",
          "started_at",
          "completed_at",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "description": "Runtime job record returned by MCP job tools."
      },
      "description": "Job records for the requested page."
    },
    "page_info": {
      "type": "object",
      "properties": {
        "self": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor representing the current result page."
        },
        "first": {
          "type": "null",
          "description": "Always null because these job list endpoints do not expose a first-page cursor."
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page of results, or null when exhausted."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the previous page when available, otherwise null."
        }
      },
      "required": [
        "self",
        "first",
        "next",
        "prev"
      ],
      "additionalProperties": false,
      "description": "Pagination cursors for traversing the job list."
    }
  },
  "required": [
    "data",
    "page_info"
  ],
  "additionalProperties": false,
  "description": "Paginated list of jobs for the requested project.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}