Skip to main content
Glama

Create a work order

create_work_order
Destructive

Open 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

NameRequiredDescriptionDefault
titleYesShort summary, e.g. "Kitchen sink leaking".
urgencyNo
site_zipNo
site_cityNo
site_unitNo
site_stateNoTwo-letter state — the invoice's sales tax depends on it.
assigned_toNoTechnician email to assign it to.
customer_idNoContractors: one of your clients, from `list_customers`.
descriptionNo
property_idNo
site_streetNoContractors: the job site's street address.
scheduled_atNoISO-8601 timestamp.
customer_nameNoContractors: a new customer's name (a person or a business).
customer_emailNoContractors: a new customer's email, if known.
customer_phoneNoContractors: a new customer's phone, if known.
estimated_hoursNo
invite_customerNoContractors: email a new customer an invitation to join Seayora.
client_property_idNoContractors: one of the client's saved job sites, instead of typing one.

Output Schema

NameRequiredDescriptionDefault
idNoThe created or updated record's id, when the write was applied rather than staged.
noteNoWhy the result was truncated, when it was.
stagedNoTRUE 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_idNoThe staged proposal's id, when it was queued rather than performed.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=false, so the mutating nature is known; the description earns credit for disclosing consequences beyond that: the record is "a real record a technician will see," a new customer is silently added as a client, and `invite_customer` sends an actual email. It does not cover role/permission requirements beyond the implicit "CONTRACTING BUSINESS" framing, nor failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded: the confirmation requirement comes in the first clause, before the detail. The end of the paragraph restates the earlier "they do NOT need a Seayora account" point, which is mild redundancy, but the density is justified by the number of distinct calling paths.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, for an 18-parameter mutation with three overlapping ways to specify a location (`property_id`, `client_property_id`, raw `site_*` fields) and two ways to specify a customer, the description never states which to prefer or what happens when they conflict — a meaningful gap for a tool this complex.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

At 61% schema coverage across 18 parameters, the description adds genuine meaning: it explains the `customer_id` vs `customer_name`/`customer_email`/`customer_phone` split, why `site_street`/`site_city`/`site_state`/`site_zip` matter (invoice taxation), and what `invite_customer` actually does. It says nothing about `property_id`, `client_property_id`, `assigned_to`, or `estimated_hours`, leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Open a maintenance job against a property." It also reveals the contractor path (raising a job for any customer, whether or not they are on Seayora). The opening phrase "in this portfolio" is slightly at odds with the later "on Seayora or not" scope, which blurs the boundary a little, but the core action is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit pre-call guidance ("Confirm with the user first") and a negative instruction ("Never ask the user to get their customer onto Seayora first"). It routes between two concrete paths — `customer_id` via `list_customers` versus new-customer fields — but never contrasts this tool with `create_task`, `create_purchase_order`, or the update/get variants.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources