Skip to main content
Glama

Get a live Xero financial report

get_xero_financial_report
Read-onlyIdempotent

Read one live Xero Profit and Loss, Balance Sheet or Trial Balance for explicit dates. Capped at 250 stripped rows and never writes to Xero. Requires the matching read-only Xero report permission and a Xero user with Reports access.

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": {
      "report": "<report>",
      "workspace_id": "<workspace_id>"
    },
    "name": "get_xero_financial_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoSnapshot date for Balance Sheet or Trial Balance, supplied by the user; omit for Profit and Loss.
reportYesThe live Xero report requested by the user; Profit and Loss needs a period, the others need a snapshot date.
to_dateNoInclusive end date of the Profit and Loss period requested by the user; omit for snapshot reports.
from_dateNoInclusive start date of the Profit and Loss period requested by the user; omit for snapshot reports.
workspace_idYesSelected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business.

Output Schema

NameRequiredDescriptionDefault
rowsYes
reportYes
is_liveYes
row_countYes
truncatedYes
parametersYes
updated_atYes
data_noticeYes
data_sourceYes
report_dateYes
report_nameYes
tenant_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / date / description
      Added value: +"Snapshot date for Balance Sheet or Trial Balance, supplied by the user; omit for Profit and Loss."
    • addedInput schema / properties / from_date / description
      Added value: +"Inclusive start date of the Profit and Loss period requested by the user; omit for snapshot reports."
    • addedInput schema / properties / report / description
      Added value: +"The live Xero report requested by the user; Profit and Loss needs a period, the others need a snapshot date."
    • addedInput schema / properties / to_date / description
      Added value: +"Inclusive end date of the Profit and Loss period requested by the user; omit for snapshot reports."
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Exact workspace_id returned by list_shvl_workspaces and selected by the user. Never infer a different client workspace."New value: +"Selected business ID from list_shvl_workspaces. Ask the user to choose if several businesses are available; never infer another business."
    • addedOutput schema / description
      Added value: +"tenant_name identifies the selected Xero organisation. report, report_name, report_date and parameters identify the requested report and dates. rows contains typed, nested display cells, section and depth; preserve the provider headers and units when interpreting values. row_count counts returned rows and truncated signals omissions. is_live and data_source identify a live Xero report; updated_at may be null."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Goes beyond the annotations (readOnly/idempotent/non-destructive are already declared) by disclosing a hard cap of 250 stripped rows and the permission prerequisite. It doesn't explain whether truncation is signalled to the caller or how pagination/refetch should be handled, leaving that gap.

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?

Three short sentences, front-loaded with the action and resource before limits and prerequisites. No filler or redundant restatement of the name.

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 read-only, single-call report fetcher with an output schema, the description covers the resource set, date scoping, size cap, and authorization prerequisites. Nothing material an agent needs to invoke it correctly is missing.

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 coverage is 100%, and the schema already spells out the per-report date rules and workspace_id sourcing. The description only restates 'for explicit dates', adding no format or constraint detail beyond the schema, so baseline 3 applies.

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 ('Read one live Xero ... report') and enumerates the exact resources (Profit and Loss, Balance Sheet, Trial Balance). Unlike the sibling read tools (invoices, contacts, cases), it is unambiguously scoped to financial statements for explicit dates.

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 the conditions for use: explicit dates, the matching read-only Xero report permission, and a Xero user with Reports access. It does not name an alternative tool or state when not to use it, so routing is implied rather than explicit.

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