Skip to content

Runners API

GitHub Actions jobs on BareCI machines: why a job waits, and how the pools do.

Each tool below is an MCP tool on https://api.bareci.com/mcp and, unless it is marked local, a route of the https://api.bareci.com/v1 JSON API. The bareci CLI calls the same routes.

Tool What it does
job_explain Why a GitHub Actions job on a BareCI label is waiting, where it ran, and how long each step took.
insights Queue times, hit rates of the hot and warm tiers, and spend for your pools over recent days.

job_explain

Explain a CI job. Why a GitHub Actions job on a BareCI label is waiting, where it ran, and how long each step took.

  • HTTP: GET /v1/jobs/{job}
  • Scope: read
  • Reads only

Arguments

Argument Type Required Description
job integer yes GitHub Actions job id (min 1)

Answer

Field Type Required Description
pool string no owner/name/label

Every answer also carries next: the next action, usually a tool and its arguments.

Example

{
"method": "tools/call",
"params": {
"name": "job_explain",
"arguments": {
"job": 1
}
}
}

Next: insights for the pool’s trends.

insights

Runner insights. Queue times, hit rates of the hot and warm tiers, and spend for your pools over recent days.

  • HTTP: GET /v1/insights
  • Scope: read
  • Reads only

Arguments

Argument Type Required Description
days integer no 1 to 14 (min 1, max 14)
pool string no Only this pool, owner/name/label

Answer

Field Type Required Description
days integer no Days (min -9007199254740991)
pools any[] no Per pool

Every answer also carries next: the next action, usually a tool and its arguments.

Example

{
"method": "tools/call",
"params": {
"name": "insights",
"arguments": {}
}
}

Next: repo_settings to tune a pool.