MCP

Tool Reference

Every MCP tool, what it answers, and its main parameters.

Dates are business days YYYY-MM-DD (Asia/Baghdad); an omitted date means today. Amounts are in the branch currency returned by get_business_context, in its minor units — never convert them, and never add or subtract them: every total and every change comes from the server.

A tool the credential cannot use answers 403 with the reason: the owner's role lacks the capability, the key's scopes do not name it, or the plan does not include the feature.

Start here

ToolAnswersParameters
get_business_contextBound branch, currency, today's business date, the credential's capabilities, the plan's features, subscription status, rules—

Everyday questions

ToolAnswersParameters
get_sales_comparisonSales for a period beside the previous one, with the change per figureperiod (today · yesterday · last7 · last30 · mtd · month), compare (prev_period · prev_year)
list_recent_ordersOrders, newest firststatus, date, limit (1–50, default 20)
get_orderOne order's lines, modifiers, payments and split checksorderId
get_menuMenu items, category, selling price, active, sold out (86)activeOnly, categoryId, limit (1–200, default 100)
get_open_balancesAging of what suppliers are owed (payables) and what customers owe (receivables)side (payables · receivables · both), asOf — needs view_gl, accounting
get_staff_on_shiftOne day's attendance: clock-in/out, status, late and overtime minutesdate — needs view_hr, HR & payroll

Facts (read-only)

ToolAnswersParameters
get_sales_summarySales over a window, day by day, by type and daypartdays (1–120, default 14)
get_prime_costPrime cost: COGS + labour vs net salesfrom, to
get_daily_cogsCost of goods sold per dayfrom, to
get_cost_per_servingCost per serving by productchannel (default takeaway), incompleteOnly, page
get_inventory_snapshotStock on hand at one locationlocation name or kind (warehouse, kitchen, …)
get_item_consumptionItems used over a rangefrom, to
get_loss_summaryLoss over a rangefrom, to, groupBy (day · shift · material · severity), shift
get_shrinkage_reportWarehouse vs kitchen shrinkagefrom, to
get_avt_factsActual vs theoretical usage for one day and one bookbusinessDate, location (kitchen · warehouse)
get_owner_leakage_factsThe owner's leakage facts for one daybusinessDate
get_price_variancePurchase price variance, top moversfrom, to, topN
get_purchases_summaryPurchases per day and supplier debtdays (1–365, default 30)
get_reorder_suggestionsWhat to reorder, from consumption velocityhistory window in days
get_payroll_summaryPayroll and headcount—
get_sales_integrityPer-cashier discount and void outliersfrom, to
get_risk_signalsCurrent risk signalslimit (1–50, default 10)
get_demand_forecastForecast demand per product and daydays (1–42, default 7), search (plan forecasting)
get_anomaly_flagsOpen anomaly flags from the detectorsstatus (default open), from, to, limit (1–25)

Loss is the sum of shortages — a surplus never cancels one — and the warehouse and kitchen books are never netted.

Inbox (read-only, plan messaging, capability view_inbox)

ToolAnswersParameters
list_conversationsInstagram, Messenger and WhatsApp conversations, most recent firststatus, channelType, unreadOnly, limit
get_conversation_messagesOne conversation's latest messagesconversationId, limit
get_inbox_countsHow many conversations sit in each queue (open, unread, awaiting a reply …)channelType

Replying, resolving and assigning are console actions: use call_action (module messaging).

AI credits (read-only, capability view_profit)

ToolAnswersParameters
get_ai_creditsThis month, one name per figure: state (ok · low · exhausted · not_configured · not_in_plan · subscription_inactive), allowance and its source, used, remaining, top-ups, reset date, by feature and model—
get_ai_credit_usageCredits per month by feature, and the conversations and assistant threads that use mostmonths, feature, top

Credits are not money: never convert them to a currency.

Tables (read-only)

ToolDoes
list_tablesLists the readable tables and their columns
read_tableReads rows with filters, sort (asc · desc) and paging
get_recordOne row by id
count_tableCounts rows matching filters
aggregate_tableSum / average / min / max / count, grouped — computed by the database

Sensitive tables (credentials, secrets, audit internals, guests and reservations) are never readable.

Actions (write)

ToolDoes
list_actionsConsole actions this credential may call — filter by module, search, includeReads; action for detail
call_actionPerforms one: method, path (/api/v1/console/…), body, idempotencyKey

See Actions.