Skip to main content
Glama

Xero Create Timesheet

xero_create_timesheet

Create an employee timesheet in Xero for a specified date range and earnings-rate units, enabling payroll tracking. Requires write access to be enabled.

Instructions

Create a timesheet. Requires XERO_WRITE_ENABLED=true.

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": {
      "employee_id": "<employee_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>",
      "timesheet_lines": "<timesheet_lines>"
    },
    "name": "xero_create_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesPeriod end date (YYYY-MM-DD)
start_dateYesPeriod start date (YYYY-MM-DD)
employee_idYesEmployee UUID
timesheet_linesYesJSON: [{"EarningsRateID":"...","NumberOfUnits":[8,8,...]}]

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It usefully discloses the XERO_WRITE_ENABLED write gate, which is real operational context, but says nothing about the created record's initial state (e.g. draft vs approved), whether creation is reversible, what errors occur for invalid employee IDs or overlapping periods, or whether a payroll/region setup is required for a mutation tool.

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?

Two short sentences with no filler, and the action is front-loaded before the prerequisite. It is efficient, though the brevity reflects under-specification as much as tight writing.

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

Completeness3/5

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

An output schema exists and the input schema fully documents all required parameters, so the description need not explain return values or field formats. However, for a mutation tool with zero annotations, it is thin on behavioral and prerequisite context that an agent would need before calling it.

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

Parameters3/5

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

Schema description coverage is 100%, so all four required parameters are documented in the schema, including the date format and the timesheet_lines JSON shape. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource ("Create a timesheet"), which is unambiguous and distinguishable from the read-style sibling xero_timesheet. It does not explicitly contrast itself with xero_approve_timesheet or other create_* siblings, but the verb+resource pairing is clear enough to select on.

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

Usage Guidelines2/5

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

The only guidance is a prerequisite gate ("Requires XERO_WRITE_ENABLED=true"); there is no statement of when to use this versus xero_approve_timesheet or how it relates to the existing xero_timesheet read tool. No exclusions, no preconditions about the employee existing, and no note on duplicate or overlapping periods.

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