Skip to main content
Glama
hlebtkachenko

POHODA MCP Server

pohoda_list_vyroba

Export production documents from POHODA accounting software by specifying document ID, date range, or last changes filter.

Instructions

Export production documents (výroba) from POHODA

Input Schema

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

Implementation Reference

  • The handler for `pohoda_list_vyroba` that builds the XML request, sends it via the client, and returns the result.
    async (params) => {
      try {
        const xml = buildExportRequest(
          { ico: client.ico },
          "lst:listVyrobaRequest",
          NS.lst,
          "lst:requestVyroba",
          (req) => applyFilter(req, params),
        );
        const resp = parseResponse(await client.sendXml(xml));
        const data = extractListData(resp);
        return jsonResult("Production documents", data, data.length);
      } catch (e) {
        return err((e as Error).message);
      }
    },
  • Registration and definition of `pohoda_list_vyroba` tool.
    server.tool(
      "pohoda_list_vyroba",
      "Export production documents (výroba) from POHODA",
      {
        id: z.number().optional().describe("Document 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"),
      },

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