Skip to Content

MCP tools

These are the tools the Selflane MCP server offers. A key sees only the tools its scopes allow. Your MCP client reads each tool's schema from tools/list, so this page explains what the tools mean rather than every field.

Conventions

  • Dates are business days, YYYY-MM-DD, in the location's timezone. Payout dates are arrival dates in UTC, as on /v1/payouts.
  • Money is in currency units (dollars, not cents), rounded to cents.
  • location is one of the key's location ids. The tool's schema lists them. Where it's optional, leaving it out reads every location on the key.
  • Ended days only. The sales tools count only business days that have ended. A period reaching today is cut at the last ended day, and the returned period shows the cut. Use get_sales_today for the day in progress.
  • Mixed currencies. Totals across locations in different currencies come back as null.
  • Short lists. Tools return a capped list, with more: true or a note when there are more. They never page.

Sales

All sales tools need reports:read. They use the same daily figures as Reports.

get_sales_summary

Net sales, orders, average ticket, tips, tax, discounts, and total collected for a period, next to the period of the same length just before it. Change is given as a percent for net sales, orders, and average ticket.

ArgumentNotes
from, toRequired. At most 92 days.
locationOptional. Leave it out to combine every location.

compare_locations

Every location on the key for a period, ranked by net sales. Each shows its share of the total and its change from the previous period. Takes from and to, at most 92 days.

get_sales_today

Sales so far in the business day in progress, per location and combined: net sales, orders, open orders, average ticket, tips, and total collected. Takes an optional location. The figures match GET /v1/reports/today.

get_staff_sales

Sales per staff member for one location: orders, net sales, tips, and gift card sales, highest total first. Only orders a staff member rang up count. Takes location (required), from, and to.

Labor

get_labor_summary

Needs timecards:read. Hours worked by location and role, from the same timecards as /v1/timecards.

ArgumentNotes
from, toRequired. At most 31 days. Can include today.
locationOptional.
by_staffOptional. true adds hours per staff member.

Hours are worked time less unpaid breaks. A timecard still clocked in counts up to now, and is counted in open_timecards.

With staff.pay:read as well, each row adds labor_cost, and each location adds net_sales and labor_pct_of_net_sales. Labor percent uses only ended days and closed timecards. sales_through names the last day it includes. Without staff.pay:read, these fields are left out and a note says so.

Orders

find_orders

Needs orders:read. Finds orders at one location, newest first, at most 25.

ArgumentNotes
locationRequired.
from, toOptional. At most 3 days, today included. With neither, it reads yesterday and today.
numberOptional. The order number.
totalOptional. The total with tip. Matches within 1 either way, so 43 finds 43.27.
card_last4Optional. The last 4 digits of a card on the order or a split check.
fulfillmentOptional. pickup, delivery, dinein, curbside, drive, qrcode, or retail.
statusOptional. open, in_progress, ready, fulfilled, or canceled.

Each row has the order's id, number, time, fulfillment, status, total, and how it was paid. Items and customer details aren't included. Use get_order for those.

get_order

Needs orders:read. One order with its items, options, payments, refunds, and voids. Pass order_id from find_orders, or number and date with location. If two orders share that number on that day, it returns the matches so the model can pick one.

With orders.customer:read, the order adds the customer's name and phone. It never returns email.

Payouts

get_payouts

Needs payouts:read. Deposits to the business's bank, from the same data as /v1/payouts.

ArgumentNotes
from, toOptional arrival dates. At most 92 days. With neither, it reads the last 2 weeks and the next 2, so pending payouts are included.
locationOptional.

Each location returns next_deposit, what was deposited and what's on_the_way, and each payout with its charges, fees, refunds, adjustments, and the sales days it pays. Locations that share a payout account are counted once. Bank details are never returned.

Cash

get_cash_summary

Needs cash:read. Cash drawer sessions, from the same data as /v1/cash-drawers.

ArgumentNotes
from, toRequired. At most 31 days. Can include today.
locationOptional.

Each location returns expected and counted cash, how much it was over or short, and each session with who opened and closed it. Sessions that were short or over are listed first. Denomination counts aren't returned.

search_menu

Needs menu:read. Finds items at one location by name, kitchen name, category, or description, best match first, at most 20.

ArgumentNotes
locationRequired.
queryRequired. 1 to 100 characters. Every word must match.

Each item has its id, price, picture link, modifier groups, and available_now. An item isn't available if it's sold out, or if every menu it's on is outside its hours. unavailable_because says which. Business hours aren't checked.

get_menu_overview

Needs menu:read. Takes location. Returns how many items each category has, what's sold out, hidden online, or missing a picture, and each menu's hours and whether it's open now.

request_dish_picture_upload

Needs menu:write, which only an owner's sign-in connection can carry. It's marked as a change, so the client asks before each call.

ArgumentNotes
locationRequired.
dish_idRequired. An item id from search_menu.

It returns an upload_url that sets or replaces that item's picture. The link works once, for 30 minutes. A new link for the same item cancels the old one.

To upload, POST the file as multipart/form-data in the field file:

curl -F file=@pad-thai.jpg "https://developer.selflane.com/upload/dish-picture/sl_up_…"

The file must be:

  • A JPEG, exactly 1200 × 1200 px, at most 1 MB.
  • sRGB or no color profile. Other RGB profiles are converted. CMYK is refused.
  • Upright pixels, with no EXIF rotation.

A refused file doesn't use up the link, so fix it and send it again. The picture shows on the website and online ordering right away. POS devices and delivery partners get it at the next Publish.

Feedback

send_feedback

Needs reports:read. Sends a request the tools couldn't answer, 1 to 500 characters, to Selflane. It shows in the owner's Back Office Help list as AI connector feedback, and Selflane replies there. Takes an optional location. It's marked as a change, so the client asks before sending.

On this page