Create a work order
create_work_orderOpen a maintenance job against a property in this portfolio. Confirm with the user first — this creates a real record a technician will see. A CONTRACTING BUSINESS can raise a job for any customer, on Seayora or not: customer_id from list_customers for one of its clients, or customer_name with customer_email and/or customer_phone for somebody new (they are added as a client — they do NOT need a Seayora account), with the job site in site_street/site_city/site_state/site_zip so the invoice can be taxed. invite_customer: true also emails a new customer an invitation to join Seayora. Never ask the user to get their customer onto Seayora first.
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": {
"title": "<title>"
},
"name": "create_work_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short summary, e.g. "Kitchen sink leaking". | |
| urgency | No | ||
| site_zip | No | ||
| site_city | No | ||
| site_unit | No | ||
| site_state | No | Two-letter state — the invoice's sales tax depends on it. | |
| assigned_to | No | Technician email to assign it to. | |
| customer_id | No | Contractors: one of your clients, from `list_customers`. | |
| description | No | ||
| property_id | No | ||
| site_street | No | Contractors: the job site's street address. | |
| scheduled_at | No | ISO-8601 timestamp. | |
| customer_name | No | Contractors: a new customer's name (a person or a business). | |
| customer_email | No | Contractors: a new customer's email, if known. | |
| customer_phone | No | Contractors: a new customer's phone, if known. | |
| estimated_hours | No | ||
| invite_customer | No | Contractors: email a new customer an invitation to join Seayora. | |
| client_property_id | No | Contractors: one of the client's saved job sites, instead of typing one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The created or updated record's id, when the write was applied rather than staged. | |
| note | No | Why the result was truncated, when it was. | |
| staged | No | TRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done. | |
| draft_id | No | The staged proposal's id, when it was queued rather than performed. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |