Skip to main content
Glama

create_order

Create a service order for the authenticated customer. Call calculate_quote first to get the price and recommended durationHours, then call this once the customer agrees.

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": {
      "category": "<category>",
      "serviceType": "<serviceType>",
      "scheduledTime": "<scheduledTime>",
      "address": "<address>",
      "frequency": "<frequency>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgingNo
garageNo
addressYesService address.
commentNoOptional notes for the service provider.
hallwayNo
hasPetsNo
windowsNo
areaRugsNo
backyardNo
basementNo
bedroomsNo
categoryYesService category.
wateringNo
yardSizeNo
bathroomsNo
engineBayNo
frequencyYesHow often the service repeats. Ask the customer.
overgrownNo
staircaseNo
tireCountNo
baseboardsNo
couponCodeNoCoupon code from the customer.
excessDirtNo
iceBuildupNo
iceSaltingNo
livingRoomNo
ovenInsideNo
carsToClearNo
clayAndSealNo
kitchenDeepNo
lawnCleanupNo
leafRemovalNo
serviceTypeYesSpecific service type.
vehicleTypeNo
windowPanesNo
drivewayTypeNo
fridgeInsideNo
frontWalkwayNo
sendQuoteSMSNoSend the customer an SMS summary.
durationHoursNoDuration in hours (0.5 increments, 2-hour minimum). Omit it to use the estimate from the service details.
femaleCleanerNo
groutCleaningNo
scheduledTimeYesLocal date/time at the service address, without an offset (e.g. "2025-07-15T10:00:00"). Daylight saving is resolved for that date.
windowScreensNo
gutterCleaningNo
kitchenSurfaceNo
petHairRemovalNo
spotCleanDoorsNo
spotCleanWallsNo
windrowClearingNo
cleaningSuppliesNo
soffitsAndFasciaNo
bookIfPaymentOnFileNoIf true and a payment method is saved, immediately charges and confirms the booking. Requires customerConfirmedCharge.
customerConfirmedChargeNoSet to true only after the customer explicitly approved the total and the charge in this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / bookIfPaymentOnFile / description
      Previous value: -"If true and a payment method is saved, immediately confirms the booking."New value: +"If true and a payment method is saved, immediately charges and confirms the booking. Requires customerConfirmedCharge."
    • addedInput schema / properties / couponCode
      Added value: +{
      +  "description": "Coupon code from the customer.",
      +  "type": "string"
      +}
    • addedInput schema / properties / customerConfirmedCharge
      Added value: +{
      +  "description": "Set to true only after the customer explicitly approved the total and the charge in this conversation.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / durationHours / description
      Previous value: -"Estimated duration in hours (0.5 increments). Use the value from calculate_quote."New value: +"Duration in hours (0.5 increments, 2-hour minimum). Omit it to use the estimate from the service details."
    • addedInput schema / properties / frequency
      Added value: +{
      +  "description": "How often the service repeats. Ask the customer.",
      +  "enum": [
      +    "one-time",
      +    "weekly",
      +    "bi-weekly",
      +    "monthly"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "category",
      -  "scheduledTime",
      -  "address"
      -]New value: +[
      +  "category",
      +  "serviceType",
      +  "scheduledTime",
      +  "address",
      +  "frequency"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / scheduledTime / description
      Previous value: -"ISO 8601 datetime string (e.g. \"2025-07-15T10:00:00-04:00\"). Always include the timezone offset."New value: +"Local date/time at the service address, without an offset (e.g. \"2025-07-15T10:00:00\"). Daylight saving is resolved for that date."
  3. Changed1 schema field changed
    • changedInput schema / properties / serviceType / enum
      Previous value: -[
      -  "DEEP-CLEAN",
      -  "POST-CONSTRUCTION",
      -  "AIRBNB-CLEAN",
      -  "MOVE-IN-OUT-CLEAN",
      -  "GENERAL-CLEAN",
      -  "CARPET-CLEAN",
      -  "LAWNCARE-LAWNMOWING",
      -  "LAWNCARE-MAINTENANCE",
      -  "LAWNCARE-PLANTING",
      -  "LAWNCARE-WEED-REMOVAL",
      -  "GENERAL",
      -  "CLEAN_CAR_EXTERIOR",
      -  "CLEAN_CAR_INTERIOR",
      -  "CLEAN_CAR_COMPLETE",
      -  "SNOW_REMOVAL",
      -  "SNOW_REMOVAL_AND_SALTING",
      -  "TIRE-CHANGE-STANDARD",
      -  "TIRE-CHANGE-SEASONAL"
      -]New value: +[
      +  "DEEP-CLEAN",
      +  "POST-CONSTRUCTION",
      +  "AIRBNB-CLEAN",
      +  "MOVE-IN-OUT-CLEAN",
      +  "GENERAL-CLEAN",
      +  "CARPET-CLEAN",
      +  "LAWNCARE-LAWNMOWING",
      +  "LAWNCARE-MAINTENANCE",
      +  "LAWNCARE-PLANTING",
      +  "LAWNCARE-WEED-REMOVAL",
      +  "GENERAL",
      +  "CLEAN_CAR_EXTERIOR",
      +  "CLEAN_CAR_INTERIOR",
      +  "CLEAN_CAR_COMPLETE",
      +  "SNOW_REMOVAL",
      +  "TIRE-CHANGE-STANDARD",
      +  "TIRE-CHANGE-SEASONAL"
      +]
  4. First observed

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the entire burden for a mutating, potentially charging operation. It never states whether the order is immediately confirmed, whether a payment method is required, that bookIfPaymentOnFile can trigger an immediate charge, or that the order is cancellable via cancel_job. The only behavioral signal is the vague 'once the customer agrees' precondition.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and followed by the workflow prerequisite. There is no filler, hedging, or restatement of the tool name.

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?

For a tool this complex (54 parameters, nested address object, no annotations, no output schema), the description is too thin to be called complete. It covers the quote-then-create workflow but omits confirmation/charge semantics and any guidance on which conditional fields matter per service category. A competent agent could still initiate the call, but not safely complete the charging path without reading the schema.

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

Parameters2/5

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

Fifty-four parameters with roughly 20% schema description coverage leaves most fields documented nowhere. The description adds meaning only for durationHours by tying it to the quote's recommendation, and says nothing about the five required fields, the large conditional service-detail fields (bedrooms, yardSize, vehicleType, tireCount), or the charge-related booleans. The gap is far too large for the description to compensate.

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?

The description states a specific verb and resource ('Create a service order') plus the scope ('for the authenticated customer'), so the agent knows exactly what is produced. It also points to the sibling tool calculate_quote, which helps distinguish this from the quoting step. It stops short of distinguishing this from availability-checking siblings like check_availability.

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?

Clear sequencing guidance: call calculate_quote first for price and recommended durationHours, then call this once the customer agrees. The 'customer agrees' gate is an explicit precondition rather than an implied one. It does not say when not to use it (e.g., unavailability handling or duplicate orders), so it falls short of full when/when-not coverage.

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