Real GitHub Actions bill
get_ci_billRetrieve the actual amount GitHub charged for Actions over a chosen window, with measured USD totals, discounts, and breakdowns by repository, SKU, and day.
Instructions
Return what GitHub actually charged for Actions, read from GitHub's billing usage API by the CI collector once a day (or pushed with mushi runner bill --push). Unlike get_ci_costs, these money figures are measured, not estimated. Returns { window, previousWindow, provenance: "measured", currency: "USD", available, repoScoped (true when you are not a member of the organization: only your projects' repos are shown), unavailableReason (why there is no bill and how to connect one), owners [{ owner, ownerType, lastOkAt, lastAttemptAt, lastError, lastSource (api | cli), coveredFrom }], month { label, grossUsd, discountUsd, netUsd } (this calendar month so far), totals { grossUsd, discountUsd, netUsd, minutes }, previousTotals and change { netUsd, netPct } (null unless Mushi holds the whole previous period), windowComplete, byRepo [{ repo, netUsd, grossUsd, discountUsd, minutes }], bySku, byDay (every day of the window), dataThrough, agentShare { share, billedMinutes, agentBilledMinutes, branches, provenance: "estimated" } (paid GitHub-hosted minutes on Mushi agent branches, from the jobs Mushi recorded) }. Net is what was charged; public repos and included minutes show as discount. Optional projectId (default: the configured project; an account-level key with none reads every project) and days (1-90, default 30). Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ci_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window in days (default 30) | |
| projectId | No | Project UUID — defaults to the server-configured project; omitted with an account-level key, every project you can read (`project_id` is accepted too.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byDay | No | ||
| bySku | No | ||
| month | No | This calendar month so far: grossUsd, discountUsd, netUsd | |
| byRepo | No | ||
| change | No | ||
| owners | No | ||
| totals | No | ||
| window | No | ||
| currency | No | ||
| available | No | ||
| agentShare | No | Paid minutes on Mushi agent branches (estimated) | |
| provenance | No | measured: from GitHub's bill | |
| repoScoped | No | Only your projects' repos: you are not a member of the organization | |
| dataThrough | No | ||
| previousTotals | No | ||
| previousWindow | No | ||
| windowComplete | No | ||
| unavailableReason | No | Why there is no bill, and how to connect one |