gl_entries
Retrieve general-ledger rows for a date range, optionally filtered by account, party, or voucher. Automatically excludes cancelled entries and signals truncation when the result exceeds the limit.
Instructions
General-ledger rows for a date range, optionally filtered by
account / party / voucher_no / voucher_type. Cancelled GL is ALWAYS
excluded (is_cancelled=0 — cancel+amend refund reworks drop out
automatically). Truncation is explicit: when more rows exist than
limit, the result carries truncated:true — never a silent cut, a
silently-shortened ledger reconciles to wrong numbers. limit is
clamped to 1..5000 (0 or empty falls back to 500 — NOT Frappe's
"0 = all" convention); for more rows, paginate by narrowing the date
range. Read-only.
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": {
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "gl_entries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| party | No | ||
| account | No | ||
| to_date | Yes | ||
| from_date | Yes | ||
| voucher_no | No | ||
| voucher_type | No |