get_ledger
Retrieve a ledger’s master details and its transactions within a date range. Provide the exact ledger name and optional company to get vouchers.
Instructions
Get a ledger's master details plus its transactions (vouchers) in a date range.
Args: ledger_name: Exact ledger name as it appears in TallyPrime. company: Company name. If omitted, uses the configured default. from_date: Start date, ISO format YYYY-MM-DD. Optional. to_date: End date, ISO format YYYY-MM-DD. Optional.
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": {
"ledger_name": "<ledger_name>"
},
"name": "get_ledger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | No | ||
| to_date | No | ||
| from_date | No | ||
| ledger_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||