Skip to main content
Glama
hlebtkachenko

POHODA MCP Server

pohoda_list_service

Export service records from POHODA accounting software by specifying ID, date range, or last changes.

Instructions

Export service records from POHODA

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoService record ID
dateFromNoDate from
dateTillNoDate to
lastChangesNoOnly changed after this date

Implementation Reference

  • The "pohoda_list_service" tool is defined and implemented in src/tools/production.ts. It uses buildExportRequest to construct the request, sends it via the PohodaClient, and returns the parsed list data.
    server.tool(
      "pohoda_list_service",
      "Export service records from POHODA",
      {
        id: z.number().optional().describe("Service record ID"),
        dateFrom: z.string().optional().describe("Date from"),
        dateTill: z.string().optional().describe("Date to"),
        lastChanges: z.string().optional().describe("Only changed after this date"),
      },
      async (params) => {
        try {
          const xml = buildExportRequest(
            { ico: client.ico },
            "lst:listServiceRequest",
            NS.lst,
            "lst:requestService",
            (req) => applyFilter(req, params),
          );
          const resp = parseResponse(await client.sendXml(xml));
          const data = extractListData(resp);
          return jsonResult("Service records", data, data.length);
        } catch (e) {
          return err((e as Error).message);
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hlebtkachenko/pohoda-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server