SMB Sandbox
v0.1.0Mock small-business CRM, inbox, calendar, invoicing and phone tools for testing AI agents safely.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
crm_search_contacts Search contacts
Find people by name, email, phone digits or title. Use before any contact-specific action to get the contact id. Set missingInfo to find contacts lacking a valid email or phone.
| Parameter | Type | Description |
|---|---|---|
customerId | string | |
limit | integer | Max rows to return (default 25, max 100). |
missingInfo | boolean | |
offset | integer | Rows to skip (default 0). |
query | string |
crm_get_contact Get contact
Full profile of one contact plus their customer account, leads, deals and recent calls. Use when you need context before replying to or changing a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact id |
crm_create_contact Create contact
Add a new person, optionally linked to a customer account. Search first to avoid creating duplicates.
| Parameter | Type | Description |
|---|---|---|
firstName * | string | |
lastName * | string | |
customerId | string | null | |
email | string | null | |
phone | string | null | |
title | string | null |
crm_update_contact Update contact
Change a contact's name, email, phone, title or customer link. Omitted fields stay as they are; null clears a field. Use to fix missing or malformed contact info.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact id |
customerId | string | null | |
email | string | null | |
firstName | string | |
lastName | string | |
phone | string | null | |
title | string | null |
crm_merge_contacts Merge duplicate contacts
Fold a duplicate contact (mergeId) into the one to keep (keepId): empty fields are filled from the duplicate, all leads/deals/messages/calls are re-pointed, and the duplicate is deleted. Irreversible; confirm they are the same person first.
| Parameter | Type | Description |
|---|---|---|
keepId * | string | Contact to keep id |
mergeId * | string | Duplicate contact to remove id |
crm_list_customers List customers
List customer accounts (households or businesses), newest first. Filter by text, status or owner.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
ownerId | string | |
query | string | |
status | string |
crm_get_customer Get customer
One customer account with its contacts, deals, jobs and invoices. Use for a full account picture.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | Customer id |
crm_list_employees List employees
Active staff with ids and roles. Use to pick an owner for a deal/lead or an assignee for a job or task.
| Parameter | Type | Description |
|---|---|---|
includeInactive | boolean |
crm_list_leads List leads
Inbound leads, newest first. Set uncontacted: true to find leads nobody has responded to yet.
| Parameter | Type | Description |
|---|---|---|
contactId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
ownerId | string | |
status | string | |
uncontacted | boolean |
crm_update_lead Update lead
Change a lead's status or owner. Note: sending an email/SMS or logging an outbound call to the lead's contact marks it contacted automatically.
| Parameter | Type | Description |
|---|---|---|
leadId * | string | Lead id |
ownerId | string | null | |
status | string |
crm_list_deals List deals
Sales pipeline deals, most recently updated first. Use staleDays to find open deals with no activity for N days, openOnly to skip won/lost.
| Parameter | Type | Description |
|---|---|---|
contactId | string | |
customerId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
openOnly | boolean | |
ownerId | string | |
stage | string | |
staleDays | integer |
crm_get_deal Get deal
One deal with its quotes and contact.
| Parameter | Type | Description |
|---|---|---|
dealId * | string | Deal id |
crm_update_deal Update deal
Move a deal to a new stage and/or set its next action, amount or owner. Stage moves must follow the pipeline (new→qualified→quote-sent→negotiation→won/lost; won is final; lost can reopen). Moving to lost requires lostReason. Set nextAction to {summary, dueOn} so every open deal has a next step.
| Parameter | Type | Description |
|---|---|---|
dealId * | string | Deal id |
amountCents | integer | Deal value in integer cents, e.g. 12500 = $125.00 |
lostReason | string | |
nextAction | ||
ownerId | string | null | |
stage | string |
crm_list_quotes List quotes
Quotes/estimates. Set notFollowedUp: true to find sent quotes that never got a follow-up.
| Parameter | Type | Description |
|---|---|---|
customerId | string | |
dealId | string | |
limit | integer | Max rows to return (default 25, max 100). |
notFollowedUp | boolean | |
offset | integer | Rows to skip (default 0). |
status | string |
crm_send_quote Send quote
Send a draft quote to the customer (status becomes sent). Only works on drafts.
| Parameter | Type | Description |
|---|---|---|
quoteId * | string | Quote id |
expiresOn | string | Date, YYYY-MM-DD |
crm_follow_up_quote Follow up on quote
Message the deal's contact about a sent/viewed quote and record the follow-up on the quote. Write the full message body. Goes to the outbox; nothing is really delivered.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
quoteId * | string | Quote id |
channel | string | Default email |
contactId | string | Defaults to the deal's contact |
employeeId | string | Sender; defaults to the company address |
crm_list_tasks List tasks
To-dos for staff. Filter by status, assignee or a related record id.
| Parameter | Type | Description |
|---|---|---|
assigneeId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
relatedId | string | |
status | string |
crm_create_task Create task
Create a to-do for a staff member, linked to the records it is about (relatedIds). Use when a human must do something you cannot.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
assigneeId | string | null | |
dueOn | ||
relatedIds | array |
crm_complete_task Complete task
Mark an open task done.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task id |
inbox_list_threads List inbox threads
Email and SMS conversations, newest activity first, with unread counts and the last message snippet. Use unreadOnly to triage.
| Parameter | Type | Description |
|---|---|---|
channel | string | |
contactId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
query | string | |
unreadOnly | boolean |
inbox_get_thread Get thread
All messages in one thread, oldest first. Read before replying.
| Parameter | Type | Description |
|---|---|---|
threadId * | string | Thread (thr_…) id |
inbox_send_email Send email
Send an email to a contact, raw address, or as a reply in an existing thread (threadId). Subject is required for new threads. Written to the outbox only; nothing leaves the sandbox.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
contactId | string | |
employeeId | string | Sender; defaults to the company address |
relatedIds | array | Records this email is about |
subject | string | |
threadId | string | |
to | array |
inbox_send_sms Send SMS
Send a text message to a contact, raw number, or within an SMS thread. Outbox only.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
contactId | string | |
employeeId | string | |
relatedIds | array | |
threadId | string | |
to | string |
inbox_mark_thread_read Mark thread read
Mark every message in a thread as read after handling it.
| Parameter | Type | Description |
|---|---|---|
threadId * | string | Thread id |
calendar_list_jobs List jobs
Scheduled work (appointments / work orders / projects), latest start first. Filter by status, customer, assignee, or a start-time window [from, to).
| Parameter | Type | Description |
|---|---|---|
assigneeId | string | |
customerId | string | |
from | string | Inclusive; YYYY-MM-DD or datetime |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
status | string | |
to | string | Exclusive; YYYY-MM-DD or datetime |
calendar_get_job Get job
One job with its customer and invoices.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Job id |
calendar_schedule_job Schedule job
Book new work for a customer. Assignees must be active employees and not double-booked (pass allowOverlap to override).
| Parameter | Type | Description |
|---|---|---|
customerId * | string | Customer id |
scheduledEnd * | string | ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z |
scheduledStart * | string | ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z |
title * | string | |
allowOverlap | boolean | |
assigneeIds | array | |
notes | string | null | |
quoteId | string | null |
calendar_reschedule_job Reschedule job
Move a scheduled or no-show job to a new time window (optionally new assignees). Does NOT notify the customer; send them a message separately if policy requires.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Job id |
scheduledEnd * | string | ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z |
scheduledStart * | string | ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z |
allowOverlap | boolean | |
assigneeIds | array | |
reason | string |
calendar_cancel_job Cancel job
Cancel a scheduled or in-progress job. Requires a reason. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Job id |
reason * | string |
calendar_complete_job Complete job
Mark a scheduled or in-progress job completed now, with optional notes.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Job id |
notes | string |
invoicing_list_invoices List invoices
Invoices, newest first. Set overdue: true for unpaid invoices past their due date.
| Parameter | Type | Description |
|---|---|---|
customerId | string | |
jobId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
overdue | boolean | |
status | string |
invoicing_get_invoice Get invoice
One invoice with its payments and balance due.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice id |
invoicing_create_invoice Create invoice
Issue an invoice to a customer (optionally for a job of that customer). Total is computed from line items; due date defaults to company payment terms.
| Parameter | Type | Description |
|---|---|---|
customerId * | string | Customer id |
lineItems * | array | |
dueOn | string | Date, YYYY-MM-DD |
issuedOn | string | Date, YYYY-MM-DD |
jobId | string | null |
invoicing_send_reminder Send invoice reminder
Send a payment reminder for an open or partially-paid invoice to the customer's contact (outbox only). A default polite body is used if none is given.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice id |
body | string | |
channel | string | |
contactId | string | |
employeeId | string |
invoicing_void_invoice Void invoice
Void an invoice that has no payments applied (e.g. issued against the wrong job). Irreversible; requires a reason.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice id |
reason * | string |
invoicing_record_payment Record payment
Record money received against an invoice. Cannot exceed the balance; void, draft and paid invoices are rejected.
| Parameter | Type | Description |
|---|---|---|
amountCents * | integer | Amount received in integer cents, e.g. 12500 = $125.00 |
invoiceId * | string | Invoice id |
method * | string | |
reference | string |
invoicing_list_payments List payments
Payments received, newest first. Set unmatched: true for payments not yet applied to any invoice.
| Parameter | Type | Description |
|---|---|---|
customerId | string | |
invoiceId | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
unmatched | boolean |
invoicing_match_payment Match payment to invoice
Apply an unmatched payment to the invoice it pays. Customer must match and amount must not exceed the balance.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice id |
paymentId * | string | Payment id |
phone_list_calls List calls
Phone call log, newest first. Use outcome: missed and direction: inbound to find calls that may need a callback.
| Parameter | Type | Description |
|---|---|---|
contactId | string | |
direction | string | |
limit | integer | Max rows to return (default 25, max 100). |
offset | integer | Rows to skip (default 0). |
outcome | string | |
since | string | Inclusive; YYYY-MM-DD or datetime |
phone_log_call Log call
Record a call you made or took (e.g. a callback), with outcome and a short summary. No real call is placed.
| Parameter | Type | Description |
|---|---|---|
outcome * | string | |
contactId | string | |
direction | string | Default outbound |
durationSec | integer | |
employeeId | string | |
phone | string | Defaults to the contact's phone |
summary | string | null |
admin_get_company_policies Get company policies
The company's plain-language operating rules (response times, follow-up cadence, payment terms...). Read before acting.
admin_get_company Get company profile
Company profile plus the simulated current time and today's date in company time.
admin_get_audit_log Get audit log
Every mutation attempted so far (tool, input, ok/error, changed ids), in order. Use sinceSeq to fetch only newer entries.
| Parameter | Type | Description |
|---|---|---|
sinceSeq | integer |
admin_reset Reset sandbox
Restore the original dataset and clock, discarding every change. The audit log is kept and records the reset.
admin_save_state Save state
Write the current dataset, audit log and outbox to the --state-out file for grading.
admin_advance_clock Advance clock
Move simulated time forward by N minutes (e.g. to simulate waiting for a reply).
| Parameter | Type | Description |
|---|---|---|
minutes * | integer |