cogny clie-commercefirst 15 calls free

    abicart summed up from the shell.

    Pull Abicart orders, revenue per week, best sellers, articles, customers and discounts as JSON — from Bash over the Abicart MCP. One admin API token, then every read is a shell command an agent can schedule, and catalog edits go through the same approval gate as every other write in Cogny.

    • 1. sign up, free for the first calls (uses your git email)npx @cogny/cli init --agent claude-code
    • 2. see every Abicart toolcogny tools list
    • 3. call any tool from bash, no MCP wiringcogny tools call mcp__Abicart__get_sales_summary --input '{…}'
    01two paths
    you're a person

    Checking how an Abicart shop is doing means opening the order list, exporting it, and building the week-over-week sums in a spreadsheet. get_sales_summary pages through every order server-side and returns the totals per day, week or month in the shop’s base currency in one call. Connect Abicart once in Cogny Solo and let your coding agent, or a scheduled loop, do the querying for you.

    Start Solo
    you're an agent

    Sign yourself up with one command. The CLI issues a key, wires nothing, and exposes every Abicart tool over JSON-RPC. The first 15 calls are free.

    • npx @cogny/cli init --agent claude-code
    02tools call

    real Abicart tools.

    Tool names as the Abicart MCP serves them. Send --input JSON, get JSON back. The payloads are illustrative.

    • mcp__Abicart__get_sales_summary

      Orders and revenue per ISO week, foreign currencies converted with each order’s exchange rate.

      • cogny tools call mcp__Abicart__get_sales_summary \ --input '{"start_date":"2026-08-01","end_date":"2026-09-07","group_by":"week"}'
      example response
      {
        "base_currency": "SEK",
        "orders_scanned": 99,
        "totals": {
          "orders": 99,
          "revenue_inc_vat": 56889.12,
          "revenue_ex_vat": 45661.01,
          "avg_order_value_inc_vat": 574.64
        },
        "periods": [
          {
            "period": "2026-W32",
            "orders": 23,
            "revenue_inc_vat": 13796.03,
            "revenue_ex_vat": 11086.35,
            "avg_order_value_inc_vat": 599.83
          },
          {
            "period": "2026-W33",
            "orders": 17,
            "revenue_inc_vat": 9828.47,
            "revenue_ex_vat": 7862.77,
            "avg_order_value_inc_vat": 578.15
          },
          {
            "period": "2026-W34",
            "orders": 23,
            "revenue_inc_vat": 15703.03,
            "revenue_ex_vat": 12562.43,
            "avg_order_value_inc_vat": 682.74
          }
        ],
        "by_currency": {
          "SEK": {
            "orders": 87,
            "revenue_inc_vat_native": 46834.2,
            "revenue_inc_vat_base": 46834.2
          },
          "EUR": {
            "orders": 6,
            "revenue_inc_vat_native": 577.55,
            "revenue_inc_vat_base": 6377.25
          }
        },
        "by_payment_status": {
          "paid": 96,
          "reserved": 3
        }
      }
    • mcp__Abicart__get_top_articles

      Best sellers in a window, by revenue or quantity.

      • cogny tools call mcp__Abicart__get_top_articles \ --input '{"start_date":"2026-08-01","end_date":"2026-09-07","limit":3,"metric":"revenue"}'
      example response
      {
        "base_currency": "SEK",
        "orders_scanned": 99,
        "distinct_articles": 99,
        "totals": {
          "quantity": 1233,
          "revenue_inc_vat": 51137.11,
          "revenue_ex_vat": 40909.74
        },
        "articles": [
          {
            "article_id": 222423275,
            "article_number": "9099-4",
            "name": "Härliga rosetter, Bra Jobbat, 10-pack med hake",
            "quantity": 20,
            "orders": 6,
            "revenue_inc_vat": 5000,
            "revenue_ex_vat": 4000
          },
          {
            "article_id": 222423273,
            "article_number": "9099-3",
            "name": "Härliga rosetter, Bra Jobbat, 10-pack med säkerhetsnål",
            "quantity": 19,
            "orders": 1,
            "revenue_inc_vat": 4750,
            "revenue_ex_vat": 3800
          },
          {
            "article_id": 222423069,
            "article_number": "9099-1",
            "name": "Roliga hästrosetter, 10-pack med hake",
            "quantity": 10,
            "orders": 2,
            "revenue_inc_vat": 2500,
            "revenue_ex_vat": 2000
          }
        ]
      }
    • mcp__Abicart__list_orders

      Filter orders by window and status, page with offset.

      • cogny tools call mcp__Abicart__list_orders \ --input '{"ordered_after":"2026-09-01","payment_status":"reserved","include_items":true,"limit":1}'
      example response
      {
        "items": [
          {
            "uid": 278529192,
            "ordered": "2026-09-07T19:32:27Z",
            "currency": "SEK",
            "paymentStatus": "reserved",
            "deliveryStatus": "unsent",
            "costs": {
              "total": {
                "exVat": 108,
                "incVat": 135,
                "vat": 27,
                "currency": "SEK"
              }
            },
            "items": [
              {
                "uid": 447436592,
                "article": 222422963,
                "articleNumber": "9999-14",
                "articleName": "Världens bästa hund - LAVENDEL med tassband",
                "choices": {
                  "quantity": 1
                }
              }
            ]
          }
        ],
        "count": 1,
        "limit": 1,
        "offset": 0,
        "has_more": true
      }
    03tools list

    the rest of the surface.

    A sample of the other Abicart tools. Run cogny tools list --json for every tool and its input schema.

    • mcp__Abicart__get_shop
    • mcp__Abicart__count_orders
    • mcp__Abicart__get_order
    • mcp__Abicart__get_order_shipments
    • mcp__Abicart__list_articles
    • mcp__Abicart__get_article
    • mcp__Abicart__list_article_groups
    • mcp__Abicart__get_article_group_tree
    • mcp__Abicart__list_customers
    • mcp__Abicart__count_customers
    • mcp__Abicart__list_discounts
    • mcp__Abicart__update_article
    • mcp__Abicart__update_discount
    • mcp__Abicart__call_method
    04then a verdict

    calls from a script. verdicts from cogny.

    Every write is logged with who authorised it. Launches your agent makes (a new campaign, a new ad) become measured tickets automatically; for other changes, your agent offers to register them. Cogny measures each in your own data, three days later for ads and seven for content and SEO, and closes it as worked, partial, didn't work or inconclusive.

    • worked

      Moved the number. Every measured win has a share card.

    • partial

      Some of it did.

    • didn't work

      On the record anyway, so it isn't proposed again.

    • inconclusive

      Not enough data to call.

    How the loop works

    05questions

    questions.

    Is this an official Abicart CLI?
    No — it is the Cogny CLI calling the Abicart MCP over the cogny-mcp-proxy, which speaks Abicart’s JSON-RPC 2.0 API (developer.abicart.se). You connect an Abicart admin API token once in Cogny, then read the shop from Bash. Abicart AB is not affiliated.
    Where do I get the token?
    In the Abicart admin for the webshop, create an API token and copy the value in the Token column. It is an administrator token bound to that shop, so no shop id is needed — the MCP resolves it from the token.
    Can it modify my shop?
    Only through explicitly named write tools — update_article, create_article, update_article_group, update_order (note/tags/external number), update_customer, create_discount and update_discount — each flagged as a write so Cogny asks before running them. Deletes, checkout, payment capture and shipping are not exposed; the call_method escape hatch blocks them too.
    How are multi-currency orders summed?
    get_sales_summary and get_top_articles convert each order to the shop’s base currency using the exchange rate Abicart stores on the order at purchase time, and also report native amounts per currency.
    06related

    Building an agent? The full tool map for every server is one fetch: /cli/llms.txt

    abicart, then a verdict.