pohoda_list_vat
Export VAT classification records from POHODA accounting software with date-based filtering. Returns data in JSON format for analysis and reporting.
Instructions
List VAT classification records from POHODA. Read-only export. Supports filtering by date range. Returns JSON array of VAT classification records.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateFrom | No | Filter from date (DD.MM.YYYY or YYYY-MM-DD) | |
| dateTill | No | Filter till date (DD.MM.YYYY or YYYY-MM-DD) |
Implementation Reference
- src/tools/reports.ts:90-114 (handler)The handler for the 'pohoda_list_vat' tool, which builds an XML request to export VAT classification records from POHODA and processes the response.
server.tool( "pohoda_list_vat", "List VAT classification records from POHODA. Read-only export. Supports filtering by date range. Returns JSON array of VAT classification records.", { dateFrom: z.string().optional().describe("Filter from date (DD.MM.YYYY or YYYY-MM-DD)"), dateTill: z.string().optional().describe("Filter till date (DD.MM.YYYY or YYYY-MM-DD)"), }, async (params) => { try { const xml = buildExportRequest( { ico: client.ico }, "lst:listClassificationVATRequest", NS.lst, "lst:requestClassificationVAT", (req) => applyFilter(req, params) ); const response = await client.sendXml(xml); const parsed = parseResponse(response); const data = extractListData(parsed); return jsonResult("VAT classification", data, Array.isArray(data) ? data.length : 0); } catch (e) { return err((e as Error).message); } } );