Skip to main content
Glama

Schedule Visits

schedule_visits
Destructive

Schedules recurring visits: expands each account's cadence (e.g. every 7 days, twice a month) across a horizon and packs the visits into daily work clusters (buckets) under a technician-day cap. Decides which day each visit happens (auto_build and cluster_points divide accounts among people instead); creates no alignment. Needs point_layer (ingested, with the cadence column declared, else UNDECLARED_FIELD), visit_frequency_field, dwell_time, and daily_capacity (e.g. {mode: not_to_exceed, hours: 8}); missing dwell or capacity returns CLARIFICATION_REQUIRED with the question. Optional contractors (point_layer or list with start, pre_service_stops, route_type, end) anchors each bucket to a contractor and includes stem travel. frequency_unit: interval_days or visits_per_horizon. never_visit_values are excluded. bucket_workload_hours is bucket drive plus dwell, a different measure from territory workload and route_workload_hours. Returns a task. calculate_route over one bucket_id drives that day. Date limits use visit_constraints with horizon_start_date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
horizonNo
objectiveNo
ts_handleNo
dwell_timeNo
contractorsNo
point_layerYes
daily_capacityNo
frequency_unitNointerval_days
map_session_idNo
schedule_labelNo
emit_visit_layerNo
visit_layer_nameNo
expected_revisionNo
visit_constraintsNo
horizon_start_dateNo
never_visit_valuesNo
max_buckets_per_dayNo
visit_frequency_fieldYes
cadence_flexibility_pctNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. 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"
      +}
  3. 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"
      +  }
      +]
  4. Changed1 schema field changed
    • removedInput schema / properties / guidance_handle
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Guidance Handle"
      -}
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (which only flag non-readOnly, destructive, non-idempotent). It discloses the UNDECLARED_FIELD error path, the CLARIFICATION_REQUIRED behavior with the specific missing inputs, the async 'returns a task' contract, that never_visit_values are excluded, and that bucket_workload_hours is a distinct measure from territory/route workload.

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?

Dense but front-loaded: the core action leads, then requirements, errors, and edge-case distinctions follow. Given 20 parameters it is economical, though the parenthetical-laden run-on style makes it harder to scan than it needs to 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?

With an output schema present, it correctly omits return-value detail (aside from noting it returns a task). For a complex, 20-param, destructive scheduling tool it covers the critical prerequisites, failure modes, and sibling distinctions, but the unaddressed optional parameters leave a real gap.

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

Parameters3/5

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

Schema description coverage is 0% across 20 params, so the description carries the full burden. It meaningfully documents point_layer, visit_frequency_field, dwell_time, daily_capacity, contractors, frequency_unit, never_visit_values, and visit_constraints/horizon_start_date, but leaves ts, horizon, objective, ts_handle, map_session_id, schedule_label, emit_visit_layer, visit_layer_name, expected_revision, max_buckets_per_day, and cadence_flexibility_pct unexplained — roughly half the surface.

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?

States a specific verb+resource (schedules recurring visits), then specifies the mechanism: expanding each account's cadence across a horizon and packing visits into daily buckets under a technician-day cap. It explicitly differentiates itself from siblings by noting that auto_build and cluster_points divide accounts among people instead.

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 clear conditions and prerequisites: point_layer must be ingested with the cadence column declared, and missing dwell or capacity yields CLARIFICATION_REQUIRED with the question. It also routes follow-up work ('calculate_route over one bucket_id drives that day') and contrasts with auto_build/cluster_points, though it stops short of an explicit when-to-use-this-vs-alternatives rule.

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