pohoda_list_stores
Export a list of stores or warehouses from the POHODA accounting system to manage inventory locations and stock data.
Instructions
Export list of stores (warehouses) from POHODA
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_stores"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/stock.ts:157-176 (handler)Handler implementation for the pohoda_list_stores tool.
server.tool( "pohoda_list_stores", "Export list of stores (warehouses) from POHODA", {}, async () => { try { const xml = buildExportRequest( { ico: client.ico }, "lst:listStoreRequest", NS.lst, "lst:requestStore", ); const resp = parseResponse(await client.sendXml(xml)); const data = extractListData(resp); return jsonResult("Stores", data, data.length); } catch (e) { return err((e as Error).message); } }, );