Skip to main content
Glama

Invio Xero MCP

create_xero_timesheet

create_xero_timesheet

Proposes a DRAFT timesheet for one employee/period, for Australian, New Zealand or United Kingdom organisations - 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) before Xero is touched at all; you have no way to approve it yourself. employeeId and payrollCalendarId must both come from list_xero_payroll_employees (never invented) - use that SAME employee's own payrollCalendarId field. lines is date-keyed: one entry per day actually worked, each naming an earningsRateId and how many hours. For Australia, use that SAME employee's own ordinaryEarningsRateId (from list_xero_payroll_employees) unless the user names a different rate. For New Zealand and the United Kingdom, an employee record carries no earnings rate of its own - call list_xero_payroll_earnings_rates first and use the RegularEarnings-type rate unless the user names a different one. For New Zealand and the United Kingdom, startDate/endDate must span the employee's WHOLE payroll-calendar period (e.g. Monday to Sunday on a weekly calendar), not just the days actually worked - a shorter period was refused live even though every line inside it was valid; days with no hours simply carry no line (observed live 12 September 2026, not stated in Xero's own spec). The created timesheet starts as a Xero-side DRAFT once approved - a human remains free to review or change it inside Xero afterwards, unlike post_xero_pay_run. This tool cannot say whether Xero will accept the earnings rate or the calendar for this employee - a mismatch is refused, cleanly, only once a human approves.

Input Schema

NameRequiredDescriptionDefault
linesYesOne entry per day actually worked - omit days with no hours rather than including a zero.
endDateYesEnd of the timesheet period, YYYY-MM-DD. If the user wrote a bare numeric date with no month name ("9/8", "08/09"), do NOT settle it on your own judgement - it is 9 August to most of the world and 8 September in the US, and nothing downstream of this field can tell which you meant once it is a date. Follow the DATES instruction in this tool's description. For New Zealand and the United Kingdom, this period must span the employee's WHOLE payroll-calendar period (for example, Monday to Sunday on a weekly calendar), not just the days actually worked - a shorter period was refused live even though every line inside it was valid. Days with no hours simply carry no line at all; the period itself still has to cover the full calendar cycle. Observed live 12 September 2026, not stated in Xero's own API specification.
startDateYesStart of the timesheet period, YYYY-MM-DD (AU: exactly 7 days including endDate). If the user wrote a bare numeric date with no month name ("9/8", "08/09"), do NOT settle it on your own judgement - it is 9 August to most of the world and 8 September in the US, and nothing downstream of this field can tell which you meant once it is a date. Follow the DATES instruction in this tool's description. For New Zealand and the United Kingdom, this period must span the employee's WHOLE payroll-calendar period (for example, Monday to Sunday on a weekly calendar), not just the days actually worked - a shorter period was refused live even though every line inside it was valid. Days with no hours simply carry no line at all; the period itself still has to cover the full calendar cycle. Observed live 12 September 2026, not stated in Xero's own API specification.
employeeIdYesGet this from list_xero_payroll_employees first - never invent one.
organisationNoThe 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.
payrollCalendarIdYesGet this from the SAME employee's own payrollCalendarId field on list_xero_payroll_employees - never invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / employeeId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • removedInput schema / properties / lines / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / lines / items / properties / earningsRateId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / payrollCalendarId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations: it discloses that the call creates only a queued pending change, that a human must approve before Xero is touched, that the agent cannot self-approve, that the resulting record is a Xero-side DRAFT (unlike post_xero_pay_run), and that invalid earnings-rate/calendar combinations fail only at approval time. Annotation hints (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false) are consistent and the description adds the missing causal detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the most important fact (draft, human approval required, Xero untouched) and every sentence carries operational content. It is long and single-block, and repeats the NZ/UK whole-calendar-period rule that already appears twice in the schema, which costs some readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-param, no-output-schema mutation tool it covers the approval lifecycle, return field (approvalUrl), region branches and known live-observed quirks well. However, the schema says to 'Follow the DATES instruction in this tool's description' for ambiguous numeric dates, and no such instruction exists here — leaving a real ambiguity-handling gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds cross-parameter logic — region-dependent selection of earningsRateId, reusing the same employee's ordinaryEarningsRateId for AU, and the whole-payroll-period rule for NZ/UK dates. Much of this duplicates the schema's own field descriptions, so it is additive but not uniquely informative.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Proposes a DRAFT timesheet for one employee/period') plus the supported regions and the explicit scope limit ('does NOT touch Xero itself'). It also distances itself from the sibling post_xero_pay_run, so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear prerequisites and ordering: employeeId and payrollCalendarId must come from list_xero_payroll_employees (same employee), and NZ/UK require list_xero_payroll_earnings_rates first. It also names the human-approval path (approvalUrl, approve_xero_pending_change context) and contrasts behaviour with post_xero_pay_run. It stops short of an explicit 'do not use this when...' exclusion, but the routing guidance is otherwise concrete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources