post_xero_pay_run
post_xero_pay_runProposes moving an EXISTING DRAFT pay run to POSTED, Australian organisations only (this refuses plainly for New Zealand and the United Kingdom - Xero has no documented way to post a pay run for either region through its API). It does NOT touch Xero itself, and never will on its own - this queues a pending change that a human must explicitly approve (your Xero MCP connector - the exact link is this response's own approvalUrl field). THIS CANNOT BE UNDONE ONCE APPROVED: Xero's own Payroll API has no way to move a POSTED pay run back to DRAFT, ever - tell the user this plainly before they approve it, in these words, not a softened version. POSTING A PAY RUN DOES NOT LODGE ANYTHING WITH THE ATO AND DOES NOT PAY ANYONE - Single Touch Payroll lodgement, and the actual bank transfer to employees, both happen entirely outside this connector, through whatever process this business already uses; say so if asked whether wages have "gone out" or been "reported" - this tool cannot know either. confirm must be true, set only after the person has explicitly said, in their own words, to post this specific pay run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payRunId": "<payRunId>",
"confirm": "<confirm>"
},
"name": "post_xero_pay_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Set this ONLY after the person using this account has explicitly said, in their own words, to post this specific pay run - posting cannot be undone through Xero's API once approved, never infer consent from context. | |
| payRunId | Yes | Get this from list_xero_pay_runs or get_xero_pay_run_summary - must currently be DRAFT. | |
| organisation | No | The Xero organisation to use, by its display name. Only needed if this connection reaches more than one organisation - omit it when there is only one. |