pohoda_list_settings
Export specific settings lists from POHODA accounting software, including numerical series, bank accounts, stores, and categories, for integration with MCP-compatible clients.
Instructions
Export settings/lists from POHODA. Types: numericalSeries, cashRegister, bankAccount, centre, activity, payment, store, storage, category, accountingUnit
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settingsType | Yes | Type of settings to export |
Implementation Reference
- src/tools/settings.ts:25-49 (handler)The implementation of the `pohoda_list_settings` tool, which handles the request to export settings from POHODA based on the provided settingsType.
server.tool( "pohoda_list_settings", "Export settings/lists from POHODA. Types: numericalSeries, cashRegister, bankAccount, centre, activity, payment, store, storage, category, accountingUnit", { settingsType: z.enum(settingsTypeEnum).describe("Type of settings to export"), }, async (params) => { try { const cfg = SETTINGS_TYPES[params.settingsType]; if (!cfg) return err(`Unknown settings type: ${params.settingsType}`); const xml = buildExportRequest( { ico: client.ico }, cfg.listTag, cfg.listNs, cfg.requestTag, ); const resp = parseResponse(await client.sendXml(xml)); const data = extractListData(resp); return jsonResult(`Settings: ${params.settingsType}`, data, data.length); } catch (e) { return err((e as Error).message); } }, );