pohoda_list_movements
Retrieve and filter movement records from POHODA accounting software by date range. This read-only export returns JSON data for inventory tracking and analysis.
Instructions
List movement records from POHODA. Read-only export. Supports filtering by date range. Returns JSON array of movement records.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pohoda_list_movements"
}
}Input 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:64-88 (handler)The implementation of the `pohoda_list_movements` tool, including its registration, parameter schema, and the handler function that builds the XML request, calls the POHODA client, and processes the response.
server.tool( "pohoda_list_movements", "List movement records from POHODA. Read-only export. Supports filtering by date range. Returns JSON array of movement 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:listMovementRequest", NS.lst, "lst:requestMovement", (req) => applyFilter(req, params) ); const response = await client.sendXml(xml); const parsed = parseResponse(response); const data = extractListData(parsed); return jsonResult("Movements", data, Array.isArray(data) ? data.length : 0); } catch (e) { return err((e as Error).message); } } );