Skip to main content
Glama

Schedule Visits

schedule_visits

Schedules recurring visits: expands each cadence (e.g. every 7 days) across a horizon and packs visits into daily buckets under a technician-day cap. Decides which day each visit happens (auto_build and cluster_points divide accounts among people); creates no alignment. Needs point_layer (ingested with cadence declared, else UNDECLARED_FIELD), visit_frequency_field, dwell_time, and daily_capacity ({mode: not_to_exceed, hours: 8}); missing dwell or capacity returns CLARIFICATION_REQUIRED. Omitted max_buckets_per_day means one technician per day; when one does not fit, CLARIFICATION_REQUIRED carries capacity_plan. estimate_only=true returns capacity_plan. contractors (point_layer or list: start, pre_service_stops, route_type, end) anchors buckets; unanchored one-stop days warn SINGLE_STOP_DAYS. frequency_unit: interval_days or visits_per_horizon. bucket_workload_hours (drive plus dwell) is a different measure from territory workload and route_workload_hours. Returns a task. calculate_route on one bucket_id drives that day. Date limits: visit_constraints with horizon_start_date.

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": {
      "point_layer": "<point_layer>",
      "visit_frequency_field": "<visit_frequency_field>"
    },
    "name": "schedule_visits"
  }
}

Input Schema

NameRequiredDescriptionDefault
tal_idNoOptional TAL id when filtering scheduled accounts by territory_id or territory_ids.
horizonNo
objectiveNoBiases must sum to 100. Raising balance_bias to 100 lengthens otherwise efficient days to equalize hours, which is rarely what the customer wants.
point_idsNoOptional list of account/point IDs to schedule.
ts_handleNoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
dwell_timeNo
contractorsNoOptional contractor anchoring: {point_layer: 'contractors'} (one contractor per point), or a list of contractors each with start, optional pre_service_stops, route_type (circuit|tour|open_tour), and end.
point_layerYes
point_filterNoOptional attribute filter (property -> value or list of values) to schedule a subset of point_layer.
territory_idNoOptional leaf territory id or unique display label to schedule only accounts inside that territory polygon.
estimate_onlyNoWhen true, runs a fast capacity-planning preflight without mutating the Territory Solution or emitting a visits layer, returning capacity_plan (open_service_days, closed_days, required_daily_hours_avg, peak_day_floor_hours, min_resources_per_day, recommended_resources_per_day, and remedies).
territory_idsNoOptional list of leaf territory ids or display labels to schedule only accounts inside those territory polygons.
daily_capacityNo
frequency_unitNointerval_days: the value is the maximum days between visits. visits_per_horizon: the value is how many visits the account gets across the whole horizon.interval_days
map_session_idNoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
schedule_labelNo
emit_visit_layerNoMaterialize one point per scheduled visit so color-by-day and the calculate_route handoff are single calls.
visit_layer_nameNoDefaults to <point_layer>_visits. This name is the schedule's identity: re-running with the same name replaces the layer in place, a different name adds a second schedule for comparison.
expected_revisionNo
visit_constraintsNoSeparate account-keyed date-constraint dataset: blackouts/no-service windows, fixed dates, SLA due dates, anchor days, allowed weekdays. See visitConstraint.
horizon_start_dateNoCalendar date of horizon day 1. Required when visit_constraints is non-empty; without it dated constraints return CLARIFICATION_REQUIRED (needs_horizon_start_date). There is no default of today.
never_visit_valuesNoFrequency values that mean the account is left off the schedule. Matching accounts are excluded and reported in excluded_accounts, never silently dropped.
max_buckets_per_dayNoCap on concurrent buckets in one day, normally the technician/contractor count (cannot exceed len(contractors) when contractors are supplied). Omitted with no contractors: one bucket per day; when that does not fit, CLARIFICATION_REQUIRED (blocked_by needs_technician_count) returns capacity_plan and asks how many technicians.
visit_frequency_fieldYesNumeric point column declared at ingest. Undeclared columns fail with UNDECLARED_FIELD.
cadence_flexibility_pctNoPercent of an account's own cadence a single visit may drift so the number of work clusters stays comparable day to day. At the default 15 a 14-day account may slide two days and a 7-day account one; a 3-day account does not move. Set to 0 for strict cadence. A drift past this tolerance happens only to staff a day that would otherwise be short of work — an idle technician costs more than a visit arriving a day early — and every relaxed visit is reported in distribution_summary.cadence_relaxation and the visits layer's cadence_drift_days column.

