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 — never convert them.

Start here

ToolAnswersParameters
get_business_contextBound branch, currency, today's business date, grounding rules—

Facts (read-only)

ToolAnswersParameters
get_sales_summarySales over a windowdays (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)

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

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) are never readable.

Actions (write)

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

See Actions.