Skip to main content
Glama

Grow Territory from Seed

seed_build

Grows one territory outward from a seed {longitude, latitude} over a part layer until it holds a target: {type: location_count, value: N} or {type: metric_sum, field: , value: X}, counted from an ingested point layer. Adds the territory as a leaf of tal_id, or as a new alignment. Fit is closest: target_status is reached, closest_under, closest_over, frontier_exhausted, or max_parts_reached, with SEED_TARGET_UNDERSHOT/OVERSHOT warnings and the difference. Parts already in that alignment are never taken; the territory grows around them (blocked_part_count, seed_offset_km), and a seed inside an assigned part returns SEED_PART_ASSIGNED. part_scope=explicit with part_filter confines growth to an area (not_in_tal: {tal_id} keeps it out of another TAL; in_tal: {tal_id} keeps it inside one, with no tal_id so it starts a new alignment). One seed per call. An undeclared metric field returns UNDECLARED_FIELD. Returns a task with created_territory and ts_handle; the open map repaints with map_session_id.

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": {
      "seed": "<seed>",
      "target": "<target>"
    },
    "name": "seed_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedYesWhere growth starts. For an address or POI, stage it as one row with request_account_upload, then geocode_address(upload_handle); a map click already gives coordinates.
tal_idNoExisting TAL to append the new leaf to. Parts already assigned to any leaf of this TAL are never taken (the territory drifts instead). Without it, a new TAL is created.
targetYesWhat the territory grows toward. Fit is closest: |achieved - value| is minimized, so the result may land slightly under or over.
user_idNoStable per-user label for usage and queue ordering.
part_idsNoExplicit eligible part set. Implies part_scope explicit. Mutually exclusive with part_filter.
max_partsNoSafety cap on parts in the grown territory. Reaching it stops growth with target_status max_parts_reached.
tal_labelNoDisplay name for the new TAL when tal_id is omitted. Ignored when tal_id is given.
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_layerNoPart layer to grow over, e.g. us_zips (ezt://part-layers). Required unless tal_id names a TAL that already has one; must match that TAL's layer when both are given.
part_scopeNoGrowth reads only the seed's neighbourhood (rings outward from the seed part), so this is an allowlist switch, not a performance prerequisite. explicit: confine growth to part_ids or part_filter (e.g. state_abbr TX) when the user wants the territory bounded by that geography. bbox_intersect / point_matched are accepted for compatibility with auto_build and ignored — seed_build never joins the whole point layer to the bbox parts.
part_filterNoAttribute filter resolved via query_parts (e.g. {"state_abbr": "TX"}). Implies part_scope explicit. Mutually exclusive with part_ids. Inside an existing TAL's footprint: {"in_tal": {"tal_id": "tal-1"}} with no seed tal_id (in_tal of the seed's own tal_id is INVALID_REQUEST). 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_layerNoIngested point layer whose locations are counted or summed. Required when the TS has more than one point layer.
map_session_idNoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
territory_nameNoDisplay name for the new leaf. Defaults to the next free "Territory N" in the TAL. Must be unique within the TAL.

Output Schema

