Skip to main content
Glama

Build Territories by Account Field

account_build

Builds territories that follow an account column, such as rep name or territory code from CRM: each part goes to the group holding most of its accounts (conflict_policy). Adds a new alignment (TAL). Needs an ingested point_layer, grouping_field, part_layer, and tal_label. Grouping values are labels, not balance metrics. part_scope: bbox_intersect (default; parts near the accounts) or explicit with part_filter, e.g. {state_abbr: TX}; in_tal: {tal_id} keeps only that TAL's parts, not_in_tal: {tal_id} only the parts it leaves uncovered. A declared visit-frequency column needs visit_frequency_field or ignore_visit_frequency (CLARIFICATION_REQUIRED otherwise). With map_session_id the open map is the input. Returns a task; the result carries tal_id and ts_handle. analyze reports the statistics.

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>"
    },
    "name": "account_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
part_idsNoExplicit part selection set. Implies part_scope explicit. Mutually exclusive with part_filter.
tal_labelNo
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.
part_layerNo
part_scopeNoParts eligible for Account Build geography. Default bbox_intersect: all parts intersecting the account-point bounding box. point_matched: only parts containing at least one account (radial seeds only; no FCFS inflate). explicit: part_ids or part_filter (e.g. state_abbr FL). Scope fill uses FCFS adjacency inflate from cluster radial seeds, not national nearest-anchor fill.
output_modeNotal is the default. assignments returns assignments_artifact plus an authenticated download_url and a key-less share_url; no ts_handle, tal_id, or map_refresh.tal
part_filterNoAttribute filter resolved via query_parts (e.g. {"state_abbr": ["FL", "GA"]}). Implies part_scope explicit. Mutually exclusive with part_ids. An existing TAL's footprint (a new version over the same parts, all its regions): {"in_tal": {"tal_id": "tal-1"}}. White space (parts no TAL covers): add not_in_tal, e.g. {"state_abbr": "TX", "not_in_tal": {"tal_id": "tal-1"}}; a person-trimmed set is {"selection_task_id": "psel_..."} after get_part_selection reports committed.
point_layerYes
repair_policyNoTopology repair for dissolved territories. default fills interior holes in the dissolved geometry (no part is added or reassigned; repair_summary.changed_part_ids lists the territories' own parts). report_only detects holes and changes nothing (warning REPAIR_AVAILABLE). strict fails with REPAIR_REQUIRED when a hole is found.default
grouping_fieldNoPoint feature property treated as a grouping label even when numeric.
map_session_idNoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
conflict_policyNoWhen accounts in one part map to multiple grouping labels, assign the part to the label with the highest account count; ties break by deterministic label sort.plurality_account_count
expected_revisionNo
visit_frequency_fieldNoPoint column that scales territory workload by visits per cycle. Mutually exclusive with ignore_visit_frequency.
ignore_visit_frequencyNoWhen true, every account is one visit per cycle. Mutually exclusive with visit_frequency_field.

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. Changed2 schema fields changed
    • changedInput schema / properties / part_filter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "minProperties": 1,
      -    "properties": {
      -      "county_name": {
      -        "type": [
      -          "string",
      -          "array"
      -        ]
      -      },
      -      "part_layer": {
      -        "type": "string"
      -      },
      -      "population": {
      -        "oneOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "minProperties": 1,
      -            "properties": {
      -              "between": {
      -                "items": {
      -                  "type": "number"
      -                },
      -                "maxItems": 2,
      -                "minItems": 2,
      -                "type": "array"
      -              },
      -              "eq": {
      -                "type": "number"
      -              },
      -              "gt": {
      -                "type": "number"
      -              },
      -              "gte": {
      -                "type": "number"
      -              },
      -              "lt": {
      -                "type": "number"
      -              },
      -              "lte": {
      -                "type": "number"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "spatial": {
      -        "additionalProperties": false,
      -        "oneOf": [
      -          {
      -            "required": [
      -              "bbox"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "geometry"
      -            ]
      -          }
      -        ],
      -        "properties": {
      -          "bbox": {
      -            "description": "[min_lon, min_lat, max_lon, max_lat] in EPSG:4326.",
      -            "items": {
      -              "type": "number"
      -            },
      -            "maxItems": 4,
      -            "minItems": 4,
      -            "type": "array"
      -          },
      -          "geometry": {
      -            "description": "GeoJSON Polygon or MultiPolygon in EPSG:4326.",
      -            "type": "object"
      -          },
      -          "operator": {
      -            "enum": [
      -              "intersects",
      -              "within",
      -              "contains"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "operator"
      -        ],
      -        "type": "object"
      -      },
      -      "state_abbr": {
      -        "type": [
      -          "string",
      -          "array"
      -        ]
      -      },
      -      "territory": {
      -        "additionalProperties": false,
      -        "oneOf": [
      -          {
      -            "required": [
      -              "ts_handle"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "map_session_id"
      -            ]
      -          }
      -        ],
      -        "properties": {
      -          "include_descendants": {
      -            "default": true,
      -            "description": "When true, rollup territories include descendant leaf territory part_ids.",
      -            "type": "boolean"
      -          },
      -          "map_session_id": {
      -            "description": "Open map session whose Territory Solution holds the TAL.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "tal_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "territory_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "ts_handle": {
      -            "description": "Territory Solution reference (tsh_...) holding the TAL (no inline TS).",
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tal_id",
      -          "territory_id"
      -        ],
      -        "type": "object"
      -      },
      -      "text": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "case_sensitive": {
      -            "default": false,
      -            "type": "boolean"
      -          },
      -          "field": {
      -            "description": "Safe text field to search. Defaults to the public part ID column.",
      -            "type": "string"
      -          },
      -          "mode": {
      -            "default": "prefix",
      -            "enum": [
      -              "prefix",
      -              "contains",
      -              "exact"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "value"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "minProperties": 1,
      +    "properties": {
      +      "county_name": {
      +        "type": [
      +          "string",
      +          "array"
      +        ]
      +      },
      +      "in_tal": {
      +        "additionalProperties": false,
      +        "description": "Keep only the parts assigned to a leaf territory of tal_id: the TAL's whole footprint, however many separate regions it has. ANDed with the other predicates (alone it is exactly that footprint). The TAL must use the same part_layer and hold parts. query_parts needs ts_handle or map_session_id here; builds read the TAL from the build's own Territory Solution.",
      +        "properties": {
      +          "map_session_id": {
      +            "description": "query_parts only: open map session whose Territory Solution holds the TAL.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "tal_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "territory_ids": {
      +            "description": "Narrow to these territory_id values (not display labels); a rollup includes every leaf below it. Unknown ids return UNKNOWN_TERRITORY_ID with available_territory_ids.",
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          },
      +          "ts_handle": {
      +            "description": "query_parts only: Territory Solution reference (tsh_...) holding the TAL.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tal_id"
      +        ],
      +        "type": "object"
      +      },
      +      "not_in_tal": {
      +        "additionalProperties": false,
      +        "description": "White space: drop every part assigned to a leaf territory of tal_id from whatever the other predicates select (the whole layer when alone). The TAL must use the same part_layer. query_parts needs ts_handle or map_session_id here; builds read the TAL from the build's own Territory Solution.",
      +        "properties": {
      +          "map_session_id": {
      +            "description": "query_parts only: open map session whose Territory Solution holds the TAL.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "tal_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "ts_handle": {
      +            "description": "query_parts only: Territory Solution reference (tsh_...) holding the TAL.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tal_id"
      +        ],
      +        "type": "object"
      +      },
      +      "part_layer": {
      +        "type": "string"
      +      },
      +      "population": {
      +        "oneOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "minProperties": 1,
      +            "properties": {
      +              "between": {
      +                "items": {
      +                  "type": "number"
      +                },
      +                "maxItems": 2,
      +                "minItems": 2,
      +                "type": "array"
      +              },
      +              "eq": {
      +                "type": "number"
      +              },
      +              "gt": {
      +                "type": "number"
      +              },
      +              "gte": {
      +                "type": "number"
      +              },
      +              "lt": {
      +                "type": "number"
      +              },
      +              "lte": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "selection_task_id": {
      +        "description": "Builds only (auto_build, account_build, seed_build): a committed request_part_selection task (psel_...) whose part_ids become the scope; it is the only key in that part_filter.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "spatial": {
      +        "additionalProperties": false,
      +        "oneOf": [
      +          {
      +            "required": [
      +              "bbox"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "geometry"
      +            ]
      +          }
      +        ],
      +        "properties": {
      +          "bbox": {
      +            "description": "[min_lon, min_lat, max_lon, max_lat] in EPSG:4326.",
      +            "items": {
      +              "type": "number"
      +            },
      +            "maxItems": 4,
      +            "minItems": 4,
      +            "type": "array"
      +          },
      +          "geometry": {
      +            "description": "GeoJSON Polygon or MultiPolygon in EPSG:4326.",
      +            "type": "object"
      +          },
      +          "operator": {
      +            "enum": [
      +              "intersects",
      +              "within",
      +              "contains"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "operator"
      +        ],
      +        "type": "object"
      +      },
      +      "state_abbr": {
      +        "type": [
      +          "string",
      +          "array"
      +        ]
      +      },
      +      "text": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "case_sensitive": {
      +            "default": false,
      +            "type": "boolean"
      +          },
      +          "field": {
      +            "description": "Safe text field to search. Defaults to the public part ID column.",
      +            "type": "string"
      +          },
      +          "mode": {
      +            "default": "prefix",
      +            "enum": [
      +              "prefix",
      +              "contains",
      +              "exact"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "value"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / part_filter / description
      Previous value: -"Attribute filter resolved via query_parts (e.g. {\"state_abbr\": [\"FL\", \"GA\"]}). Implies part_scope explicit. Mutually exclusive with part_ids."New value: +"Attribute filter resolved via query_parts (e.g. {\"state_abbr\": [\"FL\", \"GA\"]}). Implies part_scope explicit. Mutually exclusive with part_ids. An existing TAL's footprint (a new version over the same parts, all its regions): {\"in_tal\": {\"tal_id\": \"tal-1\"}}. White space (parts no TAL covers): add not_in_tal, e.g. {\"state_abbr\": \"TX\", \"not_in_tal\": {\"tal_id\": \"tal-1\"}}; a person-trimmed set is {\"selection_task_id\": \"psel_...\"} after get_part_selection reports committed."
  2. Changed16 schema fields changed
    • addedInput schema / properties / conflict_policy / description
      Added value: +"When accounts in one part map to multiple grouping labels, assign the part to the label with the highest account count; ties break by deterministic label sort."
    • addedInput schema / properties / grouping_field / description
      Added value: +"Point feature property treated as a grouping label even when numeric."
    • addedInput schema / properties / ignore_visit_frequency / description
      Added value: +"When true, every account is one visit per cycle. Mutually exclusive with visit_frequency_field."
    • 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."
    • changedInput schema / properties / part_filter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "minProperties": 1,
      +    "properties": {
      +      "county_name": {
      +        "type": [
      +          "string",
      +          "array"
      +        ]
      +      },
      +      "part_layer": {
      +        "type": "string"
      +      },
      +      "population": {
      +        "oneOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "minProperties": 1,
      +            "properties": {
      +              "between": {
      +                "items": {
      +                  "type": "number"
      +                },
      +                "maxItems": 2,
      +                "minItems": 2,
      +                "type": "array"
      +              },
      +              "eq": {
      +                "type": "number"
      +              },
      +              "gt": {
      +                "type": "number"
      +              },
      +              "gte": {
      +                "type": "number"
      +              },
      +              "lt": {
      +                "type": "number"
      +              },
      +              "lte": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "spatial": {
      +        "additionalProperties": false,
      +        "oneOf": [
      +          {
      +            "required": [
      +              "bbox"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "geometry"
      +            ]
      +          }
      +        ],
      +        "properties": {
      +          "bbox": {
      +            "description": "[min_lon, min_lat, max_lon, max_lat] in EPSG:4326.",
      +            "items": {
      +              "type": "number"
      +            },
      +            "maxItems": 4,
      +            "minItems": 4,
      +            "type": "array"
      +          },
      +          "geometry": {
      +            "description": "GeoJSON Polygon or MultiPolygon in EPSG:4326.",
      +            "type": "object"
      +          },
      +          "operator": {
      +            "enum": [
      +              "intersects",
      +              "within",
      +              "contains"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "operator"
      +        ],
      +        "type": "object"
      +      },
      +      "state_abbr": {
      +        "type": [
      +          "string",
      +          "array"
      +        ]
      +      },
      +      "territory": {
      +        "additionalProperties": false,
      +        "oneOf": [
      +          {
      +            "required": [
      +              "ts_handle"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "map_session_id"
      +            ]
      +          }
      +        ],
      +        "properties": {
      +          "include_descendants": {
      +            "default": true,
      +            "description": "When true, rollup territories include descendant leaf territory part_ids.",
      +            "type": "boolean"
      +          },
      +          "map_session_id": {
      +            "description": "Open map session whose Territory Solution holds the TAL.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "tal_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "territory_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "ts_handle": {
      +            "description": "Territory Solution reference (tsh_...) holding the TAL (no inline TS).",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tal_id",
      +          "territory_id"
      +        ],
      +        "type": "object"
      +      },
      +      "text": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "case_sensitive": {
      +            "default": false,
      +            "type": "boolean"
      +          },
      +          "field": {
      +            "description": "Safe text field to search. Defaults to the public part ID column.",
      +            "type": "string"
      +          },
      +          "mode": {
      +            "default": "prefix",
      +            "enum": [
      +              "prefix",
      +              "contains",
      +              "exact"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "value"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / part_filter / description
      Added value: +"Attribute filter resolved via query_parts (e.g. {\"state_abbr\": [\"FL\", \"GA\"]}). Implies part_scope explicit. Mutually exclusive with part_ids."
    • removedInput schema / properties / part_filter / title
      Removed value: -"Part Filter"
    • addedInput schema / properties / part_ids / description
      Added value: +"Explicit part selection set. Implies part_scope explicit. Mutually exclusive with part_filter."
    • addedInput schema / properties / part_scope / description
      Added value: +"Parts eligible for Account Build geography. Default bbox_intersect: all parts intersecting the account-point bounding box. point_matched: only parts containing at least one account (radial seeds only; no FCFS inflate). explicit: part_ids or part_filter (e.g. state_abbr FL). Scope fill uses FCFS adjacency inflate from cluster radial seeds, not national nearest-anchor fill."
    • 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."
    • addedInput schema / properties / visit_frequency_field / description
      Added value: +"Point column that scales territory workload by visits per cycle. Mutually exclusive with ignore_visit_frequency."
    • 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. A submission returns the task reference (task_id, next_action, sleep_ms); the completed task result carries the remaining fields.",
      +    "properties": {
      +      "assignment_count": {
      +        "type": "integer"
      +      },
      +      "assignment_summary": {
      +        "type": "object"
      +      },
      +      "assignments_artifact": {
      +        "type": "object"
      +      },
      +      "conflict_summary": {
      +        "type": "object"
      +      },
      +      "do_this_next": {
      +        "type": [
      +          "object",
      +          "string"
      +        ]
      +      },
      +      "download_url": {
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "type": "string"
      +      },
      +      "group_count": {
      +        "type": "integer"
      +      },
      +      "job_id": {
      +        "type": "string"
      +      },
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "output_mode": {
      +        "type": "string"
      +      },
      +      "part_scope_summary": {
      +        "type": "object"
      +      },
      +      "phase_timings_ms": {
      +        "type": "object"
      +      },
      +      "repair_summary": {
      +        "type": "object"
      +      },
      +      "sleep_ms": {
      +        "type": "integer"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "tal_id": {
      +        "type": "string"
      +      },
      +      "task_id": {
      +        "type": "string"
      +      },
      +      "terminal": {
      +        "type": "boolean"
      +      },
      +      "ts_handle": {
      +        "type": "string"
      +      },
      +      "ts_identity": {
      +        "type": "object"
      +      },
      +      "ts_omitted": {
      +        "type": "object"
      +      },
      +      "unassigned_account_summary": {
      +        "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: -"account_buildDictOutput"
  3. Changed1 schema field changed
    • changedInput schema / properties / output_mode / description
      Previous value: -"tal is the default. assignments returns assignments_artifact plus an authenticated download_url; no ts_handle, tal_id, or map_refresh."New value: +"tal is the default. assignments returns assignments_artifact plus an authenticated download_url and a key-less share_url; no ts_handle, tal_id, or map_refresh."
  4. Changed1 schema field changed
    • removedInput schema / properties / guidance_handle
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Guidance Handle"
      -}
  5. Changed2 schema fields changed
    • addedInput schema / properties / repair_policy / description
      Added value: +"Topology repair for dissolved territories. default fills interior holes in the dissolved geometry (no part is added or reassigned; repair_summary.changed_part_ids lists the territories' own parts). report_only detects holes and changes nothing (warning REPAIR_AVAILABLE). strict fails with REPAIR_REQUIRED when a hole is found."
    • addedInput schema / properties / repair_policy / enum
      Added value: +[
      +  "default",
      +  "strict",
      +  "report_only"
      +]
  6. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent write, and the description adds real behavior on top: it creates a new alignment, returns a task whose result carries tal_id and ts_handle, raises CLARIFICATION_REQUIRED when a visit-frequency column is undeclared, and explains the plurality tie-break. Permission requirements and repeat-call consequences are not covered, keeping it off a 5.

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: purpose and conflict rule come first, then prerequisites, scope modes, and the visit-frequency clarification, with nothing purely decorative. Some clauses restate schema descriptions (part_scope defaults, in_tal/not_in_tal), which is mild redundancy in an otherwise tight block.

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

Completeness5/5

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

For a 15-parameter mutation with an output schema, the description covers what the schema cannot: prerequisites, the map-session input alternative, the error condition that blocks a build, and the fact that execution is asynchronous and yields tal_id/ts_handle. Return values and repair/output-mode details are correctly left to the output schema and parameter descriptions.

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?

Schema coverage is 73%, and the description adds meaning beyond it for the parameters that drive outcomes: what bbox_intersect means by default, what an explicit part_filter does, the distinction between in_tal (the TAL's footprint) and not_in_tal (white space), and the mutual exclusion of visit_frequency_field and ignore_visit_frequency. ts_handle, expected_revision, output_mode and repair_policy are left to the schema to explain.

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 plus the mechanism: builds territories from an account column, where each part goes to the group holding most of its accounts, and adds a new TAL. That mechanism implicitly separates it from sibling builds (auto_build, seed_build, isochrone_build), but no sibling is named so the differentiation is inferred rather than stated.

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 prerequisites (an ingested point_layer, grouping_field, part_layer, tal_label), the two input modes (ts_handle vs. an open map session), and points to analyze for statistics. It does not say when a caller should prefer auto_build or seed_build instead, so the routing versus sibling build tools is left to the reader.

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