Skip to main content
Glama

Invio Xero MCP

delete_xero_timesheet

delete_xero_timesheet
Destructive

Proposes deleting ONE timesheet that is still a DRAFT in Xero Payroll, for Australian, New Zealand or United Kingdom organisations - for example a draft made for the wrong period or by mistake. 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); you have no way to approve it yourself. Only a DRAFT can be deleted: this refuses a timesheet that is approved, processed, completed, requested or rejected, and says which it is - such a timesheet has to be reverted or removed inside Xero by a person. The status is checked again when the human approves, so a timesheet approved in Xero in the meantime is not deleted. timesheetId must be a real Xero timesheet id - the id create_xero_timesheet returned once its draft was approved (the pending change's result), or one the user gives you; never invent one. This connector has no tool that lists timesheets. DELETING CANNOT BE UNDONE through this connector: once approved the timesheet and its hours are gone from Xero, and to get them back the timesheet must be drafted again. Tell the user which employee and period the timesheet is for (this response says) before they approve.

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": {
      "timesheetId": "<timesheetId>"
    },
    "name": "delete_xero_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
timesheetIdYesThe Xero id of the DRAFT timesheet to delete - the id an approved create_xero_timesheet returned (its pending change result), or one the user gives you. 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds the crucial mechanic: this queues a pending change rather than mutating Xero directly, requires human approval via the response's approvalUrl, cannot be self-approved, and re-checks status at approval time. It also discloses irreversibility and the refusal statuses, which go well beyond the annotation flags.

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-loaded with verb, resource and scope, then approval mechanics, then constraints and warning. Dense but every clause carries operational meaning; minor filler such as 'and never will on its own' and the repeated status-refusal framing keep it from a 5.

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

Completeness5/5

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

For a destructive, approval-gated mutation with no output schema, it covers effect, approval path, status preconditions, id provenance, org scoping, irreversibility, and even what the response reports (employee and period). An agent has everything needed to call it safely and to instruct the user.

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 both parameters are already documented, and the description mostly reinforces the schema's own provenance warning ('never invent one', id from an approved create). The added value is contextual — it tells the agent there is no list tool to discover ids with — but the `organisation` parameter is left entirely to the schema.

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 deleting ONE timesheet'), constrains it to DRAFT timesheets in Xero Payroll for AU/NZ/UK orgs, and gives concrete motivating examples (wrong period, made by mistake). It is clearly distinguishable from create_xero_timesheet and approve_xero_pending_change.

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

Usage Guidelines5/5

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

Explicit when-to-use ('a draft made for the wrong period or by mistake'), explicit when-not ('refuses a timesheet that is approved, processed, completed, requested or rejected'), and names the real alternative ('has to be reverted or removed inside Xero by a person'). It even warns that no listing tool exists, closing the obvious 'how do I find the id' gap.

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