get_profit_and_loss
Pack: xero · Endpoint: https://gateway.pipeworx.io/xero/mcp
Get the Profit and Loss (income statement) financial report from a Xero accounting organisation for an optional date range. Returns the structured Xero report (report name, date, and row sections covering revenue, expenses, and net profit). Use for financial reporting and bookkeeping analysis.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenant_id | string | no | Optional Xero tenant (organisation) id to target. If omitted, the first connected organisation is used. Get ids from list_organisations. |
from_date | string | no | Optional start date of the reporting period in YYYY-MM-DD format. |
to_date | string | no | Optional end date of the reporting period in YYYY-MM-DD format. |
Example call
curl -X POST https://gateway.pipeworx.io/xero/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_profit_and_loss","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"xero": {
"url": "https://gateway.pipeworx.io/xero/mcp"
}
}
}
See Getting Started for client-specific install steps.