NameRequiredDescriptionDefault
okYes
errorNoPresent when ok is false.
resultNoPresent when ok is true.
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\": \"TX\"}). Implies part_scope explicit. Mutually exclusive with part_ids."New value: +"Attribute filter resolved via query_parts (e.g. {\"state_abbr\": \"TX\"}). Implies part_scope explicit. Mutually exclusive with part_ids. Inside an existing TAL's footprint: {\"in_tal\": {\"tal_id\": \"tal-1\"}} with no seed tal_id (in_tal of the seed's own tal_id is INVALID_REQUEST). 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. Changed30 schema fields changed
    • 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_parts / description
      Added value: +"Safety cap on parts in the grown territory. Reaching it stops growth with target_status max_parts_reached."
    • 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\": \"TX\"}). 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 eligible part set. Implies part_scope explicit. Mutually exclusive with part_filter."
    • addedInput schema / properties / part_layer / description
      Added value: +"Part layer to grow over, e.g. us_zips (ezt://part-layers). Required unless tal_id names a TAL that already has one; must match that TAL's layer when both are given."
    • addedInput schema / properties / part_scope / description
      Added value: +"Growth reads only the seed's neighbourhood (rings outward from the seed part), so this is an allowlist switch, not a performance prerequisite. explicit: confine growth to part_ids or part_filter (e.g. state_abbr TX) when the user wants the territory bounded by that geography. bbox_intersect / point_matched are accepted for compatibility with auto_build and ignored — seed_build never joins the whole point layer to the bbox parts."
    • addedInput schema / properties / point_layer / description
      Added value: +"Ingested point layer whose locations are counted or summed. Required when the TS has more than one point layer."
    • changedInput schema / properties / seed / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties / seed / description
      Added value: +"Where growth starts. For an address or POI, stage it as one row with request_account_upload, then geocode_address(upload_handle); a map click already gives coordinates."
    • addedInput schema / properties / seed / properties
      Added value: +{
      +  "latitude": {
      +    "maximum": 90,
      +    "minimum": -90,
      +    "type": "number"
      +  },
      +  "longitude": {
      +    "maximum": 180,
      +    "minimum": -180,
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / seed / required
      Added value: +[
      +  "longitude",
      +  "latitude"
      +]
    • removedInput schema / properties / seed / title
      Removed value: -"Seed"
    • addedInput schema / properties / tal_id / description
      Added value: +"Existing TAL to append the new leaf to. Parts already assigned to any leaf of this TAL are never taken (the territory drifts instead). Without it, a new TAL is created."
    • addedInput schema / properties / tal_label / description
      Added value: +"Display name for the new TAL when tal_id is omitted. Ignored when tal_id is given."
    • changedInput schema / properties / target / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties / target / description
      Added value: +"What the territory grows toward. Fit is closest: |achieved - value| is minimized, so the result may land slightly under or over."
    • addedInput schema / properties / target / if
      Added value: +{
      +  "properties": {
      +    "type": {
      +      "const": "metric_sum"
      +    }
      +  }
      +}
    • addedInput schema / properties / target / properties
      Added value: +{
      +  "field": {
      +    "description": "Required for metric_sum. Must be a column declared in metric_fields (or workload_fields) at ingest; otherwise UNDECLARED_FIELD.",
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": {
      +    "description": "location_count counts points in the point layer; metric_sum sums a declared numeric metric column.",
      +    "enum": [
      +      "location_count",
      +      "metric_sum"
      +    ],
      +    "type": "string"
      +  },
      +  "value": {
      +    "description": "Target count or target sum.",
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / target / required
      Added value: +[
      +  "type",
      +  "value"
      +]
    • addedInput schema / properties / target / then
      Added value: +{
      +  "required": [
      +    "field"
      +  ]
      +}
    • removedInput schema / properties / target / title
      Removed value: -"Target"
    • addedInput schema / properties / territory_name / description
      Added value: +"Display name for the new leaf. Defaults to the next free \"Territory N\" in the TAL. Must be unique within the TAL."
    • 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 / user_id / description
      Added value: +"Stable per-user label for usage and queue ordering."
    • 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": {
      +      "created_at": {
      +        "type": "string"
      +      },
      +      "do_this_next": {
      +        "type": "object"
      +      },
      +      "estimated_remaining_ms": {
      +        "type": "integer"
      +      },
      +      "estimated_start_ms": {
      +        "type": "integer"
      +      },
      +      "expires_at": {
      +        "type": "string"
      +      },
      +      "job_id": {
      +        "type": "string"
      +      },
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "next_poll_at": {
      +        "type": "string"
      +      },
      +      "phase": {
      +        "type": "string"
      +      },
      +      "poll_interval_ms": {
      +        "type": "integer"
      +      },
      +      "poll_loop": {
      +        "type": "object"
      +      },
      +      "progress": {
      +        "type": "number"
      +      },
      +      "queue_depth": {
      +        "type": "integer"
      +      },
      +      "queue_lane": {},
      +      "queue_position": {
      +        "type": "integer"
      +      },
      +      "recommended_poll_delay_ms": {
      +        "type": "integer"
      +      },
      +      "required_input": {
      +        "type": "object"
      +      },
      +      "result_resource_uri": {
      +        "type": "string"
      +      },
      +      "sleep_ms": {
      +        "type": "integer"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "status_resource_uri": {
      +        "type": "string"
      +      },
      +      "task_id": {
      +        "type": "string"
      +      },
      +      "terminal": {
      +        "type": "boolean"
      +      },
      +      "tool_name": {
      +        "type": "string"
      +      },
      +      "total": {
      +        "type": [
      +          "null",
      +          "number"
      +        ]
      +      },
      +      "user_cancelled": {
      +        "type": "boolean"
      +      }
      +    },
      +    "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: -"seed_buildDictOutput"
  3. Changed1 schema field changed
    • removedInput schema / properties / guidance_handle
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Guidance Handle"
      -}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare mutation, non-destructive, non-idempotent, closed-world, and the description adds real substance beyond them: fit is 'closest' so results may overshoot or undershoot, the enumerated target_status values, SEED_TARGET_UNDERSHOT/OVERSHOT warnings with the delta, and that already-assigned parts are never taken (blocked_part_count, seed_offset_km). Error paths are disclosed (SEED_PART_ASSIGNED, UNDECLARED_FIELD) and the return payload (created_territory, ts_handle, map repaint) is named. It does not discuss permissions, cost, or what a repeated call does despite idempotentHint=false, which keeps it short of 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?

The core purpose is front-loaded in the first sentence and every clause carries content – no filler or restated title. However, the remainder is a dense run-on packing fit semantics, warnings, blocking behavior, error codes, and return values into one paragraph, which makes it harder to scan than a short bulleted structure 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 14-parameter mutation tool, the description covers the main decision points: seed, target types, TAL append vs new alignment, scoping, blocking behavior, failure codes, and the returned task handle. Since an output schema exists and schema coverage is 100%, the unmentioned optional parameters are adequately documented elsewhere; only permission/eligibility prerequisites are absent.

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 100% and the nested target, tal_id, part_scope, and part_filter descriptions are already exhaustive, so the schema does the heavy lifting. The description adds a useful synthesis of target shape and the part_scope=explicit + part_filter confinement rule, but it leaves several of the 14 parameters (user_id, territory_name, tal_label, point_layer, ts_handle, map_session_id) untouched. Baseline 3 is appropriate.

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

Purpose4/5

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

The opening sentence gives a precise verb+resource+scope: 'Grows one territory outward from a seed {longitude, latitude} over a part layer until it holds a target'. It also states the two outcomes (leaf of tal_id vs new alignment) and the 'one seed per call' limit, which implicitly separates it from multi-seed builders. It never explicitly names the sibling a user should pick instead (auto_build/account_build/direct_build), so sibling differentiation is incidental 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 Guidelines3/5

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

Use conditions are embedded rather than stated: part_scope=explicit is explained as the right choice 'when the user wants the territory bounded by that geography', and part_filter examples show in_tal/not_in_tal selection. There is no explicit 'use this tool when X, use another when Y' routing against the other build tools. An agent must infer the selection rule from behavior alone.

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