Get cost reconciliation
get_cost_reconciliationRead what each cloud credential's provider billed for a month against Ankra's estimate for the same clusters - the document GET /org/cloud-cost/reconciliation serves. month is a UTC calendar month as YYYY-MM, not in the future (the last closed month when omitted; for the running month both sides are month to date). Per credential: state (absent when no billing document was imported: unknown, not zero), the imports with each attempt's reason, and in the invoice's own currency and minor units invoice_minor (tax_minor and credit_minor set apart), matched_minor placed on clusters and unmatched_minor not, estimate_minor for those clusters converted at estimate_fx, and difference_pct, stated over difference_coverage (the clusters measured for the hours they existed, with their share of the invoice and of the hours: read it as the whole invoice's accuracy only when both shares are 100), null with difference_reason saying why when it cannot be stated. difference_caveat says what a difference over part of the invoice leaves out and names billed lines in priced categories placed on no cluster. null is unknown, never zero or agreement. Requires billing.read. 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_cost_reconciliation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | UTC calendar month as YYYY-MM, not in the future. Omit for the last closed month. | |
| project_id | No | UUID of a project to reconcile, or all for the whole organisation. Leave it out to read the project the conversation or token is in. Read for one project, only credentials whose invoice places a line on one of its clusters are listed, with invoice_withheld true: the invoice-wide totals and unplaced lines are left out because an invoice spans other projects, and matched_minor and difference_pct are that project's clusters alone. |