Purchase / sales documents
saga_documentsRetrieve purchase or sales documents for a date range with totals, optionally filtering foreign-currency records kept separately by SAGA.
Instructions
Purchase (intrari) or sales (iesiri) documents in a period with totals. currency=true lists the foreign-currency ones instead (SAGA keeps them apart: purchases in INTRD, sales in EXPORT).
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": {
"kind": "<kind>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "saga_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| firm | No | Firm code (folder name such as "0001"). Optional when only one firm is configured. | |
| kind | Yes | ||
| limit | No | Maximum rows to return. | |
| number | No | ||
| offset | No | Rows to skip (for paging). | |
| date_to | Yes | End date, YYYY-MM-DD (inclusive). | |
| currency | No | true = foreign-currency documents. | |
| date_from | Yes | Start date, YYYY-MM-DD (inclusive). | |
| partner_code | No | ||
| only_unposted | No |