Invite a business staff member
invite_business_staffInvite someone by email to sign in to the site's portal as staff, with one or more staff screens: jobs, loyalty (the stamp-card till) and attendance. They get the same invitation email as an invite from Site settings → Client access, and see only their staff screens. Each staff login uses one team seat (a person counts once, across sites; someone already on the team or staff elsewhere takes no new one). When no seat is free the answer is SEAT_LIMIT_REQUIRES_PAYMENT (or SEAT_LIMIT_EXCEEDED on Free) with a message giving the local price of an extra seat: tell the user they can add a seat in Billing → Add-ons (add_seat_url) and then try again. The loyalty card includes a limited number of staff (5 unless raised); over it the answer is LOYALTY_STAFF_LIMIT: relay its message. Loyalty needs the site's loyalty card to exist and a name. For jobs, pass job_staff_id so their assigned jobs show. Never invite without the user's go-ahead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"email": "<email>",
"features": "<features>"
},
"name": "invite_business_staff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Their name, shown on the loyalty card's staff list. Needed with "loyalty" unless job_staff_id names them. | |
| Yes | The staff member's email; the invitation goes there | ||
| site_id | Yes | The site the staff work for | |
| features | Yes | Staff screens to give them: "jobs" (their assigned jobs), "loyalty" (the stamp-card till), "attendance" (marking attendance). One or more. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| job_staff_id | No | With "jobs": the job staff member this login is for (staff id from list_job_types_and_staff), so jobs assigned to them show once they sign in. |