Skip to main content
Glama

Xero Profit Loss

xero_profit_loss

Retrieve Profit & Loss reports for a date range and compare periods by month, quarter, or year to assess financial performance.

Instructions

Get Profit & Loss report for a date range.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xero_profit_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodsNoNumber of comparison periods
to_dateNoEnd date (YYYY-MM-DD)
from_dateNoStart date (YYYY-MM-DD)
timeframeNoMONTH, QUARTER, or YEAR

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 behavioral burden and discloses almost nothing: it doesn't state that this is a read-only reporting call, whether results are aggregated per account, what currency or org context is used, or how comparison periods behave. The presence of an output schema covers return values, but the mutation/safety and computation semantics remain unstated.

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?

A single front-loaded sentence with zero filler, but its terseness borders on under-specification for a reporting tool with comparison-period parameters.

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

Completeness2/5

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

For a report tool whose distinguishing feature is comparative periods, the description never explains that dimension at all, nor does it note that every parameter defaults to null and a report is still produced. The output schema relieves it of explaining return shape, but key input behavior is left undocumented.

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 each parameter (from_date, to_date, timeframe, periods) is already documented with format hints and enum-like values in the schema. The description only echoes the date-range concept and adds no interpretation of 'periods' comparison behavior, so the baseline 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 states a specific verb ('Get') and resource ('Profit & Loss report') scoped to a date range, which is enough for an agent to recognize this as the P&L reporting endpoint among the account/invoice/bill siblings. It stops short of contrasting itself with other report tools such as xero_balance_sheet, which would have earned a 5.

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?

There is no guidance on when to choose this report over alternatives, no mention that all four parameters are optional, and no statement about what happens when no date range is supplied. The agent must infer usage entirely from the name and schema.

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