Connect an assistant

Point Claude, or any assistant that speaks MCP, at your own figures. It reads the same P&L you do, and it can propose a change to your cost model that you approve in the conversation.

Connect it

In Claude: Settings, Connectors, Add custom connector, and paste this address.

https://vecksapp.com/api/mcp

Claude reads the address, works out that it needs to sign you in, and shows you two settings it has already detected. Leave both as they are and press Connect. Either OAuth client option works: Vecks supports both the hosted client metadata Claude recommends and registering a client of its own.

You land on a Vecks page. Sign in if you are not already, choose which company the assistant should reach, decide whether it may change costs as well as read them, and approve. That is the whole setup. The connection then appears under Configure, Assistants, where you can end it at any time.

Two things worth knowing before you start. Every member of a company can connect an assistant, and it reaches what that person may open: an admin limited to some pages gets only the tools of those pages (the P&L tools for the P&L, the order tool for Orders, and so on). An admin sees and ends only their own connections; the owner sees and ends all of them. A connection stops at once when its person leaves the company. And one connection reaches one company: if you run several, add one connection each, which is also what keeps it unambiguous which figures an answer is about.

What it is allowed to do

A connection is either read only or read and change, and you choose which when you approve it. A read-only connection is not even shown the tools that change things, so it cannot spend a turn trying.

Reading reaches everything you can read in Vecks: the statement, the breakdowns, your cost rules, your products, your settings, and individual orders. Opening an order is written to the access log, exactly as it is when you open one yourself, so there is a record of what was read and by whom.

Changing is bounded, and the bound is structural rather than a promise. A change is always proposed first: it is run against your real orders inside a transaction that is rolled back, and what comes back is the whole P&L before and after it. Committing takes the id of that proposal and nothing else, so there is no way to commit a change whose effect was not produced first. A proposal can be used once and expires after fifteen minutes, and every commit is recorded permanently, outliving the connection that made it.

A page of your own that writes can make a change in one call instead, with make_change: the change is made at once, with no preview shown first. It needs a reason. It is the same change, from the same list, recorded the same way with the connection's name and the reason, and it is undone from the record of changes where it can be. A delete cannot be undone, and the answer says so. A month you closed still needs your yes, and your own acts as the owner stay yours.

The proposal comes back with its effect already written as a table, the lines that move and the net, so your assistant shows you the figures Vecks produced rather than its own summary of them. A change also keeps the reason you gave for it, and any assistant can read the changes and their reasons back later, so “why is this rate what it is” has an answer after the chat is gone.

The reason for that shape, said plainly: Vecks reads text it does not control, such as invoice lines, spreadsheet cells and campaign names. A model holding a write tool is a model that can be argued with. Preview-then-commit is what keeps an argument from becoming a silent change to your numbers.

Reading tools

43 tools, available to every connection. The indented text under each is what the assistant itself is told, written for the model choosing between them.

None of them changes anything, and each says so to your assistant, so most assistants let you allow reading once instead of asking before every question. If yours asks each time, that is its setting rather than ours: look for an always-allow option on the approval it shows you.

access_log“Was this read of the open invoices kept in the access log?”

The newest rows of a company's access log: who opened which view that names orders, people or invoices, and when.

A KKG operator's tool. Read only.

InputTypeMeaning
actionstring, optionalOnly this action, for example cash.
companystring, optionalAnother company to read, by its id or its name. Default: this connection's company.
limitinteger, optionalHow many rows, 1 to 100. Default 50.

The access log of a company, newest first: who opened a view that names orders, people or invoices (order_list, order_detail, ads_report, cash, books_brief, creators, member_password), which resource and when. The same rows Configure shows a superadmin, nothing more. A repeat of the same person, action and resource within ten minutes is one row. Writes nothing. A KKG operator's tool (superadmin only). Returns the company and the rows (actor_email, action, resource, created_at), at most 100.

ads_report“Which ads are wearing out, and which are worth more budget?”

Every Meta ad that spent in the period with its spend in your currency, Meta's purchases and value on their attribution window, cost per Meta purchase, hook and hold or link CTR, its launch date, its verdict against its own past, whether it is readable yet, and the three equal periods before it; with the account median, the campaigns and the market strip beside them.

An ad's spend is its share of what the P&L booked for its campaign and day, so the ads add up to the statement. There is no profit per ad: no order names its ad, and the answer says so rather than allocating one.

InputTypeMeaning
campaignstring, optionalonly the ads of one campaign, by its id or a part of its name
periodstring, optional'7d', '14d' or '30d' (the last N closed days), a month 'YYYY-MM' (a running month is its closed days), or 'YYYY-MM-DD..YYYY-MM-DD'; defaults to '7d'
verdict"fatiguing" | "limited" | "holding" | "not readable yet" | "never delivered", optionalonly the ads with this verdict; the counts, median and strip stay whole

Results per Meta ad for a period, read beside the P&L and never booked: per ad its spend in the reporting currency (its share of what the P&L booked for its campaign-day, so the ads of a campaign sum to the statement), Meta's purchase count and value on the ad set's attribution window, cost per Meta purchase, hook and hold rate for a video or link CTR for a static, launch date and days live, the verdict (fatiguing, limited, holding, not readable yet, never delivered) with the multiple over the ad's own past and the past it was read against, whether it is readable and the spend still needed, and the three equal periods before; plus the counts behind the page's sentence, the account median with its n, the campaigns with their booked spend, and the market strip (contribution before and after ads per market, with the per-order figure). Every figure says whether Meta reported it or Vecks derived it. Every ad, ad set, campaign and ad account carries Meta's own id, so the same object can be read or changed with Meta's Ads MCP server. It refuses a profit, margin or return per ad, because no order names its ad and a per-ad margin would be an allocation nobody decided; the answer carries the refusals and their reasons, so say them rather than computing one.

amazon_charges“Which kind of Amazon charge is not booked to a line?”

Each kind of Amazon account charge with its count, total, first and last day, and the line it books on or nothing.

Read only. Map a kind with amazon_charge_map_set.

Amazon's account-level charges by kind (transaction type and description, as Amazon names them): how many, their total in Amazon's currency, the first and last day, and the cost line each kind books on, 'ignore', or null where no line takes it yet (that money is missing from every figure and the data-quality kind unmapped_amazon_charge counts it). To map a kind, propose amazon_charge_map_set with its transaction_type and description and an item_key from items, or ignore true. Read only.

ask“Net revenue by market for October, as one figure and its rows.”

The engine's answer: the figure, its sentence, the rows and the notes, the same figure the P&L shows, to the cent, with each slot you left out said with why.

A question is a typed value (table, measure, filters, period, operation, split, format), so no word is guessed. Every answer carries the contract's version.

InputTypeMeaning
countinteger, optionalHow many groups a ranking gives, 1 to 200.
filtersobject, optionalA dimension's key to a list of its values' keys, for example {"unit": ["<unit key>"], "market": ["US"]}. The unit all is the whole company.
format"own" | "share" | "per", optionalDefault own: the measure in its own unit.
measurestring, optionalA measure's key of the table (for example a line of the P&L, line:<item>, or a subtotal). Default: the table's main measure.
ofstring, optionalThe measure a share or a per is of. Default the table's own base.
operation"value" | "compare" | "rank" | "trend" | "list", optionalDefault value.
order"top" | "bottom", optionalA ranking's order. Default top.
periodobject, optional{kind, from?, to?, n?, against?}. kind: month, mtd, ytd, pace, trend, days, range or now; days are YYYY-MM-DD. Default: the newest month the figure is final in, or now for a table read as it stands.
splitstring, optionalA dimension's key: a row per value.
tablestringA table's key from tables: pnl, cash, owed, stock, ads, creators or pipeline.

One typed question to Vecks's engine, the one the assistant's figures come from, so a figure equals the P&L to the cent. Give the keys tables gave: table, and optionally measure (default the table's main), filters (a dimension's key to a list of its values), period ({kind, from, to, n, against}), operation (value, compare, rank, trend, list), split (a dimension), format (own, share, per) with of, count and order (top or bottom) for a ranking. A slot left out is the engine's default, and the answer says each assumed slot with why. Returns the version, the question as it ran, the figure (value, unit, before where compared, currency), what it is, the engine's own sentence, the windows read, how far the figure is final (through), the columns and the rows (200 at most), the parts of a trend and the notes; or refused, one plain line, where the question gets no figure. A read of cash, money owed, ads, creators or pipeline rows is kept on the access log as that page's (the pipeline as the Orders page's list). Writes nothing else.

audit_runs“What did the model find in the daily checks that the rules did not?”

Per day what the rules and the model found, the findings only one of them found, and every finding only the model found with how many days.

A KKG operator's tool. Read only.

InputTypeMeaning
companystring, optionalAnother company to read, by its id or its name. Default: this connection's company.
daysinteger, optionalHow many days back, 1 to 60. Default 14.

The daily setup checks side by side, day by day: what the rules found and what the model beside them found, from the kept runs of the last days (default 14, at most 60). Writes nothing. A KKG operator's tool (superadmin only), the same read as the audit comparison route. Returns per day the count each found, the findings both found, the findings only the rules found and only the model found (with severity, title and detail), model_only: every finding the model found that no rule did, with how many days, and daily_passes: each automatic run in the day's hour, when it started and finished (none: cut off) and its message, and company_passes: the company's own hourly passes, newest first (48 at most), each with its steps and their ms in order, the slowest three, when it finished (none: cut off in its last step) and its result, and assistant_first_word_ms: over the assistant's answers kept in the window, how many and the p50 and p95 time in ms from the request to the first word, and assistant_reads: the record of how the assistant's readers read the questions in the window (asked: entered questions; second_read: those the second reader has read, in its pass every 15 minutes; differed: where its question is not the one that was run; waiting: entered questions it has not read yet, and oldest_waiting_minutes; picks: chips a person changed; rows: the newest 50 of those with the words, each reader's draft and the question run), for tuning the readers. Each model_only finding is a rule to write, or the model's noise, before the model is switched off.

books_brief“What must the bookkeeper fix for September? Write them the email.”

The lines on accounts that need a business unit and have none, the stock change Vecks would post per product, and the costs where the books and the model disagree.

The same three lists as the Books brief page, in the statement's sign. It only reads: Vecks never writes to the accounting.

InputTypeMeaning
monthstring, optionalYYYY-MM; the last closed month when left out

The bookkeeper's brief for one month, the page Invoices → Accounts → Books brief: (1) untagged: the voucher lines on accounts that need a dimension (the business unit) and carry no value that maps to a cost center, by account, each with its day, voucher number, description, sum, key and unit (the business unit the unit maker proposes from the vendor's earlier tagged invoices, or the one a person placed it on; tagged says how many lines in the books carry a unit, the maker's whole history, so few answers early is expected). To put a line on a unit, propose placement_place with kind books, the line's key, tree company and the cost center's id as node (with the unit's id as proposal_id when it confirms a proposal), or placement_decline with the unit's id; a placed line books on that unit as a tagged line does, and a tag in the books still wins; (2) stock: the stock change Vecks would post, the month's units sold at the product cost rule per product; (3) apart: costs where the books and the model disagree, an account mapped from invoice lines against what the rules booked (kind invoices), or a line where the shop explains more than the books carry because the month is not closed (kind behind); (4) check: lines to check, a vendor's cost posted on an account its past invoices never used, with the usual account beside it (never booked; propose placement_decline with its id when the bookkeeper says the account is right). Every figure in the company's currency and the statement's sign (a cost negative). dimension names the dimension to ask for. Use it to write the monthly email to the bookkeeper. Read only; defaults to the last closed month.

bridge“Why is our Overheads figure not what Netvisor says for September?”

Netvisor's total on the accounts behind one figure of your statement, each difference as a step (the shop's own lines, months the books have not closed, dates, the period, the unit), and the Vecks figure, the steps summing to the difference to the cent.

InputTypeMeaning
cost_centerstring, optionalOne unit of the company tree, by key, name or id; its subtree is read. Default: the whole company.
fromstringISO date YYYY-MM-DD
nodestring, optionalline:<item key>, section:<section key>, stage:<subtotal key> or subtotal:<subtotal key>; default the bottom line
timing"actions" | "reconciliation", optional
tostringISO date YYYY-MM-DD

