Skip to main content
Glama

Xero Approve Timesheet

xero_approve_timesheet

Approve a Xero timesheet by ID after enabling write access and setting confirm=true.

Instructions

Approve a timesheet. Requires XERO_WRITE_ENABLED=true and confirm=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": {
      "timesheet_id": "<timesheet_id>"
    },
    "name": "xero_approve_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to approve
timesheet_idYesTimesheet UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two real gates: the XERO_WRITE_ENABLED environment flag and confirm=true. It does not state whether approval is reversible, what permissions are needed, or what happens if approval fails, which leaves meaningful gaps 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.

Conciseness5/5

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

Two short sentences with zero filler: the action comes first and the prerequisites follow immediately. Nothing is buried or repeated.

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 two-parameter mutation with a full output schema, the definition covers the action and the preconditions an agent must satisfy before calling. The only missing context is post-approval behavior such as reversibility, which is minor given the small surface area.

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 both parameters are already documented, and the description's mention of confirm=true simply restates the schema. No additional meaning, formatting, or edge-case detail is added beyond the structured fields.

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 names a specific verb and resource ('Approve a timesheet'), so the agent knows exactly what the tool does. It does not distinguish itself from siblings like xero_timesheet or xero_create_timesheet, but the action is unambiguous on its own.

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

Usage Guidelines3/5

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

Usage is implied by the verb and made conditional by the stated prerequisites (write flag plus confirm), which tells the agent when the call will succeed. There is no guidance on alternatives, such as reading a timesheet first via xero_timesheet, or on what to do if approval was already applied.

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