Skip to main content
Glama
xero-mcp

xero-mcp

by david-buck

Get Profit and Loss report

xero_get_profit_and_loss

Read a Xero Profit and Loss report for an explicit date range up to 366 days, choosing cash-only or accrual basis. Returns report rows and cells for financial analysis.

Instructions

Read the Xero Profit and Loss report for one explicit date range, at most 366 days. Choose cash-only or accrual basis explicitly; preserves report rows and cells.

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": {
      "fromDate": "<fromDate>",
      "toDate": "<toDate>"
    },
    "name": "xero_get_profit_and_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
toDateYesDate in YYYY-MM-DD format
fromDateYesDate in YYYY-MM-DD format
paymentsOnlyNoRequest Xero cash-only basis; false requests accrual basis

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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; it discloses the 366-day ceiling, single-period scope, and that rows/cells are preserved. It does not state what happens when the range exceeds 366 days, whether this is a pure read with no side effects, or any auth/tenant requirements, leaving meaningful gaps for a report 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 dense sentences with the constraints front-loaded and no filler. The trailing clause ('preserves report rows and cells') is slightly vague and could be sharper, but nothing is wasted.

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?

For a three-parameter read tool with no output schema and no annotations, the essentials (date window, basis, row/cell preservation) are covered. Still missing is what the response looks like, how multi-entity/tenant selection works, and error behavior for over-long ranges.

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, but the description adds genuine meaning beyond the schema by imposing the 366-day maximum on fromDate/toDate and clarifying that the basis choice must be explicit. Only the paymentsOnly field's cash vs accrual mapping largely restates the schema description.

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?

Names a specific verb and resource ('Read the Xero Profit and Loss report'), which distinguishes it from report siblings such as balance sheet or trial balance by resource name. The scope ('one explicit date range') further narrows it. It stops short of explicitly naming the alternative report to use for other analysis.

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?

Gives real constraints on use ('one explicit date range, at most 366 days') and instructs the agent to pick a basis explicitly, which is practical guidance. However, it offers no when-to-use/when-not-to-use framing against sibling reports like trial balance or GST report, so selection guidance is only implied.

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