The bridge from Netvisor's books to one figure of the statement: the books' total on the accounts the figure reads (the voucher lines, in the statement's sign, over the whole months the period touches; the bottom line reads every result account), then each difference as a step with its parts, then the Vecks figure. The steps sum to the difference to the cent. Steps: accounts the map ignores, reads from invoice lines, or maps to no line (bottom line only); money the books carry that Vecks shows on other lines (the shop's lines a books line subtracts); money on these lines no account here carries (orders, rules, typed amounts); months not closed in the books yet; sales invoices and the books apart; rows dated in another month than their order; days of a month outside the period; other units (with cost_center); rounding and currency. Name the figure as node 'line:<item key>', 'section:<section key>', 'stage:<subtotal key>' or 'subtotal:<subtotal key>' (keys from get_layout); leave it out for the bottom line.

cash_backtest“How far off was the 13-week cash forecast this autumn?”

The 13-week board run as of each past Monday and held to what the bank did after it: per kind of money the forecast, the bank, the error and its direction, with what could not be checked said apart.

InputTypeMeaning
fromstringthe first Monday (any day: its Monday is read)
mondaysboolean, optionaltrue adds each Monday's cells; default the summary only
tostringthe last Monday

The 13-week cash board replayed as of each past Monday in a range and held to the bank. The board runs on the facts as they stood that Monday (the books' whole months before it, the invoices open then, the shop and the ads before it; typed facts and edits left out). Two truths, each with its coverage: weekly, the bank accounts the books post daily, only the kinds of money they carried in the 120 days before the Monday (other kinds are not_checked); monthly, every bank account over the whole months all are posted through. A bank line's kind comes from the invoice it names, else its counter-account; a payment on payables or receivables that names no invoice is not_matched. Per kind: forecast, actual, absolute error, bias (forecast less actual) and the error as a share of the bank's money; balance_error is the closing's error from the flows alone (the replayed board has no opening), through week 1, 4, 8 and 13; unknown_paid the open invoices set aside as paid where the bank lines do not say; invoice_ref_share how much of the truth's money named an invoice the books hold (low means the bank writes references another way). Read only. Kinds: sales, payouts, purchases, other, ads, salaries, pension, tax, loans, vat.

cash_weeks“What is in the bank, and which week is the lowest?”

The bank today with its day, the minimum kept, and per week from this one the money in, the money out and the bank at the week's end, with VAT, as money moves.

The 13-week cash board, as the Cash page shows it: the bank today (the opening, its day and how it was read), the minimum the company keeps, then per week from this one (Monday to Sunday) the money in, the money out and the bank at the week's end, with VAT, as money moves, and what could not be read. Every row behind a week is on the Cash page. Only when the company has the cash board switched on. A read model beside the P&L: nothing here is booked.

changes“Why is shipping to Canada 45 euros? Who changed it, and from where?”

Every change applied to the model, newest first, whatever the door (the app, the chat, a connected assistant, a linked sheet, the setup, a store's product fields): who, when, the change in one sentence, the reason the person gave, the months it moved and any new data-quality flags.

It only reads. Every change is recorded in the same transaction as the change itself, so nothing applied is missing from it.

InputTypeMeaning
containsstring, optionalwords in the summary, the reason or the change
door"app" | "chat" | "mcp" | "sheets" | "onboarding" | "sync", optionalonly changes that came through this door
sincestring, optionalonly changes on or after this day, YYYY-MM-DD

Every change applied to this company's model, newest first, up to 50, whatever the door: the app's editors, the chat, a connected assistant (MCP), the Sheets refresh, the onboarding, the product-field sync. Each says when, who, the door and its reference (the connection, the thread), the change in one sentence, the reason the person gave, what the rebuild touched (none, scope, full), the months it moved, new data-quality flags and the change itself, and its status: applied, refused (a person's change a closed month stopped) or waiting (a sheet or store re-read a closed month stopped, which the owner can apply with apply_waiting until the next read of the same source settles it). Filter by words in the sentence, the reason or the change (an item key, a rate id), by door, or by a first day. Read it before answering why a rule is what it is.

check_engine“Is the engine still equal to the ledger?”

The count of differences between the kernel engine and the ledger the last rebuild wrote, a page of them (up to 200), and the run times; for a month asked, the cost the ad spread over products weighs by, the ledger's against the engine's. Nothing is written.

A KKG operator's tool, the same as Check the engine on Configure. A save since the last full rebuild can show as differences, so rebuild first.

InputTypeMeaning
companystring, optionalAnother company to run it on, by its id or its name (a KKG operator reaches every company). Default: this connection's company.
limitinteger, optionalHow many differences to return, at most 200. Default 60.
measureboolean, optionalAlso measure move 3a: each read of the engine's loader (rows, ms, size), and the engine writing the ledger in a transaction that is rolled back (load, engine, delete, insert, customers, total ms), in full (write) and as a save's diff on the ledger as it stands (write_diff, with the rows it moved), and as one real save: the most used rate moved by one from the newest month it booked, written as a diff (write_save). Readers see nothing; a rebuild of the company waits the few seconds it takes.
measure_part"write" | "diff" | "save" | "written" | "load" | "keys", optionalMeasure one part alone and skip the comparison, so a large company answers within the client's time limit: write (in full), diff (a save's write on the ledger as it stands), save (one real save, rolled back), written (every row the ledger holds against what the engine would write over it now, rolled back) or load (the engine's loader as a rebuild runs it, one connection, each read's rows, ms and size, the slowest first; read only; as of the database's current date, not the company's today) or keys (the stored row keys of 169: the rows whose key is not their row's key now, 0 the only right answer, and the groups and rows the rebuilds have not keyed yet; read only).
offsetinteger, optionalThe first difference to return, from 0. Default 0.
weights_monthstring, optionalA month, YYYY-MM: also return that month's ad spread weights per line and product, the ledger's against the engine's.

Run the kernel engine on this company's data and compare it with the ledger the last rebuild wrote: every month in both timings, every dimension, the flags by kind and every ledger row, to the last digit, in one read-only snapshot. Writes nothing. A save since the last full rebuild can show as differences, so call rebuild_ledger first to read the engine alone. A KKG operator's tool (superadmin only). Returns the company, the migrations not applied yet, the count of differences, a page of them (offset, limit up to 200, default 60), the rows compared, the newest ledger row read and the run times, and per day since the browser preview shipped the saves it could preview and the differences it reported (browser_previews). With weights_month (YYYY-MM), also the cost per line and product that a product group's ad spend is spread by in that month, read off the ledger as it stands and off the engine.

creators“Which creators fit us best? Who is on the shortlist?”

Every Instagram creator measured for the company, the best fit first, with followers, engagement, reel reach, posts in 60 days, the fit score and its reason, and what Meta did not give.

Only when Creators is switched on for the company. A missing figure is null, never 0. Nothing here is money.

InputTypeMeaning
limitnumber, optionalat most this many, default 50, at most 200
min_fitnumber, optionalonly creators with this fit score or more
shortlistedboolean, optionalonly the shortlist

The company's Instagram creators, found and measured for it, the best fit first: per creator the handle, where it was found (hashtag, Ad Library, a competitor's partner, Creator Marketplace, the company's partnership ads, a person), followers, engagement rate (mean likes and comments of the last 12 posts over followers), reel reach rate (median plays of the reels over followers), posts in 60 days, reel share, the fit score 0 to 100 with its reason and the weights used, whether a person shortlisted it (shortlisted) or a run only picked it among its best for a person to confirm (run_pick, the run's id), what Meta did not give (data_notes), and when it was measured. A figure Meta did not give is null, never 0. Audience fields are estimates with their evidence unless audience_source says creator_marketplace. Only when the company has Creators switched on. Read beside the P&L: nothing here is money.

db_reads“Why does the Ads page take so long to open?”

The statements the database spends the most time on, the largest tables, what runs now, and the plan of a named app read.

A KKG operator's tool. Read only.

InputTypeMeaning
companystring, optionalThe company the named reads run on, by its id or its name. Default: this connection's company.
explainarray, optionalThe named app reads to run with EXPLAIN ANALYZE (see the names above).
fstring, optionalFor events_cell, events_books, rules_money and rules_gaps: the filter in the P&L page's spelling (cost_center:<key>, market:<name>). Default: none.
fromstring, optionalFor events_cell, events_books, events_campaigns, rules_money and rules_gaps: the first day, YYYY-MM-DD.
nodestring, optionalFor events_cell, events_books, rules_money and rules_gaps (line: only): the statement's row, as line:<key>, section:<key> or subtotal:<key>.
runs_hourstring, optionalA UTC hour, YYYY-MM-DDTHH: also return the company's connector reads and pass rows that started in it (runs).
timingstring, optionalFor events_cell, events_books, rules_money and rules_gaps: actions (default) or reconciliation.
tostring, optionalFor events_cell, events_books, events_campaigns, rules_money and rules_gaps: the last day, YYYY-MM-DD.
topinteger, optionalHow many statements to list, 1 to 60. Default 25.

What the live database spends its time on, to find a slow page. Read only. A KKG operator's tool (superadmin only). Returns the statements with the most total time since the statistics were reset (calls, mean and total ms, rows, the text cut to 500 characters; from pg_stat_statements where it is on), the largest tables (rows and size), the statements running now for more than 2 s, the last five automatic migration runs (when, which files, how long, which includes the rebuild of every company), and the ledger's own parts (its size, each index with its size, every foreign key with its delete action, every key from another table onto it, every trigger, and its stats: live and dead rows, updates and HOT updates, the last vacuum and analyze, pages and pages all visible). With explain, it also runs each named app read on the company with EXPLAIN (ANALYZE, BUFFERS) in a read-only transaction, at most 50 s each, and returns its time and the top of its plan. Names: ads_generation, ads_days, ads_list, ads_strip, ads_checks, ads_lifetime, config_spans, config_currencies, config_ad_read, customers (the select rebuild_customers runs after every rebuild, its insert left out), customers_generic (the same with the generic plan a function's cached statement takes), customers_serial (the same with no parallel worker, as a select that feeds an insert is planned), customers_one_pass and customers_one_pass_serial (the diff write's select, one pass over the ledger, with and without a parallel worker), customers_apart (the stored customers against the function's select, both ways: the top node's actual rows are the rows apart, 0 where every row is equal to the cent), voucher_hashes (the newest hash per voucher for the vouchers stored in the last 7 days, as an hourly run asks it), order_hashes (the newest hash per Shopify order for the orders created in the last 2 days, as an hourly read asks it), woo_order_hashes (the same per WooCommerce order), load_shopify (the rebuild's read of the newest row of each Shopify order), ledger_digest (the hourly write's sums of the stored row keys per month and source table), pipeline_deals (the pipeline's read of every stored copy of every WooCommerce order: its history of statuses and its newest figures), events_cell (the main query of the events behind one figure of the statement; give node, from and to, and f where the figure is filtered), events_books (the voucher lines read behind the same cell's books rows; the same arguments), events_campaigns (the campaign names read of the events; give from and to: it is asked for every campaign with ad spend in those days), component_lines (the statement's charges read per month; give from and to, and f and timing as the page has them), monthly_attribution (the monthly grading of the orders; give from and to), checks_unassigned (the statement's check of money with no market; give from and to, and f and timing as the page has them), rules_money and rules_gaps (the two ledger queries of the rules under one line of the statement, the depth dial's last level: its money per rule and day, and the orders no rule claimed; give node as line:<key>, from and to, and f and timing as the page has them). With runs_hour, also the company's connector reads (sync_runs) and pass rows (company_passes) that started in that UTC hour, each read with its window, rows, seconds and message.

events“What makes up B2B sales in September?”

The orders, invoices, vouchers, campaign days, monthly amounts and documents behind one figure of your statement, the most money first, each in one line, summing to the figure to the cent.

InputTypeMeaning
cost_centerstring, optionalOne unit of the company tree, by key, name or id; its subtree is read. Default: the whole company.
fromstringISO date YYYY-MM-DD
nodestringline:<item key>, section:<section key> or subtotal:<subtotal key>
offsetnumber, optionalskip this many events (pages of 50)
sourcestring, optionalOnly the events from one source, as the flows tool names it: store:<channel>, ads:<platform>, b2b, books, invoices, product:<store>, sheet or typed. Default: every source.
timing"actions" | "reconciliation", optional
tostringISO date YYYY-MM-DD

The events behind one figure of the statement, the most money first, as the owner sees them on hover: each an order (number, channel, country, units), a B2B sales invoice (number, customer, day), a voucher of the books (number, account, description), a campaign's day in one country, a monthly amount's month, or the document a charge's month was scaled to, with its amount in the statement's sign and its headline. A books row opens into its voucher lines and one event for what the shop's rows and the invoices already explain, so the events always sum to the figure (total). Name the row as node 'line:<item key>', 'section:<section key>', 'stage:<subtotal key>' (only the lines under that subtotal) or 'subtotal:<subtotal key>' (the running total, as on the statement; keys from get_layout). Paged by 50 (offset); rest says how many more and their sum.

feedback“What feedback came in today? What did people say about the P&L page?”

Every note a member sent from the mark on a button or a figure, newest first: when, who, the control's name, the page, where it stood (the period, the unit), the screen width and theme, and the words.

It only reads. A note taken back with Undo is gone.

InputTypeMeaning
containsstring, optionalwords in the note, the control or the page
sincestring, optionalonly notes on or after this day, YYYY-MM-DD

The notes members sent from the feedback mark on a button, newest first, up to 100: when, who, the page, the control's name (the button's words or its label), where it stood (the link with the period and filter, the theme, the screen width) and the words. Filter by words in the note, the control or the page, or by a first day. Read it before changing a surface, so a fix answers what people said about its controls. Read only.

flows“Is any shop money sitting under B2B? How much of E-commerce is typed?”

Each unit of your company with its statement and, per row, the money by where it came from: the store, the ad platform, B2B invoices, the books, invoices, sheets or a figure someone typed, and the typed share of the unit's costs.

InputTypeMeaning
channelstring, optionalonly this channel's rows
fromstringISO date YYYY-MM-DD
level"subtotals" | "lines", optionaldefault subtotals
marketstring, optionalonly this market's rows
timing"actions" | "reconciliation", optional
tostringISO date YYYY-MM-DD

The large flows of the statement: for a period, each unit of the company tree (its roots and the units directly under them) with its rows and, per row, the money by where it came from: the store (WooCommerce, Shopify, Amazon), the ad platform (Meta, Google ...), B2B invoices, Books, Invoices (a document's month), a product field, Sheets, or Typed (a rate or a monthly amount a person typed). typed_share is Typed's part of the unit's cost money, the one trust figure. Use it to check that each unit holds the money it should (no shop money under B2B, no books under the shop) and how much of a unit is typed. level 'subtotals' reads each subtotal as its running total, as the statement does; 'lines' reads every line that holds money. Every figure is the statement's, cut by unit and source.

get_allocation_gap“Which orders are behind the shipping cost that no product carries?”

The orders, campaigns or monthly amounts of a cost that a market, product or cost center does not reach in a month, each with what it booked and why, biggest first.

The same rows the cost model's allocation footer counts as a shortfall, so the two never disagree.

InputTypeMeaning
dimension"markets" | "products" | "costCenters"
item_keystringthe P&L line's key (from get_layout)
monthstringYYYY-MM

The rows of a cost that a dimension does not reach in a month: the orders (with ids), campaigns or monthly amounts behind the cost model's "X of Y allocated to products / markets / cost centers" shortfall, each with what it booked and why the money cannot reach a product, market or cost center (a charge per order not split by product, an order with no product to split by, a campaign with no market, a monthly amount). Use it to name the exact orders behind a gap instead of guessing.

get_breakdown“Which market is actually profitable? How much came from returning customers?”

The same statement split by one dimension: market, product, sales channel, campaign, cost center, or customer (new, returning, or unknown where the channel supplies no customer, as Amazon never does), with every stage per value.

Costs that carry no value for the dimension you chose are reported as unallocated rather than spread, so a market figure is never flattered by a cost that was never attributed to it.

InputTypeMeaning
dimension"market" | "sku" | "channel" | "campaign" | "cost_center" | "customer_type"
fromstringISO date YYYY-MM-DD
tostringISO date YYYY-MM-DD

P&L broken down by one dimension (market, sku, channel, campaign, cost_center, customer_type) for a date range. Amounts per dimension value and stage. By cost_center each cell has a depth in the company tree, and a cost center that holds others is the sum of its children (rolled_up true), so do not add a parent to its children. customer_type is new, returning or unknown, from the order's rank in its customer's history; Amazon orders are always unknown.

get_coverage“Which products and markets have no cost rules?”

The per-unit cost of every product in every market, broken into its components, and the per-order rules beside it.

The cost coverage matrix: per-unit cost per SKU and market with per-component breakdown, plus the per-order rules. Shows exactly which SKU/market combinations have missing or partial cost rules.

get_inventory“How many Hammer Downs do we have left, and how long will they last?”

Stock per product: on hand as the last count plus what arrived minus what sold since, units sold per day over the last 30 days, days left with the run-out date, and the shipments on their way.

On hand is derived from a count and the ledger, never kept as a running figure. A product nobody has counted reads as not counted rather than zero; a refund covering a whole order is read as the goods coming back.

Stock per product: on hand (last count + received - sold + returned since it; null = never counted), the last count (with its id), units sold and returned in the pace window, the selling pace in units per day, days left and the run-out date, open shipments (incoming units, next expected date, ids). Counts and shipments are recorded through propose_change (stock_count, inbound_create, inbound_receive, inbound_delete); none of them touches the ledger.

get_layout“What does my statement look like?”

The structure you have arranged: your subtotals in order, the sections under each, and the lines in each section, with the ids a change refers to.

Every one of these is yours to rename, move or remove. The statement is not a fixed shape we impose.

The statement's structure as the merchant has arranged it: subtotals in order (with ids), the sections under each (ids, labels), and the cost lines in each (item keys, labels). Everything here is the merchant's own and can be renamed, moved, reordered, added or deleted through propose_change (section_update, subtotal_update, cost_move, section_assign, item_create ...). Read it before saying something cannot be changed.

get_order“Why did this order cost that much?”

One order as the ledger booked it: every revenue and cost row, the rule that produced each, quantities, the exchange rate, and anything flagged. An order number is only unique within its channel, so give the channel when you know it.

Opening an order is written to the access log, exactly as it is when you open one in Vecks.

InputTypeMeaning
channel"woocommerce" | "shopify" | "amazon", optionalthe channel the order was placed on; without it, an order number shared by two channels reads as one order
order_idstring

One order exactly as booked in the ledger: every revenue and cost row with the matched rate (scope, note), quantities, FX, and any data-quality flags. Use to answer 'why does this order cost X'. An order number is only unique within its channel, so give the channel whenever it is known.

get_pnl“What did we make last month?”

Every line of your statement for the dates you give, in your reporting currency, with the order count. Name a unit of your company (E-commerce, B2B, Shared) to read that unit and everything under it alone.

Refund timing is a choice: 'actions' puts a refund on the day the order was placed, 'reconciliation' on the day the money went back.

InputTypeMeaning
cost_centerstring, optionalOne unit of the company tree, by key, name or id; its subtree is read. Default: the whole company.
fromstringISO date YYYY-MM-DD
timing"actions" | "reconciliation", optional
tostringISO date YYYY-MM-DD

P&L summary for a date range: every line (revenue, costs, profit stages) in EUR, plus the order count. timing 'actions' books refunds on the order date, 'reconciliation' on the refund date. cost_center reads one unit of the company tree (its key, name or id): that cost center and every one under it, so E-commerce, B2B or Shared alone.

get_settings“Which countries count as which market?”

Your start date and reporting currency, the market map, and the rules that decide what each ad campaign counts for.

The company first (its name and id), then its settings and mappings: start date, reporting currency, the month it is closed through and how far its books are posted, the market map (which ship countries are broken out as their own market; everything absent books as 'Others'), and the campaign rules (conditions on a campaign's platform, name, delivery country or tag → the markets it counts for, with a spread, a product and a cost center, each with its id for ad_rule_update), the cost centers with their ids, the values of the books' dimensions this year with the cost center each maps to (for dimension_map_set), and the standing placements (a campaign or a product code a person placed, beating every rule for it).

get_setup_health“Is this month's profit figure trustworthy yet?”

How completely the month's orders carry their costs, per category, plus the gaps that are blocking and the data-quality issues by kind.

Four states: loaded, awaiting actuals, a rule exists but nothing matched, and no cost logic at all. The last two are why a profit figure can be too high.

InputTypeMeaning
periodstring, optionalYYYY-MM or YYYY; defaults to the current month

How completely costs are attributed for a period (YYYY-MM or YYYY): per-category states (green = loaded, amber = estimates awaiting actuals, red = a rule exists but something didn't match, grey = no cost logic at all), the blocking gaps, and data-quality issue counts by kind.

invoices“Which lines on the March freight invoice do not match? What is still not mapped?”

Your invoices, and for one invoice every line with its month, what it maps to, and whether it books, matches, differs from what the rules booked (and by how much), or is missing.

The same statuses the Invoices screen shows. Mapping a line or booking a month is a change, so it goes through propose_change.

InputTypeMeaning
idstring, optionalan invoice id from the list, to read its lines
monthstring, optionalYYYY-MM, the month the invoice is about
status"open", optionalopen: only invoices with lines not mapped, or with an id only the lines that need a person
vendorstring, optionalpart of the supplier's name

Supplier invoices in Vecks (typed, read from a document, or read from Netvisor) for reconciling costs. Without an id: the newest 50 that fit the filters, each with its line count, how many lines are not mapped yet and how many book a month. With an id: every line with its own month, amount, what it maps to (a charge with item_key and component, and the rule under it, or a monthly amount by fixed_cost_id), its role (use = the amount books the month, compare = checked against what the rules booked, ignore, unmapped), whether the mapping is only suggested, and its status: booked, unbooked, matches, mismatch (with the difference and any gap between the line's quantity and the order count), missing, unchecked or ignored. Lines that are one cost over several months are grouped. To map or book, use propose_change: invoice_line_map (line_ids, item_key, component or fixed_cost_id, scope, role), charge_actual_set or fixed_actual_set for the month's amount, account_map_set to map a bookkeeping account once for every invoice. Read only.

list_fixed_costs“What are our monthly overheads?”

Every monthly amount with its P&L line, value, currency and the months it runs.

A monthly amount is spread daily, so a month is never a step at the end of it.

Every fixed (monthly) cost line with id, P&L line, label, monthly amount, currency and validity. Fixed costs spread daily: monthly amount divided by days in the month.

list_products“What are we selling?”

Registered products and bundles with what a bundle is made of, and any product seen in an order that nobody has registered.

The product (SKU) registry: single SKUs and bundles with their composition, plus any unknown SKUs seen in orders that are not registered.

list_rates“What are we charging ourselves for shipping to Canada?”

Every cost rule with its scope, basis, amount, currency and dates, split into what is in force and what it replaced.

Rules are versioned rather than overwritten, so the history is here too, and the ids are what a change refers to.

Every cost rate, grouped by P&L line and component, split into active and history versions. Includes each rate's id (needed for rate_update/rate_end/rate_delete), scope (sku/country/market/channel, null = all), basis, amount, currency and validity. For pct_of_net rates the amount is a percentage.

netvisor_accounts“Which accounts carry our costs, and what does each one map to?”

Every bookkeeping account with its name, this year's total in the books, how many invoice lines name it, and what it maps to on your statement.

From what Vecks last read from Netvisor. The books' sign: a cost positive, income negative.

The company's chart of accounts as read from Netvisor: every account with its name, this calendar year's net in the general ledger (debit positive: a cost positive, income negative), how many months the books carry it, how many invoice lines name it, and what it maps to on the statement (a cost line, a monthly amount, or ignored) and whether that figure comes from the books or from invoice lines. Balance sheet accounts are left out unless something names them. Read-only, from what Vecks last read.

netvisor_balances“How much is in the bank? What do we owe suppliers at the month end?”

Each bank account's balance, and the balance-sheet accounts on the last month end and today.

From what Vecks last read from Netvisor. The books' sign: an asset positive, a liability negative.

Balances as read from Netvisor: each bank account's balance on its date (with IBAN and currency), and the balance-sheet accounts (receivables, payables, stock, VAT, loans) on the newest two dates read, the last month end and today. The books' sign: an asset positive, a liability negative. Read-only, from what Vecks last read; read_at on each.

netvisor_ledger“What went through account 4000 in September? What did we book for this supplier?”

The voucher lines of the books for the dates you give, by account or by words in the description, with totals per account and month.

From what Vecks last read from Netvisor; the answer says when. At most 200 lines at a time, the totals always whole.

InputTypeMeaning
accountstring, optionalan account number, e.g. 4000
containsstring, optionalwords the line's description contains, e.g. a customer or supplier name
dimensionstring, optionalwords of a dimension the line carries, as 'name: value', e.g. 'B2B' or 'Produkt: Beam'
fromstring, optionalISO date YYYY-MM-DD
tostring, optionalISO date YYYY-MM-DD

The general ledger by voucher line as read from Netvisor (the newest read of each voucher, valid lines only): totals per account and month, and the lines themselves, newest first, up to 200, each with its date, voucher, account, amount (debit positive, credit negative), description and the dimensions the bookkeeper tagged it with (e.g. the business unit); a total per dimension value; and the vouchers Netvisor deleted in the dates. Filter by an account number, by words in the description (a customer's or a supplier's name usually stands there), by a dimension value (words of 'name: value', e.g. 'B2B'), and by dates; defaults to the last 31 days, at most two years at a time. Read-only, from what Vecks last read; read_at says when Vecks last read the books, changed_at when a voucher it stored last changed.

netvisor_open_items“Which supplier invoices fall due next week? Which customers have not paid?”

The unpaid purchase invoices and open sales invoices with their due dates, and the purchase payments of the last month.

From what Vecks last read from Netvisor, usually with VAT.

InputTypeMeaning
counterpartystring, optionalpart of the supplier's or customer's name
kind"purchase" | "sales", optionalonly unpaid purchase invoices, or only open sales invoices

Open items as read from Netvisor at its newest read: purchase invoices still unpaid and sales invoices open or not sent, each with its number, counterparty, date, due date, sum and what is still open, soonest due first, with the open totals; and the purchase payments Netvisor recorded in the last month, each saying whether a voucher books it yet. Filter by kind (purchase or sales) and by part of the counterparty's name. Sums usually with VAT. Read-only, from what Vecks last read.

netvisor_purchase_invoices“What did this supplier invoice us this quarter, and where does it land on the statement?”

The purchase invoices read from Netvisor with every line, its account and what it does on your statement.

InputTypeMeaning
accountstring, optionalonly invoices with a line on this account
fromstring, optionalISO date YYYY-MM-DD
tostring, optionalISO date YYYY-MM-DD
vendorstring, optionalpart of the supplier's name

Purchase invoices as read from Netvisor, newest first, up to 50: supplier, number, date, currency, total, and every line with its amount ex VAT, its bookkeeping account and what it does on the statement (which cost or monthly amount it maps to, and whether it books, is compared, is ignored or is not decided yet). Filter by supplier name, by an account on a line, and by dates; defaults to the last 92 days. Read-only, from what Vecks last read.

netvisor_sales_invoices“Which B2B invoices are still unpaid, and who owes the most?”

The sales invoices you sent in the dates you give, with what is still open on each and a total per customer.

Asked of Netvisor at the moment you ask. It only reads: it never sends, changes or pays an invoice.

InputTypeMeaning
customerstring, optionalpart of the customer's name, or their customer code
fromstring, optionalISO date YYYY-MM-DD
status"open" | "unsent", optionalonly open (unpaid) or unsent invoices
tostring, optionalISO date YYYY-MM-DD

Sales invoices asked of Netvisor live: the invoices the company sent in a date range, newest first, up to 200, each with its number, date, status, customer, reference, sum and what is still open, plus totals and a sum per customer. Filter by invoice date (defaults to the last 92 days, at most a year at a time), by status ('open' for unpaid, 'unsent'), and by part of a customer's name or their customer code. Sums are as Netvisor lists them, usually with VAT. Read-only: it never sends, changes or pays anything.

page_laps“Which read makes the P&L slow to open?”

Per page, the count of loads, the median of the server's total and of each named read's start and length, the slowest first.

A KKG operator's tool. Read only.

InputTypeMeaning
buildstring, optionalOnly the loads of this deploy, as the rows name it.
companystring, optionalThe company, by its id or its name.
daystring, optionalOnly this UTC day, YYYY-MM-DD.
kind"cold" | "press", optionalWith raw: only full loads (cold) or only presses in the app (press).
limitnumber, optionalWith raw: how many loads, 50 at most (the default).
page"home" | "pnl" | "cash" | "costs" | "orders" | "skus" | "inventory" | "ads" | "creators" | "config", optionalOnly this page.
rawboolean, optionalGive the loads one by one instead of the medians: each load's laps whole, in the order they start, the newest first.

The laps of a company's signed-in admin page loads, kept 7 days: per page and per kind of load (place or page), the count of loads, the median of the server's total and, for each named read (the session, the membership, the layout's reads, the page's own), the median of its start and of its length in ms, the slowest first. Reads run in parallel, so the laps overlap and do not add up to the total. The total is the server's time to the end of its response; the browser's paint is later. The proxy's own time is two laps before the stopwatch's 0, `proxy` and its call to the Auth server `proxy.auth`, so their start is negative (that is not a fault) and the total does not hold them. Under 5 loads no median is given. With `raw` it gives up to 50 loads whole instead: each load's time, page, kind of load (place or page), cold or press (a full load holds a `layout.` lap; a press in the app does not, read from the laps, no column of its own), build, total and every lap with its start, length and end. A row holds no person, no address and no query; a prefetch keeps none. `page` names one page (home, pnl, cash, costs, orders, skus, inventory, ads, creators, config) and `day` one UTC day, YYYY-MM-DD; `build` keeps only the loads of one deploy. Writes nothing. A KKG operator's tool (superadmin only).

pipeline“What is in the pipeline, by stage, and what did we win and lose each month?”

Every order status with its count and value, open deals by stage with weighted value and days in stage, won and lost by month, and how long orders stay in each status.

Read from the WooCommerce orders Vecks stores, without VAT. Never booked: the P&L does not change. With check, it also asks the shop for its own count per status, read only, and gives the difference.

InputTypeMeaning
checkboolean, optionaltrue: also ask the shop live, with the connection's own keys, for its own count of orders per status (WooCommerce's orders totals report), each site of the connection, every call 12 s at most, read only on the shop. shop_check gives per site and status the shop's count, Vecks's count, the difference and, where code knows it, why; a status the order read leaves out by rule (checkout-draft, carts never placed) has the shop's count and no difference. Where Vecks holds more of a status, it reads the shop's order ids of that status (10 pages of 100 at most) and asks each order Vecks holds that the shop does not list by id (20 at most a site): missing gives its number, the status Vecks holds and what the shop says now (another status, trash, or not found); cut says where a bound stopped the read. The whole check stops 45 s after it starts; what it did not reach is said in cut and the counts read stand. A site that refuses or does not answer is said in words; the rest of the answer stands. Default false.
monthsinteger, optionalHow many months back from this one the months list goes, 1 to 36. Default 13.

The sales pipeline read from the company's WooCommerce orders, every status: a deal is an order, its stage the order's status, its value the order's total without VAT in the company's currency. Gives every status the orders carry with its count and value, its state (open, won or lost, or not mapped) and per currency the totals as WooCommerce's own order list shows them (total with VAT, net without), so they can be held to the shop; the open deals by stage with their weighted value (value times the stage's chance) and days in stage; per month the orders made, won and lost; and per status the days orders spent in it before they moved, from the copies Vecks stored. processing, completed and refunded are always won (the P&L books them); every other status, WooCommerce's own or one a plugin adds (a quote sent), is not mapped until a person maps it with pipeline_stages. Never booked: the P&L does not change. Writes nothing. With check true it also asks the shop itself for its count per status and holds the deals to it (shop_check).

routes“Why does B2B hold this cost of goods? Which rule files Meta spend to E-commerce?”

Each unit of your company with the routes that filed money to it: a company rule and what it matches, an ad rule, a rate's own unit, a monthly amount, a tag in the books, a person's placement, or the default unit, each with its money per line, the most money first.

InputTypeMeaning
channelstring, optionalonly this channel's rows
fromstringISO date YYYY-MM-DD
limitnumber, optionalroutes per unit, default 12, at most 40
marketstring, optionalonly this market's rows
timing"actions" | "reconciliation", optional
tostringISO date YYYY-MM-DD

Why each unit of the company tree holds its money: for a period, per unit (its roots and the units directly under them), the routes that filed money to it, each in words (a company rule and what it matches, an ad rule, a rate's own unit, a monthly amount's own unit, a books tag, a person's placement, the default unit), with its money, its rows and its money per line, the most money first. Route not known is a row written before routes were stored. A route is why a row sits in a unit, never a new amount: a unit's routes sum to its money in the flows tool. Use it to see whether money reaches a unit by the rule it should, and which route to correct.

server_errors“Why did the pin not save this morning?”

The newest server errors Vecks kept, each with its route, its message and the first lines of its stack, for one route and one day where asked.

A KKG operator's tool. Read only.

InputTypeMeaning
daystring, optionalOnly this UTC day, YYYY-MM-DD.
limitinteger, optionalHow many rows, 1 to 100. Default 50.
routestring, optionalOnly this route, as the row holds it, for example assistant-pins.

The server errors Vecks kept, newest first: a page's or a route's own error with its message and the first lines of its stack (30 days are kept). The table holds no company, so the rows are every company's; `route` names one source, for example assistant-pins or assistant-names, and `day` one UTC day. A public link's token and a token, code, state or key parameter read <token>. Writes nothing. A KKG operator's tool (superadmin only). Returns the route and day asked and the rows (at, route, route_type, method, path, digest, message, stack), at most 100.

sync_status“Is the read done?”

Each connector's newest read: running, ok or failed, how far, its message, the rows read and when.

It only reads.

The newest read of each connector: running or ok or failed, how far it got, its message, the rows it read, when it started and finished. A read that sync_now started stays running until the ledger is rebuilt after it. rebuilds: the newest full rebuilds of the ledger, each ok, failed (with its error), running or cut off (its function ended first), with the time of each part in ms (lock, load, engine, write, commit), the newest ten; a rebuild a WooCommerce webhook ran carries the warm after it in the same ms (warm_ms, warm_read, warm_kept, warm_left, and warm_stopped 1 where a newer rebuild stopped it). kept_reads: the statement's kept reads asked in the last three days (what a warm reads again after a rebuild), their count, the sum of their read times in ms (a warm's cost, one read at a time), the five slowest, how many are kept for the ledger as it is now, and slow: every read name over 5 s with its slowest ms (what the warm after a rebuild leaves to the warm route, which reads it). warms: the warm after the rebuild of the company's newest passes (at most five): when the pass started, the warm's ms and its words (read, kept, left with the left reads by name and ms, the slowest first, ten at most, then the count; stopped, a newer rebuild; or not run with the time left and the time it needs). The warm after a rebuild reads the quickest first and leaves a read over 5 s to the warm route.

tables“What can my own page read from Vecks?”

Each table your pages open (the P&L, cash, money owed, stock, ads, creators, the sales pipeline) with its measures and dimensions in your company's own names, and how to write a question for ask.

It is the first call of a page you build yourself. Its keys, not its labels, go into ask.

What this connection can ask with ask, in the company's own names: each table it may read (the P&L, cash, money owed, stock, ads, creators, the sales pipeline, as the person's pages allow), with its measures (key, label, unit), its dimensions with their values (key and label), the measure a question reads where it names none (main), the period rule of a table read as it stands, and the one plain line where the company holds no data for it (none). Also the period kinds, the operations and the formats a question may use, the company, today and the contract's version. Writes nothing. Call it first, then build questions from its keys, never from labels.

test_cost_stack“What would we charge for a Swedish order of two units?”

The cost stack that would resolve for a product, country, market and channel you name, component by component.

It answers from the rules without touching an order, so it is the way to check a rule before anything is booked against it.

InputTypeMeaning
channel"woocommerce" | "shopify" | "amazon"
countrystring, optionalISO-2 ship country, optional
datestring, optionaldefaults to today
marketstringe.g. US, CA, GB, Others
skustring

Resolve the live cost stack for a hypothetical order line: which rate wins for every component given a SKU, ship country, market and channel. The same resolution the ledger uses (most specific rate wins).

unplaced_queue“What is still unplaced? Which product code costs us the most money?”

Every product code no product is registered under, every campaign no rule claims and every month of books lines with no business unit, the most money first, with their words and any proposals.

It only reads. Placing a row is the change placement_place, through propose_change; a placement is kept and never asked again. Lines in the books are fixed by the bookkeeper's tag, never in Vecks.

InputTypeMeaning
kind"sku" | "campaign" | "books" | "conflict", optionalonly rows of this kind
monthstring, optionalYYYY-MM: only rows that touch this month (a row's money is still its whole span from its first to its last day)

Everything the company's data cannot place yet, one row per thing, the most money first: an order line's product code no product is registered under (kind sku, placed on the product tree), ad spend no rule claims (kind campaign, placed on the market tree), an account's lines in the books that should carry a business unit and do not (kind books, read only: the bookkeeper tags them in the accounting; its lines and the units proposed for them are in books_brief), and a product code placed on a product that is now registered as a product of its own (kind conflict). Each row has its key, its words (the product's title, the campaign's name), its money in the company's currency, how many orders or days, the first and last day, and any proposals. To place a sku or campaign row, propose the action placement_place with the row's kind, key and tree and the node a person chose; a placement is kept and replayed on every rebuild, so nobody is asked twice.

Build your own page

Your own people can build a page of their own on your figures, with an assistant and this connection: a Claude artifact, or any app an AI tool makes. Two tools are made for it. tables says what the connection can ask, in your company's own names. ask takes one typed question and gives the answer of the engine the Vecks assistant uses, so a figure is the P&L's figure to the cent. A connection reads only the tables of the pages its person may open.

A question is a typed value. Each key comes from tables:

{ "table": "pnl", "measure": "<a measure's key>", "filters": { "market": ["US"] },
  "period": { "kind": "month", "from": "2026-10-01" }, "operation": "value" }
period monthOne whole month: from, its first day (2026-10-01). With against (another month's first day) a compare reads the month against that one. With no from: the last whole month.
period mtdThis month so far, against the same days of last month.
period ytdThis year so far, against the same days of last year.
period paceThis month at its pace (the month so far times its days over the days gone).
period trendThe last n whole months (n, default 6). With operation trend, a figure per month; the figure is the newest three against the three before.
period daysThe last n closed days (n, default 7), against the n before them.
period rangeAny days: from and to (2026-01-01 to 2026-03-31), against as many days before them.
period nowAs it stands today: a balance, a list of things (open invoices, shelves, the 13 weeks of the cash board).
operation valueThe figure for the period (the default).
operation compareThe period against the period before it (or against).
operation rankThe groups of split, largest first (order bottom for the smallest), count of them.
operation trendThe figure per month over the period's months.
operation listA table of things: its rows (invoices, shelves, weeks, ads, creators).
format ownThe measure in its own unit (the default).
format shareThe measure as a share of another measure (of; default the table's share base, net revenue on the P&L).
format perThe measure per one of another measure (of; default the table's per base, orders on the P&L).

A slot you leave out is the engine's default, and the answer says each assumed slot with why. Every answer carries the contract's version, now 2026-11-30.7. When it moves, this list says what changed:

2026-11-30.7The tool revert_surface: revert one connection's changes since a day of the company (its time zone is in the answer), newest first, with a dry run first; each change refused says why. The dry run measures each revert alone and says so (measured_alone); the first line (said) says how many were reverted and how many wait on closed months.
2026-11-30.6A figure and a number in a row's cells are rounded to the digits the sentence says them with: money to the cent, a share and a count to one decimal, a ratio of two columns to two (a trend's figure was a long decimal). The money in and out of a week of cash are numbers with unit money, the words in shown.
2026-11-30.5The tool make_change: a connection that may change applies one change in one call, with its reason, on the record with the connection's name.
2026-11-30.4The table pipeline.
2026-11-30.2A filter value the table does not hold is an error that names the values, never a figure of 0. A filter on a dimension with no list of values (a campaign, a supplier) that matches no row says so in matched and the notes. Each column says its unit as it is: a month column of a trend has from and to; a column of days is unit date; a column of words is unit text; the own column of a count is count. A row of a list of things gives its cells as the row holds them (a day as YYYY-MM-DD, a figure as a number) and the words the screen shows as shown.
2026-11-30First version: the tools tables and ask.

Changing things

27 tools, and only on a connection you allowed to change costs.

apply_change“Go ahead and make that change.”

The change committed: a cost change with the ledger rebuilt so every figure moves with it, or a change on Meta sent to Meta's Ads MCP server and the object read back after.

It takes a proposal id and nothing else, so there is always a preview behind a commit; a proposal can be used once and expires after fifteen minutes.

InputTypeMeaning
closed_okboolean, optionalThe owner's yes to a change that moves a month the company has closed. Pass true only when the proposal's impact names closed months and the person said yes to changing them; without it such a change is refused.
proposal_idstringThe proposal_id returned by propose_change or propose_meta_change.

Commit a change that propose_change or propose_meta_change already previewed, by its proposal_id. Call this only after you have shown the person the impact (or, for a change on Meta, the change in words and the object before and after) and they have agreed to it. A proposal can be applied once and expires fifteen minutes after it was made; there is no way to apply a change that was not previewed first.

apply_waiting“The sheet changed a rate in September, which is closed. Apply it.”

The change's impact as tables. On a dry run nothing is written; otherwise the change is on the record of changes, linked to the waiting row.

A sheet or store re-read that would move a closed month waits instead of applying. It needs the owner's yes, and the next read of the same source settles it.

InputTypeMeaning
change_idstringThe waiting change's id, from the changes tool.
closed_okboolean, optionalThe owner's yes to moving the closed months it names.
dry_runboolean, optionalShow the impact and write nothing.
reasonstring, optionalThe person's own why, kept on the record of changes.

Apply a change that waits on a closed month: a sheet or store re-read that would move a month the company has closed is never applied by itself and waits on the record of changes (the changes tool lists it with status waiting and its id). With dry_run true it returns the impact (impact_table, Markdown tables to show as they are) and writes nothing: run it so first, show the person the closed months it moves, and apply once the owner says yes, with closed_ok true. Applied, it is on the record with a link to the waiting row. Refused, in words, where the row is not waiting any more (the next read of the same source settled it, or it was applied).

books_posted“The bookkeeper has posted everything through 31 October.”

The date the books are posted through.

Any member of the company. Closing the months past it is warned, never refused. Kept on the record of changes.

InputTypeMeaning
closed_okboolean, optionalThe owner's yes to a date that moves a closed month.
reasonstring, optionalThe person's own why, kept on the record of changes.
throughstringnullA date, YYYY-MM-DD, or null.

Say how far the company's books are posted in the accounting: the bookkeeper's fact, a date. Closing the months past it is warned, never refused. Any member of the company (or KKG). null says nobody can say. Kept on the record of changes. The date moves money (a books month on or before it holds to the books, a month after it carries the difference), so the ledger is rebuilt; where that moves a month the company has closed, it is refused with the closed months and their amounts in words, and applies with closed_ok and the owner's yes.

build_reviewer_access“Let the build reviewer see the demo company.”

The reviewer's membership in the company, before and after.

A KKG operator's tool. Only the read-only build reviewer's address; no invitation is sent.

InputTypeMeaning
companystringThe company, by its id or its name.
onbooleantrue: a member. false: not a member.
reasonstring, optionalWhy, kept on the record.

Let the read-only build reviewer (build-review@vecksapp.com) into a company as an admin with every page, or take it out. Only that one address: no other person's access changes, and no invitation is sent. Its session stays read only in every company (the proxy refuses every write). A KKG operator's tool (superadmin only), kept on the operator's record with the reason. Returns the reviewer's membership in the company before and after.

cash_opening“Make Bank today the sum of the bank accounts again.”

The typed opening and the balances typed per account; after a clear, the figure cleared.

A member with a write connection. The typed account balances stay. Kept with who cleared it.

InputTypeMeaning
clearboolean, optionalClear the typed total.
dry_runboolean, optionalSay what would be cleared and write nothing.
reasonstring, optionalThe person's own why, kept with the act.

Read the cash board's typed opening balance (Bank today on the cash and P&L page) and the balances typed per bank account, or clear the typed total so Bank today is the sum of the bank accounts again (the books' figure, a live bank where one is read, an account's own typed figure). With no arguments it reads. clear true clears the typed total; dry_run true says what it would clear and writes nothing. Typed account balances stay. Only when the cash board is switched on for the company. Kept with who did it.

close_month“October is done. Close it.”

The date the months are closed through, the one before, how far the books are posted, and a warning when the close runs past them.

The owner's only. After a close, a change that moves a closed month needs the owner's yes, and a re-read from a sheet or a store waits. A dry run says what it would do and writes nothing. Kept on the record of changes.

InputTypeMeaning
dry_runboolean, optionalSay what the close would do and write nothing.
reasonstring, optionalThe person's own why, kept on the record of changes.
throughstringnullA date, YYYY-MM-DD: its month and every month before it close. null reopens every closed month.

Close the company's months through a date (the month it falls in closes whole), or reopen every closed month with through null. After a close, a change that moves a closed month is refused unless apply_change is given closed_ok with the owner's yes, and a sheet or store re-read that would move one waits and raises a flag. The company's owner only (or KKG). It warns, and does not refuse, when the close runs past how far the books are posted (books_posted). With dry_run true it says what it would do and writes nothing: run it so first, show the person the warning, and close once they say so. Returns the date closed through, the one before, how far the books are posted and the warning.

company_create“Make the company Aluex in EUR from 1 January 2026.”

The new company's id and name, its currency, start date, time zone and owner.

A KKG operator's tool. It starts with the default layout and nothing connected; no invitation is sent.

InputTypeMeaning
currency"EUR" | "USD" | "GBP" | "SEK" | "NOK" | "DKK" | "CHF" | "PLN" | "CZK" | "HUF" | "CAD" | "AUD" | "NZD" | "JPY" | "CNY" | "HKD" | "SGD" | "KRW" | "INR" | "BRL" | "MXN" | "ZAR" | "TRY" | "ILS" | "ISK" | "RON" | "BGN" | "PHP" | "THB" | "MYR" | "IDR", optionalThe reporting currency. Default EUR.
namestringThe company's name as it shows in Vecks.
owner_emailstring, optionalThe owner's address. Default this connection's person.
reasonstringWhy the company is made, kept on the record. Required.
start_datestring, optionalThe first day the P&L reads, YYYY-MM-DD. Default the first day of this year.
timezonestring, optionalThe company's time zone. Default Europe/Helsinki.

Make a new company in Vecks, as New company on Companies does: its name, reporting currency, start date, time zone and owner. It starts with the default P&L layout, one cost center (HQ), the default markets and one storage location, and nothing connected; the owner is a member as owner (no invitation is sent; they sign in with their address). A name another company has is refused. A KKG operator's tool (superadmin only); the reason is required and kept on the record, and a record that could not be kept is said in the answer. Returns the new company's id and name; name it as company in the other tools from then on.

creators_brief“Our brief is framing carpentry tools, for trade pros in the US and GB.”

The brief as stored, and how many creators were scored again against it.

The fit score's category match and audience match read it. With no brief neither is scored.

InputTypeMeaning
adjacentarray, optionalCategories next to it, like "roofing" or "deck building".
categorystring, optionalThe category the company sells in, like "framing carpentry tools".
countriesarray, optionalWhere its customers are, two-letter codes (US, GB).
customers"pros" | "diy" | "mixed", optionalTrade pros, DIY makers, or both.

Read or set the company's creator brief: the category it sells in, the categories next to it, the countries of its customers (two-letter codes) and whether they are trade pros, DIY or mixed. The fit score's category match (20 of 100) and audience match (20) are judged against it; with no brief neither is scored. With no arguments it reads. Setting it scores every profiled creator again at once and makes their profiles again against it in the background. Only when Creators is switched on for the company.

creators_discover“Find US creators for the beam puller, seed: steel erection.”

The run's id at once; the run expands the seed, discovers, measures and saves for up to about four and a half minutes.

Only official reads: hashtag search, the Ad Library, Business Discovery. Never instagram.com, never a message to a creator. Vecks holds Meta's 30 hashtags in 7 days.

InputTypeMeaning
audiencestring, optionalWho the brand sells to, in a line, if known.
countrystringThe country of the creators' audience, a two-letter code (US, FI).
follower_maxnumber, optionalDrop accounts with more followers.
follower_minnumber, optionalDrop accounts with fewer followers.
forceboolean, optionalStart the run even when every finding path Meta refused the last time (it then finds nothing new). Default false.
languagesarray, optionalTwo-letter language codes. Default: en.
seedstringA word, a phrase, a web address or a competitor's name.
target_countnumber, optionalHow many of the best the run marks as its picks for a person to confirm (never the shortlist itself). Default 25.

Start a creator discovery run for the company: the agent expands the seed into a brief (category, competitors, hashtags, Ad Library keywords), discovers through hashtag search (Meta's 30 hashtags in 7 days per Instagram account, held by Vecks; a hashtag's posts give only the handles their captions name, never a looked-up author), the Ad Library and competitors' partners, measures each account with Business Discovery, classifies it, and saves it with the fit score Vecks computes. It answers at once with the run's id; the run goes on for up to about four and a half minutes. Read the result with the creators tool (its runs carry the log). While Meta refuses all three finding reads (hashtag search, the Ad Library, a post's author) it starts no run and says which review each waits for. It never opens instagram.com and never contacts a creator. Only when Creators is switched on for the company.

creators_from_ads“Add every creator we ran a partnership ad with.”

The run's id at once; the creators tool's runs then carry each partner: measured and raised to Running ads, or why not (no handle and what was tried, a personal account).

Reads the ads Vecks stored and Business Discovery. Runs once a day by itself. A person's own stage stands.

Bring every creator the company ran a Meta ad as (a partnership ad, running or not) onto its creator list: the ads Vecks stored and their creatives name the creator's Page or Instagram account, Business Discovery measures it, it is saved with the source partnership ads and its ads as evidence (how many, the first and last day spent, how many run now), and its relationship stage is raised to Running ads by data (never lowered, never over a person's own move). It answers at once with the run's id; the run goes on for up to about four and a half minutes, and the creators tool's runs carry its log (the partners found, each partner with no handle and what was tried, each creator measured). The same runs once a day by itself. It never contacts a creator. Only when Creators is switched on for the company.

creators_measure“Measure @framekinguk and @carpentry.pov and add them to our creators.”

Per handle: measured with its fit score, or the reason Meta gave nothing (a personal account, a missing permission).

Reads Meta's Business Discovery as the company's own Instagram account. It never opens instagram.com and never contacts anyone.

InputTypeMeaning
detailstring, optionalThe hashtag, the brand, or the competitor the handles came from.
handlesarrayInstagram handles, with or without @, or instagram.com links.
source"hashtag" | "ad_library" | "competitor_partner" | "competitor_post" | "creator_marketplace" | "partnership_ads" | "person", optionalWhere these handles were found: competitor_post when a competitor's own post names them. Default: person (added by hand), which a real source replaces.

Measure Instagram accounts for the company's creator list: Meta's Business Discovery read as the company's own Instagram account, then followers, engagement rate, reel reach rate, posts in 60 days and the fit score, saved (an upsert by handle: a second measure refreshes, never doubles). A personal account cannot be read by any official API and is saved as not measured with the reason. It never opens instagram.com and never contacts a creator. At most 50 handles a call. Only when Creators is switched on for the company. Read the list after with the creators tool.

demo_reset“Reset the demo company before the recording.”

The demo company, its sample orders and the seconds the reset and the rebuild took.

A KKG operator's tool. Touches only the demo company; every figure in it is made up.

Make the demo company (Vecks demo) again from today, as "Reset the demo company" on Companies does: every connection and import a reviewer made goes, the sample is made again from six months back (a Shopify store, Meta ads with pictures, the company tree, the books, B2B invoices, the cash board, stock, creators), the pages a demo walks are switched on, and the ledger is rebuilt. Every figure is made up. It touches only the demo company and takes no company. A KKG operator's tool (superadmin only). Returns the company, its orders and the seconds.

feature_set“Can Stedox see the Creators page now?”

Every feature of the company, before and after.

A KKG operator's tool, the same as the feature checkboxes on Companies.

InputTypeMeaning
companystring, optionalAnother company to switch it for, by its id or its name. Default: this connection's company.
feature"cash" | "plan" | "meta_changes" | "creators" | "assistant_jev" | "home"The feature to switch.
onbooleantrue: on. false: off.
reasonstring, optionalWhy, kept on the record of changes.

Switch a feature on or off for a company, as the checkboxes under the company on Companies do: cash (the 13-week cash board), plan (the cash plan), meta_changes (changes on Meta from the Ads card and over MCP), creators (the creator list), assistant_jev (TypeSafe's Jev reads the assistant's typed questions into its chips; off, nothing is sent to TypeSafe and the chips keep their defaults), home (the admin area opens on the assistant alone: a greeting, one input and three questions from the company's figures). The nav shows a feature's page only while it is on. A KKG operator's tool (superadmin only), kept on the record of changes with the reason, and reverted from there. Returns every feature of the company, before and after.

ledger_vacuum“The digest reads the heap again; vacuum the ledger.”

The seconds of one plain VACUUM of the ledger table, and its dead rows and all-visible pages before and after.

A KKG operator's tool. One statement on one table, no argument; refused while a rebuild runs and in the first 15 minutes of an hour.

Run one plain VACUUM of the ledger table (no FULL, no FREEZE, no ANALYZE), for every company at once, and give its seconds and the ledger's dead rows and all-visible pages before and after. It changes no figure. A KKG operator's tool (superadmin only). It takes no argument. It is refused while a rebuild of any company runs, while a VACUUM of the ledger runs, and in the first 15 minutes of an hour. Where it outlasts 45 s it goes on after the answer; db_reads then gives the ledger's last vacuum.

make_change“Set the packing rate in the US to 2.10 from 1 December, the 3PL raised it.”

The change made, its id on the record of changes, and its impact as tables: the lines that moved and the months.

No preview first: the change is made at once. It needs a reason, which is kept on the record with this connection's name. Undo it with revert_change; a delete cannot be reverted, and the answer says so. A closed month needs the owner's yes.

InputTypeMeaning
change_jsonstringThe change as a JSON string, with an 'action' field (the same shape propose_change takes).
closed_okboolean, optionalThe owner's yes to a change that moves a month the company has closed. Without it such a change is refused and nothing is written.
reasonstringWhy the change is made, in the person's own words where they gave them. Needed: it is kept on the record with the change.

Apply one change to the company's model in one call: the change runs at once, the ledger is rebuilt and every figure moves with it. No preview is shown first, so use it only where the person said what to change, or for a page of their own that writes. It is the same command propose_change previews and apply_change commits, with the same list of actions. It is on the record of changes with this connection's name and the reason, and the changes tool reads it back; revert_change undoes it where it can. A delete cannot be reverted: the answer says so (cannot_revert). A change that moves a month the company has closed is refused, with the months and amounts in words, unless closed_ok is true with the owner's yes. The owner's acts (closing a month, the books date, the features) stay the owner's. A change on Meta is not made here: use propose_meta_change. Returns the change in words, its id on the record, the impact (impact_table, Markdown tables to show as they are) and the months it moved. The actions and their fields are the list in propose_change's description.

pipeline_stages“quote-sent is open with a 40% chance, quote-expired is lost.”

The map as kept on the WooCommerce connection.

Paid orders (processing, completed, refunded) are always won.

InputTypeMeaning
stagesarray, optional

Read or set which WooCommerce status is an open, won or lost deal in the pipeline, with a chance for each open one. With no arguments it reads. stages replaces the whole map: each {status, state, chance} where status is the order status as the shop's orders carry it (pending, on-hold, quote-sent), state is open, won or lost, and chance is the share of an open stage's deals that are won, in percent (0 to 100). processing, completed and refunded are booked on the P&L and stay won. Kept on the company's WooCommerce connection with who set it and when; the answer gives the map before it as was, which put back as stages restores it. Nothing is booked and the P&L does not change.

propose_change“What happens to my profit if shipping to Sweden goes to 22 euros?”

The change run against your real orders inside a transaction that is rolled back, and the whole P&L before and after it. Nothing is written.

This is the only way a change is ever prepared, and it can never commit. What it hands back is a proposal id, the impact written as a table, and the reason you gave, which is kept with the change if you apply it.

InputTypeMeaning
change_jsonstringThe ConfigChange object as a JSON string, with an 'action' field.
reasonstring, optionalWhy the person wants this change, in their own words where they gave them ("the 3PL raised its pick fee from June, invoice 4411"). Kept with the change once it is applied, so the reason can be read later.
summarystringOne plain-language sentence describing the change for the user's approval card.

Propose one config change to the user. This DOES NOT apply anything: the change is test-run in a rolled-back transaction and you get back its P&L impact; the user sees a card with the impact and an Apply button, and only their click commits it. Use real ids from list_rates / list_fixed_costs / get_layout / get_settings. Everything the admin UI can change is here, including the statement's own structure (sections, subtotals, the order of lines).

propose_meta_change“Canada loses money after ads. Pause that ad set, or cut its budget to 200 a day.”

The ad, ad set or campaign as it stands on Meta now, the change in one sentence, what it will be after, and the exact call Vecks would send to Meta's Ads MCP server. Nothing is sent yet.

Pause, activate, or a daily budget, by Meta's own id; nothing is created or deleted. It works only where the company has changes on Meta switched on and its Meta connection may manage ads, and says so when not.

InputTypeMeaning
amountnumber, optionalthe new daily budget in the ad account's currency, for daily_budget only
idstringMeta's numeric id of the ad, ad set or campaign
kind"pause" | "activate" | "daily_budget"what to change
level"ad" | "adset" | "campaign"what kind of object the id names

Preview a change on Meta to an ad, ad set or campaign: pause it, activate it, or set an ad set's or campaign's daily budget, by Meta's own id (ads_report carries them). Vecks reads the object on Meta as it stands, refuses what it does not allow (already paused, a budget its campaign sets), and returns the change in words, the object before and after, and the exact call it would send to Meta's Ads MCP server, with a proposal_id. Nothing is sent to Meta until apply_change is called with that id. Show the person the words and the before and after, and apply only once they have said to go ahead. A budget is in the ad account's own currency, a daily amount in its major unit (600 is 600 euros). Activating starts spending.

rebuild_ledger“Rebuild Stedox's ledger.”

The ledger made again in full from what the connectors stored and the cost model, with its rows per channel and its flags by kind.

A KKG operator's tool, the same as Rebuild ledger on Configure. It changes no rule; it is what the hourly run does.

InputTypeMeaning
companystring, optionalAnother company to run it on, by its id or its name (a KKG operator reaches every company). Default: this connection's company.

Rebuild this company's ledger in full from what the connectors stored and the cost model, as the hourly run does. It changes no rule: every figure ends as a full rebuild makes it, so a save's partial rebuild since the last full one is replaced. A KKG operator's tool (superadmin only). Returns the company, the rows per channel and the flags by kind, the time it took, and the migrations this deploy carries that the database has not applied.

revert_change“Undo the rate change I made this morning.”

The change's impact as tables. On a dry run nothing is written; otherwise the revert is on the record of changes, linked to the change it reverts.

Refused where the change forgot something (a delete), was reverted already, or a later change touched the same rows. A closed month needs the owner's yes.

InputTypeMeaning
change_idstringThe change's id, from the changes tool.
closed_okboolean, optionalThe owner's yes to a revert that moves a closed month.
dry_runboolean, optionalShow the impact and write nothing.
reasonstring, optionalThe person's own why, kept on the record of changes.

Revert a change on the record of changes (the changes tool lists them with their id and whether each can be reverted): its inverse runs as a change, recorded with a link to the one it reverts. With dry_run true it returns the impact (impact_table, Markdown tables to show as they are) and writes nothing: run it so first, show the person, and revert once they say so. Refused, in words, where the change cannot be reverted (a delete forgets), was reverted already, or a later change touched the same rows (revert that one first). A revert that moves a closed month needs closed_ok with the owner's yes.

revert_surface“Undo everything the stock tool changed since Monday.”

Each change of that connection since the day, newest first: reverted, refused with why, or cannot be reverted, with the closed months each revert moves. On a dry run nothing is written.

A dry run is the default. Each revert is its own change on the record, the batch named in its reason. A later change by another door or person blocks a revert, and every change under it. A closed month needs the owner's yes, once for the batch.

InputTypeMeaning
closed_okboolean, optionalThe owner's yes to reverts that move a closed month.
connectionstringThe connection's id.
dry_runboolean, optionalShow the list and write nothing. Default true.
reasonstring, optionalThe person's own why, kept on each revert's record.
sincestringThe first day, YYYY-MM-DD: its changes from that day on are reverted.

Revert every change one connection (a surface: an AI tool or a page of the company's own) made since a day, newest first. Each revert is its own change on the record, linked to the change it reverts, with the batch named in its reason. A change by another person or connection after one of the surface's changes, on the same rows, blocks it, and so does everything under it; the batch goes on past a refusal and says why each was refused. A delete cannot be reverted. With dry_run true (the default) it writes nothing and returns the same list in the same order, each step reverted, refused with why, or cannot be reverted, and the closed months each revert would move: run it so first, show the person, and revert once they say so. A batch that moves a closed month needs closed_ok with the owner's yes. The connection's id is on the list of connections (Configure, Assistants) and on each change of the changes tool.

run_judges“Does Vecks know where these product codes belong? How often is it right?”

The proposals the judges wrote on the queue, the lines in the books on an unusual account for their vendor, and each judge's score on the confirmed placements: how many it answered and how many right.

A KKG operator's tool. A proposal books nothing until a person confirms it.

InputTypeMeaning
companystring, optionalAnother company to run it on, by its id or its name. Default: this connection's company.
score_onlyboolean, optionalOnly score the judges; write no proposal.

Run the judges on a company's queue of what cannot be placed and score them (Kernel move 2b). Each judge proposes where an unknown product code or an unclaimed campaign sits; a proposal is stored on the queue for a person to confirm and books nothing. The account maker also names a vendor's line in the books on an account the vendor's past invoices never used, as a line for the bookkeeper to check (never booked). The unit maker proposes the business unit (a cost center) for a line in the books that carries none, from the vendor's earlier tagged invoices (never booked; confirmed with placement_place kind books). Then each judge is scored on the company's confirmed placements, every one held out in turn: how many it answered, how many right, and per probability said how many were right. A KKG operator's tool (superadmin only). Returns the proposals written, the account checks written, the unit proposals written, the scores (the unit maker's on the bookkeeper's tags, each held out), and the residue: per kind (sku, campaign) and month the rows no proposal covers, its peak and whether it passes the floor of ten a month at which a model maker is built (due).

say_cost“UK shipping is 25 per order plus 23.4 per brace, UK only.”

The rules the words describe, each in one sentence, which of them are there already, a category the words need, and the money per line before and after over every month the change reaches. Nothing is written.

Claude reads the words and picks only ids Vecks has. Code checks every id and every amount, and an amount you did not say is refused. Apply the proposal it hands back with apply_change.

InputTypeMeaning
linestring, optionalOptional: the item key of the line the person is on.
wordsstringThe person's words, as they said them.

Make cost rules from the owner's own words ("UK shipping 25 per order + 23.4 per brace, UK only"). Vecks reads the words against the company's lines, charges, rules in force, products, categories, markets and storage locations; code checks every id and every amount (an amount the words do not carry is refused), says which rules are already there, makes a category the words need from the products whose names fit it, and test-runs the change over every month it reaches. This DOES NOT apply anything: it answers with the plan in sentences, the money per line before and after, and a proposal the person applies (apply_change). It may answer with one question instead, or say the words ask where a cost belongs (then propose a cost-center change). Pass the person's words as they said them. Over this connection the proposal is not shown as a card: you get its P&L impact back, with impact_table, the impact already written as Markdown tables. Put impact_table in your reply as it is, and only call apply_change once the person has said to go ahead. Never apply a change nobody asked for. Pass reason with the person's own why; it is kept with the change and the changes tool reads it back.

shopify_security“Which address does Vecks call Shopify from, and which store still has an old token?”

The server's address, network and country now, and every Shopify store with its token's kind.

A KKG operator's tool. With migrate, it exchanges the old tokens for expiring ones.

InputTypeMeaning
companystring, optionalOne company, by its id or its name. Default: every company with Shopify.
migrateboolean, optionaltrue: exchange every old token for an expiring one now. Default false: read only.

What Shopify's app security rules need from Vecks. egress: the public address, network (ASN) and country this server calls Shopify from, read now, which the Vecks app's IP allowlist in Shopify's Dev Dashboard must let in. stores: every company's Shopify stores with their token's kind (expiring: the Vecks app with a refresh token; non_expiring: the Vecks app's old kind, to be exchanged before 2027-01-01; store_app: a store's own app, not counted by Shopify) and why an exchange failed. With migrate true, exchanges each non_expiring token for an expiring one now and says each result. A KKG operator's tool (superadmin only). Without company, every company.

sync_now“Read Netvisor now, so October's last invoices are in.”

The connectors it started to read. The read and the rebuild after it run on after the answer.

The same as Read now on Configure. Follow it with sync_status.

InputTypeMeaning
providerstring, optionalOne connector to read (meta, google, tiktok, snapchat, woocommerce, shopify, amazon, gsheets, netvisor). Default: every connector.

Read the company's connectors now, as Read now on Configure does: every connector, or the one named, a deep pass, then the ledger rebuilt. It starts and answers at once; the read and the rebuild run on after the answer. Follow it with sync_status until no connector says running. Run it before a month is closed so the month's last invoices and voucher lines are in.

voucher_copies“How many rows of the books are copies, and what would be left?”

Per company the rows now and after, the vouchers, the generations kept and the copies; with a yes, the copies deleted in batches.

A KKG operator's tool. A dry run by default. The delete cannot be undone and runs only with the owner's written yes.

InputTypeMeaning
companystring, optionalThe company, by its id or its name. Needed to delete. A dry run with none lists every company.
dry_runboolean, optionaltrue (the default): count only. false: delete the named company's copies.
reasonstring, optionalNeeded to delete: the owner's written yes, as he wrote it. Kept on the record.

The copies of a voucher in the books Vecks stored from Netvisor: a generation whose lines equal the generation just before it for the same voucher holds no fact (before migration 160 every hourly read stored each changed voucher again for a week). A KKG operator's tool (superadmin only). By default a dry run that changes nothing: per company (every company that holds voucher lines, or the one named) the rows now, the rows after, the vouchers, the generations kept and the copies. With dry_run false and a company named, it deletes that company's copies in batches, each its own transaction under the company's rebuild lock, keeping the first generation of each run of equal content and every generation where the content moved; what any books read returns does not change. The delete cannot be undone: run it only with the owner's written yes, and give that yes as the reason. A call stops after about 25 s and says how many copies are left; call again until none. Run check_engine after it.

woocommerce_site_move“The shop moved to stedox.com with the same keys. Read it there.”

The store's address before and after.

A KKG operator's tool. Only the address moves; the keys and every order booked stay.

InputTypeMeaning
companystring, optionalAnother company, by its id or its name. Default: this connection's company.
fromstring, optionalThe site to move, by its address now, for a further site of a multisite (e.g. https://shop.stedox.com/ca). Default: the first site. A further site keeps its keys and its order ids, so its new address must end the same way.
reasonstring, optionalWhy, kept with the change.
tostringThe store's new address, https, e.g. https://stedox.com.

Move a company's WooCommerce store to a new address with the same REST keys, when the shop moved domain and nothing else changed. The first site moves, or with from a further site of a multisite: the keys, the order ids and everything booked stay. Then read it with sync_now provider woocommerce; the read starts from the last good read, so the days missed are read. A KKG operator's tool (superadmin only), kept with the reason. Returns the address before and after.

What a change can be

One proposal is one of the following. It is the same list the Vecks admin screens act through, so an assistant can do what you can do and nothing else. Everything about the shape of your statement is in here too: the subtotals, the sections and the order of the lines are yours, not ours.

account_dimension_setwhether the lines on a mapped account should carry a mapped dimension: account, needs (true | false). A line on such an account with no mapped dimension raises a red flag, untagged_books; nothing is forced
account_map_cleartake the mapping off an account: account (its lines go back to unmapped and the months they booked come off)
account_map_setmap one bookkeeping account (as the accounting prints it on every invoice line, Netvisor) so every line past and future that carries it maps itself: account, item_key, component, or fixed_cost_id (a monthly amount instead of a charge), scope? (the rule under the charge, as on charge_actual_set), role (compare | use = books | ignore), source? (invoices = the month books the sum of the invoice lines on the account; ledger = the month books the general ledger's total on the account less what the shop's own lines explain, see item_ledger_less_set; the invoice lines are then evidence only). A vendor's own memory for a line still wins; a line a person mapped by hand is not moved
ad_rule_createan ad spend rule: conditions {platform, account, campaign_id, name_contains|name_starts|name_pattern, country ('*' known, '-' unknown, or ISO-2), tag}, targets {markets:'country'|'all'|[...], spread:'cost'|'orders'|'even'|{market:share}, product (a SKU), product_group (a group key, spread across its SKUs), cost_center_id}
ad_rule_deleteremove an ad spend rule: rule_id
ad_rule_reorderthe order of ad rules (ties in specificity): ids
ad_rule_updatechange an ad spend rule: rule_id, conditions, targets
amazon_charge_map_setone kind of Amazon account charge onto a cost line: transaction_type?, description?, item_key (a cost line), or ignore true (not a cost)
attachment_restorea rate's or a monthly amount's versions put back as they stood, with their ids: the inverse of a new version on the day a version starts; a revert's alone, never sent by hand: table (cost_rates or fixed_costs), rows, left, refs?
batchseveral changes as one: changes [ ... ] (one transaction, one impact)
books_through_setsay how far the books are posted: books_through (YYYY-MM-DD or null); any member of the company
campaign_assignone campaign counts for a market and/or product: platform, campaign_id, market, product (a SKU) or product_group (a group key)
campaign_tag_settag a campaign for ad rules: platform, campaign_id, tag
cc_rule_createa cost center rule: warehouse/country/market/channel/item_key and conditions {sku|currency|payment_method|coupon}, cost_center_id, or shares [{cost_center_id, share}] to split
cc_rule_deleteremove a cost center rule: rule_id
cc_rule_reorderthe order of cost center rules (first match files): ids
cc_rule_updatechange a cost center rule: rule_id plus the same fields as cc_rule_create
charge_actual_setbook one month of a charge from a document instead of the rules: item_key, component, month (YYYY-MM), amount, currency, source, ref, scope? (the rule the document is about, in the rule's own fields: warehouse, country, market, channel, sku, conditions; {default: true} for the rule with no conditions; absent = the whole charge, and then only the rows no rule's document covers)
charge_hierarchy_setthe order a charge's break-outs nest in: item_key, component, hierarchy (fields outermost first)
charge_min_seta monthly minimum on a charge (the greater of the rules' total and the floor books): item_key, component, min_monthly (null removes), currency
charge_priority_setwhether documents or rules win on a charge: item_key, component, priority (documents|rules)
closed_through_setclose the company's months through a date (its month closes whole), or reopen every closed month: closed_through (YYYY-MM-DD or null); the owner only (or KKG); prefer the close_month tool, which warns past how far the books are posted
cost_center_createa new cost center: label, optional currency, parent_id? (the cost center it sits under, which must have nothing filed to it; costs are filed to a leaf, a parent reads as the sum of its children)
cost_center_movemove a cost center under another or to the top: cost_center_id, parent_id (null = the top); no figure moves, only how the company tree reads
cost_center_renamerename a cost center: cost_center_id, label
cost_movemove a cost line into another section (across a subtotal it changes that subtotal): item_key, section_id
dimension_map_seta value of a dimension the bookkeeper tags lines with in the books (Netvisor laskentakohde, as the Netvisor row on Configure lists them) books on a cost center: dimension_name (e.g. '2 Verksamhetsområde'), dimension_item (e.g. 'B2B'), cost_center_id (null takes it off). One dimension per company books on cost centers. A tagged line books on that center, less the shop's own rows filed there; the untagged rest of its account and month books as before
feature_setswitch a page on or off for the company: feature (cash, plan, meta_changes, creators, assistant_jev or home), on; KKG only
fixed_actual_setbook one month of a monthly amount from a document: fixed_cost_id, period_month (YYYY-MM), amount (null = the typed amount again), currency, source, source_ref, invoice_line_id
fixed_cost_center_setfile a monthly amount to a cost center: fixed_cost_id, cost_center_id
fixed_cost_createa monthly amount spread over its days: item_key, label, monthly_amount, currency, valid_from, valid_to, note
fixed_cost_deletedelete a monthly amount with every version of it: fixed_cost_id
fixed_cost_endstop a monthly amount on a date (versions after it go, history before it stays): fixed_cost_id, end_date (null re-opens it)
fixed_cost_priority_setwhen a document and the typed amount differ, which one books: fixed_cost_id, priority (documents|typed); the other is checked against it
fixed_cost_renamerename a monthly amount, every version of it: fixed_cost_id, label
fixed_cost_source_setwhere a monthly amount reads its value from: fixed_cost_id, source {kind:'sheet',tabId,cell} (re-read nightly) | {kind:'documents'} (the month's invoice line mapped to it) | null (typed). The typed amount stays as the fallback
fixed_cost_start_setthe day a monthly amount's first version starts: fixed_cost_id, valid_from (not after its next period)
fixed_cost_updatea new monthly amount from a date, history kept: fixed_cost_id, monthly_amount, effective_from
fulfillment_rule_createorders of a channel and/or ship-to country ship from a storage location: channel?, country? (ISO-2), warehouse_key
fulfillment_rule_deleteremove a shipping rule: rule_id
inbound_createa shipment on its way (a purchase order): sku, quantity, expected_on?, reference?, note?, warehouse? (the location it lands in; the default location when omitted, so ask which one when more than one location is open), from_country? (ISO-2, where it ships from) or from_warehouse? (a transfer from another location, which leaves that location's stock the day it ships), mode? (air | sea | train), shipped_on? (the day it left, today by default), unit_cost?, currency?, invoice_line_id? (the invoice line it came from); counts towards on hand once received
inbound_deleteremove an incoming shipment: id
inbound_receivemark a shipment received: id, received_on? (today), quantity? (what actually arrived)
inbound_unreceivea received shipment back on its way: id
inbound_updatecorrect a shipment on its way: id, and any of quantity, expected_on, shipped_on, from_country, from_warehouse, mode (air | sea | train), reference; only the fields given change
invoice_deletedelete an invoice, its lines and every month they booked: invoice_id
invoice_line_mapwhich charge an invoice line is evidence about: line_ids (from the invoice screen), item_key, component, or fixed_cost_id (a monthly amount instead of a charge), scope? (the rule under the charge, as on charge_actual_set; absent = the whole charge), role (compare = rules already produce this cost | use = the amount comes from the invoice | ignore). Remembered for that vendor and line description.
item_createa new cost or income line in a section: key, label, section_id
item_deletedelete a cost or income line of the merchant's own with every charge under it (lines the connectors book, such as gross sales or ad spend, cannot be deleted): item_key
item_ledger_less_setfor a line that books from the general ledger (account_map_set with source 'ledger'): the shop's lines whose booked money each month's figure subtracts, so the line is the rest of the company: item_key, less (line keys; [] books the accounts' total in full), split? (true: the untagged rest of a month splits over the monthly amounts on those lines in that month, in proportion to their money, each part on that amount's unit, so typed people take the real payroll; a month the books are posted through follows the books even below the estimate; false: the rest on one unit; absent keeps it)
item_product_splithow a line's per-order money is attributed to products (shipping revenue, a fee per order): item_key, split = none (it carries no product) | units (each product's share of the units on the order) | revenue (each product's share of the order's line revenue). It moves no total, only where the money sits in the product view.
item_reorderthe order of the costs inside a section: ids (every item id in the section, in order)
market_breakoutmake a country its own market, or file it into a named one: country (ISO-2), market
market_createa market of the merchant's own: label, regions (keys from the region list, e.g. europe, nordics, north_america), countries (ISO-2). A named country beats a region; the smallest region wins; unmatched = Others
market_deleteremove a market: market_id (its countries fall to the next market or Others)
market_removefold a country back into Others: country
market_updatechange a market: market_id, label, regions, countries, except (countries the market's regions must not take), sort_order
model_snapshotthe whole model as it stands (tables: every model table's rows; facts), at the head of what replays; written by the system only, never proposed
placement_declinedecline a proposed placement (from unplaced_queue): placement_id; it is kept, books nothing and is never proposed again
placement_placesay where one key sits, beating every rule for it, kept and replayed: kind 'campaign' (key '<platform>:<campaign_id>'; tree market (a market label), product (a SKU or a group key) or company (a cost center id)) or kind 'sku' (key the SKU string an order line carries; tree product; node the registered SKU it books as) or kind 'books' (key '<voucher>:<account>' of a line in the books with no business unit; tree company; node a cost center id: books the line on that unit as a tag does, a tag in the books still winning); words?, proposal_id?
placement_reopenpropose a declined placement again: placement_id
placement_restoreput a placement that was taken off back, its maker kept: placement_id (refused while another stands on the same key)
placement_retracttake a placement off: placement_id (the rules decide again)
product_group_createa product group (category) of SKUs: label, optional key, skus [sku, ...]; ad spend counting for a group is spread across its SKUs by cost share
product_group_deleteremove a product group: key (its SKUs stay, ungrouped; ad rules lose the group target)
product_group_updaterename a product group or set its members: key, label?, skus? (the full list)
rate_cost_center_setfile one rule's rows to a cost center: rate_id (+ rate_ids), cost_center_id (null = as the rules say)
rate_createa new cost rule: item_key, component (the charge), basis (per_unit|per_order|pct_of_net|per_refund|per_order_by_count), amount, currency? (the company's when left out), valid_from? (the company's start when left out), optional scope sku/group (a product group's key: every product in the category; per_unit or per_order_by_count only; never with sku)/warehouse/country/market/channel, conditions {currency|payment_method|coupon|contains (a category's key: the order holds a unit of it; not on per_unit)}, stacks (a rule on top), note; per_order_by_count books once per order an amount read by the count of the group's units in the order (a bundle as its components): group required, tiers [{from, amount}] with from rising from 1, the last row may carry per N (amount x ceil(count / N)), the amount the first row's
rate_deletedelete a rule and its history as if it never existed: rate_id (+ rate_ids), valid_from (the rule's own)
rate_endstop a rule from a date, history kept: rate_id (+ rate_ids), end_date (the last valid day; null opens it again)
rate_source_setread a rule's value from somewhere: rate_id, source {kind:'sheet',tabId,cell} | {kind:'connector',field} | null (typed); a connector field is 'amazon.fee_total' or a number a WooCommerce plugin keeps on the order, 'woocommerce.meta:<key>' (e.g. 'woocommerce.meta:_stripe_fee', nested 'woocommerce.meta:_ppcp_paypal_fees/paypal_fee/value'), on a per_order or pct_of_net rule; an order without the figure books the typed amount
rate_updatea new value for a rule from a date, history kept: rate_id (+ rate_ids for a combined row), amount, effective_from, optional note, source, tiers (a per_order_by_count rule's new table; left out keeps the old one)
section_assignmove a section under another subtotal: section_id, subtotal_id
section_createa new section (a group of lines under a subtotal): label, stage, optional subtotal_id, optional parent_id (inside another section)
section_deletedelete an empty section: section_id
section_reorderthe order of sections: ids
section_updaterename, restage or nest a section: section_id, label and/or stage, sort_order, parent_id (null lifts it to the top level)
sku_deleteremove a product nothing names (no rate, stock count, shipment, placement or bundle): sku; its orders are an unknown product again
sku_group_setput one SKU in a group, or take it out: sku, group_key (null = none)
sku_rates_copya registered product's cost types, copied from a covered product with the values edited: sku, rules [{item_key, component, country, market, channel, basis, amount}]; a new product is a batch with sku_upsert first
sku_renamerename a product wherever it is shown: sku, label (a name only, nothing is rebuilt)
sku_upsertregister or rename a product: sku, label, kind (single|bundle), bundle_components for a bundle
stock_countrecord a stock count for a single product (the stock at the end of that day; on hand is derived from the newest count and the ledger's sales since): sku, quantity, counted_on, note?, warehouse? (a storage location key; the default location when omitted)
stock_count_deleteremove a stock count: id (from get_inventory)
subtotal_createa new subtotal line of the merchant's own (EBITDA, Net revenue): label
subtotal_deletedelete a subtotal that holds no sections: subtotal_id
subtotal_reorderthe order of subtotals: ids (the opening one stays first)
subtotal_updaterename or reorder a subtotal, Gross profit and Net profit included: subtotal_id, label, sort_order
warehouse_closeclose a storage location on a day: key, closed_on? (today by default), forget? (also delete its counts and shipments); its shipping rules go
warehouse_createa new storage location: label, country? (ISO-2); its key is made from the label
warehouse_default_setmake a storage location the one an order no shipping rule claims ships from: key
warehouse_deleteremove a storage location nothing was counted at, shipped to or charged at: key
warehouse_open_onthe day a storage location is in use from: key, opened_on (null = always)
warehouse_reopenopen a closed storage location again: key
warehouse_updaterename a storage location or set its country: key, label?, country?

With Meta's Ads MCP server

Meta runs its own MCP server for ads. It reads and changes campaigns, ad sets and ads, and it knows Meta's side: delivery, the auction, Meta's attributed purchases. It does not know your profit. Vecks does: what each market makes after ads, what an order costs to make and ship, and which ads wear out against their own past.

Connect both to the same assistant. In Claude, add Meta's as a second custom connector with this address, and sign in with the Facebook account that runs your ads.

https://mcp.facebook.com/ads

Every ad, ad set, campaign and ad account in Vecks's answers carries Meta's own id, so the assistant can take what Vecks found straight to Meta. For example:

Which markets lost money after ads last week? For the ad sets behind them, show me what Meta says about delivery, then lower the budget of the worst one by a third.

Meta's server asks before it starts anything spending. What it changes is Meta's record, not Vecks's: the change shows in your figures when the next hourly read brings it in.

Changes from Vecks itself. Where it is switched on for your company, a connection allowed to change costs can also prepare a change on Meta with propose_meta_change: pause or activate an ad, ad set or campaign, or set a daily budget. Vecks reads the object on Meta, refuses what it does not allow, and shows the change before and after. Nothing is sent until you approve it, and then Vecks sends it through Meta's server with your company's Meta connection. Every change is kept with who approved it and what Meta answered. The same changes are on an ad's card on the Ads page.

Without a sign-in

Some assistants take a header instead of signing in. For those, a member can make a token under Configure, Assistants. It is shown once and stored only as a hash, so a copy of our database is not a usable credential. In Claude Code:

claude mcp add --transport http vecks https://vecksapp.com/api/mcp \
  --header "Authorization: Bearer <your token>"

A token made this way does not expire, which is why the sign-in path is the better one where a client offers it: those tokens are short and refresh themselves, and either can be revoked from the same panel.

If it does not work

Privacy

A connected assistant reaches your company's figures and nothing outside them, under the address that approved it. It cannot reach another company, and it cannot reach anything you could not reach yourself. What the connectors store is described in the privacy policy: order payloads are stripped of personal data before they are stored, so what an assistant can read about an order is money, products, country and dates.