Output Schema

NameRequiredDescriptionDefault
okYes
errorNoPresent when ok is false.
resultNoPresent when ok is true. A submission returns the task reference (task_id, next_action, sleep_ms); the completed task result carries the remaining fields.
warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "RepoShape1": {
      -    "additionalProperties": false,
      -    "description": "Expands each matching point in point_layer into one contractor whose start is that point.",
      -    "properties": {
      -      "end": {
      -        "$ref": "#/$defs/RepoShape3"
      -      },
      -      "filter": {
      -        "minProperties": 1,
      -        "type": "object"
      -      },
      -      "label_field": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "point_ids": {
      -        "items": {
      -          "type": [
      -            "string",
      -            "integer"
      -          ]
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "point_layer": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "pre_service_stops": {
      -        "$ref": "#/$defs/RepoShape2"
      -      },
      -      "route_type": {
      -        "default": "circuit",
      -        "enum": [
      -          "circuit",
      -          "tour",
      -          "open_tour"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "point_layer"
      -    ],
      -    "type": "object"
      -  },
      -  "RepoShape2": {
      -    "items": {
      -      "$ref": "#/$defs/RepoShape3"
      -    },
      -    "type": "array"
      -  },
      -  "RepoShape3": {
      -    "description": "Stop location resolved from a point layer in the TS or inline WGS84 coordinates (T-214).",
      -    "oneOf": [
      -      {
      -        "$ref": "#/$defs/RepoShape6"
      -      },
      -      {
      -        "$ref": "#/$defs/RepoShape4"
      -      }
      -    ]
      -  },
      -  "RepoShape4": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contractor_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "dwell_minutes": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "label": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "latitude": {
      -        "maximum": 90,
      -        "minimum": -90,
      -        "type": "number"
      -      },
      -      "longitude": {
      -        "maximum": 180,
      -        "minimum": -180,
      -        "type": "number"
      -      },
      -      "name": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "stop_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "latitude",
      -      "longitude"
      -    ],
      -    "type": "object"
      -  },
      -  "RepoShape6": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dwell_minutes": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "filter": {
      -        "minProperties": 1,
      -        "type": "object"
      -      },
      -      "label_field": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "point_ids": {
      -        "items": {
      -          "type": [
      -            "string",
      -            "integer"
      -          ]
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "point_layer": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "point_layer"
      -    ],
      -    "type": "object"
      -  }
      -}
    • changedInput schema / properties / contractors / anyOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "$ref": "#/$defs/RepoShape1"
      -      },
      -      {
      -        "items": {
      -          "oneOf": [
      -            {
      -              "$ref": "#/$defs/RepoShape1"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "contractor_id": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "end": {
      -                  "$ref": "#/$defs/RepoShape3"
      -                },
      -                "label": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "pre_service_stops": {
      -                  "$ref": "#/$defs/RepoShape2"
      -                },
      -                "route_type": {
      -                  "default": "circuit",
      -                  "enum": [
      -                    "circuit",
      -                    "tour",
      -                    "open_tour"
      -                  ],
      -                  "type": "string"
      -                },
      -                "start": {
      -                  "$ref": "#/$defs/RepoShape3"
      -                }
      -              },
      -              "required": [
      -                "start"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "contractor_id": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "end": {
      -                  "$ref": "#/$defs/RepoShape3"
      -                },
      -                "label": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "latitude": {
      -                  "maximum": 90,
      -                  "minimum": -90,
      -                  "type": "number"
      -                },
      -                "longitude": {
      -                  "maximum": 180,
      -                  "minimum": -180,
      -                  "type": "number"
      -                },
      -                "pre_service_stops": {
      -                  "$ref": "#/$defs/RepoShape2"
      -                },
      -                "route_type": {
      -                  "default": "circuit",
      -                  "enum": [
      -                    "circuit",
      -                    "tour",
      -                    "open_tour"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "latitude",
      -                "longitude"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Every matching point of point_layer becomes one contractor.",
      +    "properties": {
      +      "end": {
      +        "description": "A stop: a point layer source ({point_layer, optional point_ids / filter}) or coordinates ({latitude, longitude}).",
      +        "properties": {
      +          "dwell_minutes": {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "filter": {
      +            "additionalProperties": true,
      +            "description": "Attribute filter: property -> value or list of values.",
      +            "type": "object"
      +          },
      +          "label": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "label_field": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "latitude": {
      +            "maximum": 90,
      +            "minimum": -90,
      +            "type": "number"
      +          },
      +          "longitude": {
      +            "maximum": 180,
      +            "minimum": -180,
      +            "type": "number"
      +          },
      +          "point_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "point_layer": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "stop_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "filter": {
      +        "additionalProperties": true,
      +        "description": "Attribute filter: property -> value or list of values.",
      +        "type": "object"
      +      },
      +      "label_field": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "point_ids": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "point_layer": {
      +        "description": "Point layer whose points are the contractors; each point is one contractor's start.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "pre_service_stops": {
      +        "description": "Stops every day visits before the first account, e.g. a depot with dwell_minutes.",
      +        "items": {
      +          "description": "A stop: a point layer source ({point_layer, optional point_ids / filter}) or coordinates ({latitude, longitude}).",
      +          "properties": {
      +            "dwell_minutes": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "filter": {
      +              "additionalProperties": true,
      +              "description": "Attribute filter: property -> value or list of values.",
      +              "type": "object"
      +            },
      +            "label": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "label_field": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "latitude": {
      +              "maximum": 90,
      +              "minimum": -90,
      +              "type": "number"
      +            },
      +            "longitude": {
      +              "maximum": 180,
      +              "minimum": -180,
      +              "type": "number"
      +            },
      +            "point_ids": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "point_layer": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "stop_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "route_type": {
      +        "default": "circuit",
      +        "description": "circuit returns to start; tour ends at end; open_tour is one-way.",
      +        "enum": [
      +          "circuit",
      +          "tour",
      +          "open_tour"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "point_layer"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "One entry per contractor.",
      +    "items": {
      +      "description": "One contractor: {start: <stop>} or {latitude, longitude}, or a {point_layer} source that expands to one contractor per point.",
      +      "properties": {
      +        "contractor_id": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "end": {
      +          "description": "A stop: a point layer source ({point_layer, optional point_ids / filter}) or coordinates ({latitude, longitude}).",
      +          "properties": {
      +            "dwell_minutes": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "filter": {
      +              "additionalProperties": true,
      +              "description": "Attribute filter: property -> value or list of values.",
      +              "type": "object"
      +            },
      +            "label": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "label_field": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "latitude": {
      +              "maximum": 90,
      +              "minimum": -90,
      +              "type": "number"
      +            },
      +            "longitude": {
      +              "maximum": 180,
      +              "minimum": -180,
      +              "type": "number"
      +            },
      +            "point_ids": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "point_layer": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "stop_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "filter": {
      +          "additionalProperties": true,
      +          "description": "Attribute filter: property -> value or list of values.",
      +          "type": "object"
      +        },
      +        "label": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "label_field": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "latitude": {
      +          "maximum": 90,
      +          "minimum": -90,
      +          "type": "number"
      +        },
      +        "longitude": {
      +          "maximum": 180,
      +          "minimum": -180,
      +          "type": "number"
      +        },
      +        "point_ids": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "point_layer": {
      +          "description": "Point layer whose points are the contractors; each point is one contractor's start.",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "pre_service_stops": {
      +          "description": "Stops every day visits before the first account, e.g. a depot with dwell_minutes.",
      +          "items": {
      +            "description": "A stop: a point layer source ({point_layer, optional point_ids / filter}) or coordinates ({latitude, longitude}).",
      +            "properties": {
      +              "dwell_minutes": {
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "filter": {
      +                "additionalProperties": true,
      +                "description": "Attribute filter: property -> value or list of values.",
      +                "type": "object"
      +              },
      +              "label": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "label_field": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "latitude": {
      +                "maximum": 90,
      +                "minimum": -90,
      +                "type": "number"
      +              },
      +              "longitude": {
      +                "maximum": 180,
      +                "minimum": -180,
      +                "type": "number"
      +              },
      +              "point_ids": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "point_layer": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "stop_id": {
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "route_type": {
      +          "default": "circuit",
      +          "description": "circuit returns to start; tour ends at end; open_tour is one-way.",
      +          "enum": [
      +            "circuit",
      +            "tour",
      +            "open_tour"
      +          ],
      +          "type": "string"
      +        },
      +        "start": {
      +          "description": "A stop: a point layer source ({point_layer, optional point_ids / filter}) or coordinates ({latitude, longitude}).",
      +          "properties": {
      +            "dwell_minutes": {
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            "filter": {
      +              "additionalProperties": true,
      +              "description": "Attribute filter: property -> value or list of values.",
      +              "type": "object"
      +            },
      +            "label": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "label_field": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "latitude": {
      +              "maximum": 90,
      +              "minimum": -90,
      +              "type": "number"
      +            },
      +            "longitude": {
      +              "maximum": 180,
      +              "minimum": -180,
      +              "type": "number"
      +            },
      +            "point_ids": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "point_layer": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "stop_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / contractors / description
      Previous value: -"Optional contractor anchoring (T-214). Takes a point-layer source (e.g. {point_layer: 'contractors'}) or a list of contractor entries with start, optional pre_service_stops (e.g. a depot with dwell_minutes), route_type (circuit|tour|open_tour), and optional end."New value: +"Optional contractor anchoring: {point_layer: 'contractors'} (one contractor per point), or a list of contractors each with start, optional pre_service_stops, route_type (circuit|tour|open_tour), and end."
    • addedInput schema / properties / contractors / title
      Added value: +"Contractors"
    • changedInput schema / properties / daily_capacity / anyOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "hours": {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          "mode": {
      -            "const": "not_to_exceed"
      -          }
      -        },
      -        "required": [
      -          "mode",
      -          "hours"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "hours": {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          "mode": {
      -            "const": "target_band"
      -          },
      -          "tolerance_pct": {
      -            "default": 10,
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "mode",
      -          "hours"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Workload limit for one technician-day: {mode: 'not_to_exceed', hours: 8} is a hard ceiling; {mode: 'target_band', hours: 8, tolerance_pct: 10} aims for the target and accepts anything inside the tolerance. There is no default.",
      +    "properties": {
      +      "hours": {
      +        "description": "Workload hours (drive plus dwell) one technician-day holds.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "mode": {
      +        "description": "not_to_exceed: hard ceiling. target_band: target with tolerance.",
      +        "enum": [
      +          "not_to_exceed",
      +          "target_band"
      +        ],
      +        "type": "string"
      +      },
      +      "tolerance_pct": {
      +        "default": 10,
      +        "description": "Percent either side of hours accepted when mode='target_band'. Ignored for not_to_exceed.",
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "hours"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / daily_capacity / description
      Removed value: -"Workload limit for one bucket (one technician-day). not_to_exceed is a hard ceiling the scheduler never breaches; target_band aims for the target and accepts anything inside the tolerance."
    • addedInput schema / properties / daily_capacity / title
      Added value: +"Daily Capacity"
    • changedInput schema / properties / horizon / anyOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "mode": {
      -            "const": "derived"
      -          }
      -        },
      -        "required": [
      -          "mode"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "days": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "mode": {
      -            "const": "explicit"
      -          }
      -        },
      -        "required": [
      -          "mode",
      -          "days"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Planning horizon: {mode: 'derived'} takes the longest interval among scheduled accounts; {mode: 'explicit', days: 28} sets a rolling cycle length.",
      +    "properties": {
      +      "days": {
      +        "description": "Horizon length in days. Required when mode='explicit'.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "mode": {
      +        "description": "derived: longest cadence in the data. explicit: use days.",
      +        "enum": [
      +          "derived",
      +          "explicit"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / horizon / description
      Removed value: -"Planning horizon. derived takes the longest interval among scheduled accounts; explicit is how a 28- or 42-day rolling cycle is requested when intervals leave a remainder on a shorter horizon."
    • addedInput schema / properties / horizon / title
      Added value: +"Horizon"
  2. Changed3 schema fields changed
    • changedInput schema / $defs / RepoShape3 / oneOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/RepoShape5"
      -  },
      -  {
      -    "$ref": "#/$defs/RepoShape4"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/RepoShape6"
      +  },
      +  {
      +    "$ref": "#/$defs/RepoShape4"
      +  }
      +]
    • removedInput schema / $defs / RepoShape5
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "dwell_minutes": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "filter": {
      -      "minProperties": 1,
      -      "type": "object"
      -    },
      -    "label_field": {
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "point_ids": {
      -      "items": {
      -        "type": [
      -          "string",
      -          "integer"
      -        ]
      -      },
      -      "minItems": 1,
      -      "type": "array"
      -    },
      -    "point_layer": {
      -      "minLength": 1,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "point_layer"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / $defs / RepoShape6
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "dwell_minutes": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "filter": {
      +      "minProperties": 1,
      +      "type": "object"
      +    },
      +    "label_field": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "point_ids": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "integer"
      +        ]
      +      },
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "point_layer": {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "point_layer"
      +  ],
      +  "type": "object"
      +}
  3. Changed8 schema fields changed
    • changedOutput schema / properties / result / description
      Previous value: -"Present when ok is true."New value: +"Present when ok is true. A submission returns the task reference (task_id, next_action, sleep_ms); the completed task result carries the remaining fields."
    • changedOutput schema / properties / result / properties / do_this_next / type
      Previous value: -"string"New value: +[
      +  "object",
      +  "string"
      +]
    • addedOutput schema / properties / result / properties / job_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / next_action
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / sleep_ms
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / result / properties / status
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / task_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / terminal
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed39 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "RepoShape1": {
      +    "additionalProperties": false,
      +    "description": "Expands each matching point in point_layer into one contractor whose start is that point.",
      +    "properties": {
      +      "end": {
      +        "$ref": "#/$defs/RepoShape3"
      +      },
      +      "filter": {
      +        "minProperties": 1,
      +        "type": "object"
      +      },
      +      "label_field": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "point_ids": {
      +        "items": {
      +          "type": [
      +            "string",
      +            "integer"
      +          ]
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "point_layer": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "pre_service_stops": {
      +        "$ref": "#/$defs/RepoShape2"
      +      },
      +      "route_type": {
      +        "default": "circuit",
      +        "enum": [
      +          "circuit",
      +          "tour",
      +          "open_tour"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "point_layer"
      +    ],
      +    "type": "object"
      +  },
      +  "RepoShape2": {
      +    "items": {
      +      "$ref": "#/$defs/RepoShape3"
      +    },
      +    "type": "array"
      +  },
      +  "RepoShape3": {
      +    "description": "Stop location resolved from a point layer in the TS or inline WGS84 coordinates (T-214).",
      +    "oneOf": [
      +      {
      +        "$ref": "#/$defs/RepoShape5"
      +      },
      +      {
      +        "$ref": "#/$defs/RepoShape4"
      +      }
      +    ]
      +  },
      +  "RepoShape4": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contractor_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "dwell_minutes": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "label": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "latitude": {
      +        "maximum": 90,
      +        "minimum": -90,
      +        "type": "number"
      +      },
      +      "longitude": {
      +        "maximum": 180,
      +        "minimum": -180,
      +        "type": "number"
      +      },
      +      "name": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "stop_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "latitude",
      +      "longitude"
      +    ],
      +    "type": "object"
      +  },
      +  "RepoShape5": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dwell_minutes": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "filter": {
      +        "minProperties": 1,
      +        "type": "object"
      +      },
      +      "label_field": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "point_ids": {
      +        "items": {
      +          "type": [
      +            "string",
      +            "integer"
      +          ]
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "point_layer": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "point_layer"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / cadence_flexibility_pct / description
      Added value: +"Percent of an account's own cadence a single visit may drift so the number of work clusters stays comparable day to day. At the default 15 a 14-day account may slide two days and a 7-day account one; a 3-day account does not move. Set to 0 for strict cadence. A drift past this tolerance happens only to staff a day that would otherwise be short of work — an idle technician costs more than a visit arriving a day early — and every relaxed visit is reported in distribution_summary.cadence_relaxation and the visits layer's cadence_drift_days column."
    • changedInput schema / properties / contractors / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "$ref": "#/$defs/RepoShape1"
      +      },
      +      {
      +        "items": {
      +          "oneOf": [
      +            {
      +              "$ref": "#/$defs/RepoShape1"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "contractor_id": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "end": {
      +                  "$ref": "#/$defs/RepoShape3"
      +                },
      +                "label": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "pre_service_stops": {
      +                  "$ref": "#/$defs/RepoShape2"
      +                },
      +                "route_type": {
      +                  "default": "circuit",
      +                  "enum": [
      +                    "circuit",
      +                    "tour",
      +                    "open_tour"
      +                  ],
      +                  "type": "string"
      +                },
      +                "start": {
      +                  "$ref": "#/$defs/RepoShape3"
      +                }
      +              },
      +              "required": [
      +                "start"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "contractor_id": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "end": {
      +                  "$ref": "#/$defs/RepoShape3"
      +                },
      +                "label": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "latitude": {
      +                  "maximum": 90,
      +                  "minimum": -90,
      +                  "type": "number"
      +                },
      +                "longitude": {
      +                  "maximum": 180,
      +                  "minimum": -180,
      +                  "type": "number"
      +                },
      +                "pre_service_stops": {
      +                  "$ref": "#/$defs/RepoShape2"
      +                },
      +                "route_type": {
      +                  "default": "circuit",
      +                  "enum": [
      +                    "circuit",
      +                    "tour",
      +                    "open_tour"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "latitude",
      +                "longitude"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / contractors / description
      Added value: +"Optional contractor anchoring (T-214). Takes a point-layer source (e.g. {point_layer: 'contractors'}) or a list of contractor entries with start, optional pre_service_stops (e.g. a depot with dwell_minutes), route_type (circuit|tour|open_tour), and optional end."
    • removedInput schema / properties / contractors / title
      Removed value: -"Contractors"
    • changedInput schema / properties / daily_capacity / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "hours": {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          "mode": {
      +            "const": "not_to_exceed"
      +          }
      +        },
      +        "required": [
      +          "mode",
      +          "hours"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "hours": {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          "mode": {
      +            "const": "target_band"
      +          },
      +          "tolerance_pct": {
      +            "default": 10,
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "mode",
      +          "hours"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / daily_capacity / description
      Added value: +"Workload limit for one bucket (one technician-day). not_to_exceed is a hard ceiling the scheduler never breaches; target_band aims for the target and accepts anything inside the tolerance."
    • removedInput schema / properties / daily_capacity / title
      Removed value: -"Daily Capacity"
    • addedInput schema / properties / emit_visit_layer / description
      Added value: +"Materialize one point per scheduled visit so color-by-day and the calculate_route handoff are single calls."
    • addedInput schema / properties / estimate_only / description
      Added value: +"When true, runs a fast capacity-planning preflight without mutating the Territory Solution or emitting a visits layer, returning capacity_plan (open_service_days, closed_days, required_daily_hours_avg, peak_day_floor_hours, min_resources_per_day, recommended_resources_per_day, and remedies)."
    • addedInput schema / properties / frequency_unit / description
      Added value: +"interval_days: the value is the maximum days between visits. visits_per_horizon: the value is how many visits the account gets across the whole horizon."
    • changedInput schema / properties / horizon / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "mode": {
      +            "const": "derived"
      +          }
      +        },
      +        "required": [
      +          "mode"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "days": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "mode": {
      +            "const": "explicit"
      +          }
      +        },
      +        "required": [
      +          "mode",
      +          "days"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / horizon / description
      Added value: +"Planning horizon. derived takes the longest interval among scheduled accounts; explicit is how a 28- or 42-day rolling cycle is requested when intervals leave a remainder on a shorter horizon."
    • removedInput schema / properties / horizon / title
      Removed value: -"Horizon"
    • addedInput schema / properties / horizon_start_date / description
      Added value: +"Calendar date of horizon day 1. Required when visit_constraints is non-empty; without it dated constraints return CLARIFICATION_REQUIRED (needs_horizon_start_date). There is no default of today."
    • addedInput schema / properties / map_session_id / description
      Added value: +"Open map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set."
    • addedInput schema / properties / max_buckets_per_day / description
      Added value: +"Cap on concurrent buckets in one day, normally the technician/contractor count (cannot exceed len(contractors) when contractors are supplied). Omitted with no contractors: one bucket per day; when that does not fit, CLARIFICATION_REQUIRED (blocked_by needs_technician_count) returns capacity_plan and asks how many technicians."
    • addedInput schema / properties / never_visit_values / description
      Added value: +"Frequency values that mean the account is left off the schedule. Matching accounts are excluded and reported in excluded_accounts, never silently dropped."
    • changedInput schema / properties / objective / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "balance_bias": {
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "compactness_bias": {
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / objective / description
      Added value: +"Biases must sum to 100. Raising balance_bias to 100 lengthens otherwise efficient days to equalize hours, which is rarely what the customer wants."
    • removedInput schema / properties / objective / title
      Removed value: -"Objective"
    • changedInput schema / properties / point_filter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": [
      +            "string",
      +            "number",
      +            "boolean"
      +          ]
      +        },
      +        {
      +          "items": {
      +            "type": [
      +              "string",
      +              "number",
      +              "boolean"
      +            ]
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        }
      +      ]
      +    },
      +    "minProperties": 1,
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / point_filter / description
      Added value: +"Optional attribute filter (property -> value or list of values) to schedule a subset of point_layer."
    • removedInput schema / properties / point_filter / title
      Removed value: -"Point Filter"
    • addedInput schema / properties / point_ids / description
      Added value: +"Optional list of account/point IDs to schedule."
    • addedInput schema / properties / tal_id / description
      Added value: +"Optional TAL id when filtering scheduled accounts by territory_id or territory_ids."
    • addedInput schema / properties / territory_id / description
      Added value: +"Optional leaf territory id or unique display label to schedule only accounts inside that territory polygon."
    • addedInput schema / properties / territory_ids / description
      Added value: +"Optional list of leaf territory ids or display labels to schedule only accounts inside those territory polygons."
    • removedInput schema / properties / ts
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Ts"
      -}
    • addedInput schema / properties / ts_handle / description
      Added value: +"Territory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline."
    • changedInput schema / properties / visit_constraints / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "One date constraint for an account, account_ids, or all accounts ('*'), resolved against horizon_start_date (T-213). blackout/no_service_window: forbidden dates (date, dates, a range, annual or weekly recurrence), always hard. fixed: a hard appointment that consumes a cadence visit. due: a deadline (optional earliest_date); hardness penalized (reported in constraint_summary.sla_violations) or hard. anchor: a date or weekday fixing the pattern phase. allowed_weekdays: visits land on those weekdays.",
      +      "properties": {
      +        "account_id": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "account_ids": {
      +          "items": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "date": {
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "dates": {
      +          "items": {
      +            "format": "date",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "earliest_date": {
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "end_date": {
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "hardness": {
      +          "enum": [
      +            "hard",
      +            "penalized"
      +          ],
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "blackout",
      +            "no_service_window",
      +            "fixed",
      +            "due",
      +            "anchor",
      +            "allowed_weekdays"
      +          ],
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "recurrence": {
      +          "default": "none",
      +          "enum": [
      +            "none",
      +            "annual",
      +            "weekly"
      +          ],
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        },
      +        "start_date": {
      +          "format": "date",
      +          "type": "string"
      +        },
      +        "weekday": {
      +          "enum": [
      +            "mon",
      +            "tue",
      +            "wed",
      +            "thu",
      +            "fri",
      +            "sat",
      +            "sun"
      +          ],
      +          "type": "string"
      +        },
      +        "weekdays": {
      +          "items": {
      +            "enum": [
      +              "mon",
      +              "tue",
      +              "wed",
      +              "thu",
      +              "fri",
      +              "sat",
      +              "sun"
      +            ],
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / visit_constraints / description
      Added value: +"Separate account-keyed date-constraint dataset: blackouts/no-service windows, fixed dates, SLA due dates, anchor days, allowed weekdays. See visitConstraint."
    • removedInput schema / properties / visit_constraints / title
      Removed value: -"Visit Constraints"
    • addedInput schema / properties / visit_frequency_field / description
      Added value: +"Numeric point column declared at ingest. Undeclared columns fail with UNDECLARED_FIELD."
    • addedInput schema / properties / visit_layer_name / description
      Added value: +"Defaults to <point_layer>_visits. This name is the schedule's identity: re-running with the same name replaces the layer in place, a different name adds a second schedule for comparison."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "error": {
      +    "description": "Present when ok is false.",
      +    "properties": {
      +      "ask_user": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "details": {
      +        "type": "object"
      +      },
      +      "do_this_next": {
      +        "type": "object"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "ok": {
      +    "type": "boolean"
      +  },
      +  "result": {
      +    "description": "Present when ok is true.",
      +    "properties": {
      +      "account_count": {
      +        "type": "integer"
      +      },
      +      "buckets": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "capacity_plan": {
      +        "type": "object"
      +      },
      +      "constraint_summary": {
      +        "type": "object"
      +      },
      +      "contractors": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "creates_tal": {
      +        "type": "boolean"
      +      },
      +      "days": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "distribution_summary": {
      +        "type": "object"
      +      },
      +      "do_this_next": {
      +        "type": "string"
      +      },
      +      "download_url": {
      +        "type": "string"
      +      },
      +      "estimate_only": {
      +        "type": "boolean"
      +      },
      +      "excluded_accounts": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "expires_at": {
      +        "type": "string"
      +      },
      +      "horizon_days": {
      +        "type": "integer"
      +      },
      +      "horizon_end_date": {
      +        "type": "string"
      +      },
      +      "horizon_fit": {
      +        "type": "object"
      +      },
      +      "horizon_mode": {
      +        "type": "string"
      +      },
      +      "horizon_start_date": {
      +        "type": "string"
      +      },
      +      "map_refresh": {
      +        "type": "object"
      +      },
      +      "next_tool": {
      +        "type": "string"
      +      },
      +      "point_layer": {
      +        "type": "string"
      +      },
      +      "schedule_artifact": {
      +        "type": "object"
      +      },
      +      "schedule_id": {
      +        "type": "string"
      +      },
      +      "schedule_label": {
      +        "type": "string"
      +      },
      +      "ts_handle": {
      +        "type": "string"
      +      },
      +      "ts_identity": {
      +        "type": "object"
      +      },
      +      "ts_omitted": {
      +        "type": "object"
      +      },
      +      "visit_count": {
      +        "type": "integer"
      +      },
      +      "visit_layer": {
      +        "type": [
      +          "null",
      +          "object"
      +        ]
      +      },
      +      "workload_model": {
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "warnings": {
      +    "items": {
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "ok"
      +]
    • removedOutput schema / title
      Removed value: -"schedule_visitsDictOutput"
  5. Changed6 schema fields changed
    • addedInput schema / properties / estimate_only
      Added value: +{
      +  "default": false,
      +  "title": "Estimate Only",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / point_filter
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Point Filter"
      +}
    • addedInput schema / properties / point_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Point Ids"
      +}
    • addedInput schema / properties / tal_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tal Id"
      +}
    • addedInput schema / properties / territory_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Territory Id"
      +}
    • addedInput schema / properties / territory_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Territory Ids"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / contractors
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Contractors"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / horizon_start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Horizon Start Date"
      +}
    • addedInput schema / properties / visit_constraints
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Visit Constraints"
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / dwell_time / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Onsite (dwell) time per visit: {type: 'scalar', value: <number>, unit: 'minutes'|'hours'} or {type: 'field', field: '<column>', unit: 'minutes'|'hours'}.",
      +    "properties": {
      +      "field": {
      +        "description": "Point column name holding per-account onsite time when type='field'.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Dwell source: 'scalar' for a fixed per-visit duration or 'field' for an ingested point column.",
      +        "enum": [
      +          "scalar",
      +          "field"
      +        ],
      +        "type": "string"
      +      },
      +      "unit": {
      +        "default": "minutes",
      +        "description": "Time unit for value or field ('minutes' or 'hours').",
      +        "enum": [
      +          "minutes",
      +          "hours"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Confirmed onsite duration per visit when type='scalar'.",
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  9. Changed1 schema field changed
    • removedInput schema / properties / guidance_handle
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Guidance Handle"
      -}
  10. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations mark this as a non-read-only, non-idempotent, non-destructive operation; the description adds substantive context beyond that, notably that re-running with the same visit_layer_name replaces the layer in place while a different name adds a second schedule, and that estimate_only=true avoids mutating the Territory Solution. Failure modes (CLARIFICATION_REQUIRED with capacity_plan, UNDECLARED_FIELD, SINGLE_STOP_DAYS warnings, missing horizon_start_date) are disclosed.

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?

It is front-loaded with the core purpose and every clause carries information, with no filler. However, the remaining prose is a dense run of semicolon-chained clauses and parenthetical error codes that is harder to scan than a lightly structured treatment would be.

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

Completeness4/5

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

For a 25-parameter planning tool with an output schema, the description covers the call-blocking essentials: required inputs, the dwell/capacity clarification path, horizon start date requirements for dated constraints, and the estimate-only preflight. Gaps remain around the objective biases and territory/point filtering, though the schema carries those details.

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?

With 76% schema coverage the schema already documents most parameters, yet the description adds real meaning: why omitted max_buckets_per_day implies one technician, that frequency_unit can be interval_days or visits_per_horizon, the distinction between bucket_workload_hours and territory/route workload, and how contractors anchor buckets. Several parameters (tal_id, objective biases, point_filter, map_session_id, expected_revision) are left to the schema.

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

Purpose5/5

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

The opening sentence gives a specific verb and resource ('Schedules recurring visits') plus the mechanism (cadence expansion across a horizon, packing into daily buckets under a technician-day cap). It also explicitly contrasts with siblings: 'auto_build and cluster_points divide accounts among people' and 'creates no alignment', so an agent can distinguish this from the other build/planning tools.

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?

It names entry conditions and prerequisites (point_layer ingested with cadence declared, visit_frequency_field, dwell_time, daily_capacity) and routes downstream work to calculate_route on a bucket_id. It also tells the agent when to prefer estimate_only=true for a preflight. Missing an explicit 'use X instead' routing for the broader set of planning siblings, but the when/when-not context is clear.

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