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
| Tool | Answers | Parameters |
|---|---|---|
get_business_context | Bound branch, currency, today's business date, the credential's capabilities, the plan's features, subscription status, rules | — |
Everyday questions
| Tool | Answers | Parameters |
|---|---|---|
get_sales_comparison | Sales for a period beside the previous one, with the change per figure | period (today · yesterday · last7 · last30 · mtd · month), compare (prev_period · prev_year) |
list_recent_orders | Orders, newest first | status, date, limit (1–50, default 20) |
get_order | One order's lines, modifiers, payments and split checks | orderId |
get_menu | Menu items, category, selling price, active, sold out (86) | activeOnly, categoryId, limit (1–200, default 100) |
get_open_balances | Aging of what suppliers are owed (payables) and what customers owe (receivables) | side (payables · receivables · both), asOf — needs view_gl, accounting |
get_staff_on_shift | One day's attendance: clock-in/out, status, late and overtime minutes | date — needs view_hr, HR & payroll |
Facts (read-only)
| Tool | Answers | Parameters |
|---|---|---|
get_sales_summary | Sales over a window, day by day, by type and daypart | days (1–120, default 14) |
get_prime_cost | Prime cost: COGS + labour vs net sales | from, to |
get_daily_cogs | Cost of goods sold per day | from, to |
get_cost_per_serving | Cost per serving by product | channel (default takeaway), incompleteOnly, page |
get_inventory_snapshot | Stock on hand at one location | location name or kind (warehouse, kitchen, …) |
get_item_consumption | Items used over a range | from, to |
get_loss_summary | Loss over a range | from, to, groupBy (day · shift · material · severity), shift |
get_shrinkage_report | Warehouse vs kitchen shrinkage | from, to |
get_avt_facts | Actual vs theoretical usage for one day and one book | businessDate, location (kitchen · warehouse) |
get_owner_leakage_facts | The owner's leakage facts for one day | businessDate |
get_price_variance | Purchase price variance, top movers | from, to, topN |
get_purchases_summary | Purchases per day and supplier debt | days (1–365, default 30) |
get_reorder_suggestions | What to reorder, from consumption velocity | history window in days |
get_payroll_summary | Payroll and headcount | — |
get_sales_integrity | Per-cashier discount and void outliers | from, to |
get_risk_signals | Current risk signals | limit (1–50, default 10) |
get_demand_forecast | Forecast demand per product and day | days (1–42, default 7), search (plan forecasting) |
get_anomaly_flags | Open anomaly flags from the detectors | status (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)
| Tool | Answers | Parameters |
|---|---|---|
list_conversations | Instagram, Messenger and WhatsApp conversations, most recent first | status, channelType, unreadOnly, limit |
get_conversation_messages | One conversation's latest messages | conversationId, limit |
get_inbox_counts | How 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)
| Tool | Answers | Parameters |
|---|---|---|
get_ai_credits | This 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_usage | Credits per month by feature, and the conversations and assistant threads that use most | months, feature, top |
Credits are not money: never convert them to a currency.
Tables (read-only)
| Tool | Does |
|---|---|
list_tables | Lists the readable tables and their columns |
read_table | Reads rows with filters, sort (asc · desc) and paging |
get_record | One row by id |
count_table | Counts rows matching filters |
aggregate_table | Sum / average / min / max / count, grouped — computed by the database |
Sensitive tables (credentials, secrets, audit internals, guests and reservations) are never readable.
Actions (write)
| Tool | Does |
|---|---|
list_actions | Console actions this credential may call — filter by module, search, includeReads; action for detail |
call_action | Performs one: method, path (/api/v1/console/…), body, idempotencyKey |
See Actions.