L'Atlas / MCP servers / EasyTerritory MCP
MCP server

EasyTerritory MCP

ai.easyterritory/ezt-mcp

MCP server OK 59 tools

Get a review See pricing

Build, balance, realign and analyze sales/service territories; geocode, route, schedule, live map.

Technical sheet

Author
easyterritory.ai (registry namespace)
Repository
—
Site
easyterritory.ai
Version
0.1.0
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://mcp.easyterritory.ai/ Streamable HTTP required header : Authorization
Tools
59
Categories
Commerce and marketing, Maps, places and weather
Last updated
29 Sept 2026
Published
29 Sept 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 3 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/ai.easyterritory/ezt-mcp.svg?lang=en)](https://latlas.dev/en/mcp/ai.easyterritory/ezt-mcp)
HTML
<a href="https://latlas.dev/en/mcp/ai.easyterritory/ezt-mcp"><img src="https://latlas.dev/badge/statut/mcp/ai.easyterritory/ezt-mcp.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/ai.easyterritory/ezt-mcp.svg?lang=en)](https://latlas.dev/en/mcp/ai.easyterritory/ezt-mcp)
HTML
<a href="https://latlas.dev/en/mcp/ai.easyterritory/ezt-mcp"><img src="https://latlas.dev/badge/fiche/ai.easyterritory/ezt-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://mcp.easyterritory.ai/
Last result
OK 28 Nov 2026, 07:49
Response time
1,414 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
ezt-mcp 0.2.7
Tools
59

History

DateResultResponseTools
28 Nov 2026, 07:49OK1,414 ms59

Exposed tools (59, from tools/list, 28 Nov 2026)

get_map_visualization

Open Map

Opens the interactive territory map (Map Component) and returns map_url and map_session_id. Opens a blank map, or shows the latest state of an existing Territory Solution (e.g. yesterday's work) from ts_handle or a completed job_id. Idempotent per user_id: a second call returns the same map. new_project=true replaces the open workspace with an empty project. theme: dark | light (basemap and UI style; default dark). presentation.view_name: empty | points_only | review | selection. Apps-capable hosts render the map in chat (ui://easyterritory/map-viewer); other clients open map_url in a browser. Later map tools take map_session_id. ensure_map_viewer reports when the person has the map open.

ParameterTypeRequiredDescription
modestringnoview — read-only map review/share/verification, no selection commits. select — allows transient local selection and committed selection events.
active_tal_idstring | nullnoAlignment to show as active.
themestring | nullnoMap Component basemap and UI theme ('dark' or 'light'; default 'dark').
presentationobject | nullno
expiry_secondsinteger | nullnoRequested session TTL in seconds. Server may cap at policy maximum.
interaction_flagsobject | nullnoOnly meaningful in select mode.
job_idstring | nullnotask_id (same value as job_id) of a completed build or ingest task; its Territory Solution is the input.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
user_idstring | nullnoStable caller id; a second call with the same user_id returns the same map.
new_projectbooleannoStart a fresh map session (session_exists=false) instead of reusing the caller's open workspace. Without ts, ts_handle, or job_id, opens an empty project; with a TS source, opens that Territory Solution on a new session without carrying over prior routes, overlays, or analysis panels. Omitted empty…

get_guidance

Get Startup Guidance

Returns the EZT MCP operating guide: the cross-tool workflow order and shared rules (result.text, same text as the server instructions), result.server_version, and result.seat for the caller's key (plan standard|trial, key_expires_at, and quota_remaining for geocoding, routing, and isochrone requests). Read-only. Useful at the start of a session or for a host that does not show server instructions.

No parameters.

discover_intent

Discover Workflow Intent

Maps a free-text territory request to a workflow. Read-only keyword routing; no compute. Returns intent_category, the recommended tool order, the main tool (tier1_tool, null when the request is ambiguous) and alternatives, required_inputs, clarifying_questions for missing inputs, and the workflow guide inline as guidance {uri, title, excerpt}. Covers building territories (auto_build, account_build, direct_build, cluster_points, seed_build), editing (realign, split, merge, rebalance), analyze, geocoding and ingest, showing a ZIP or part layer, routes, drive-time areas (isochrone_build), recurring visit schedules (schedule_visits), contractor coverage gaps (analyze_network_coverage), listing points in a territory (points_in_territory), and moving a Territory Solution to or from EasyTerritory Designer.

ParameterTypeRequiredDescription
user_requeststringyesThe raw natural-language request to classify.
contextobject | nullnoOptional state flags that tailor the recommended workflow.

workflow_advisor

Get Next Workflow Step

Returns the next tool call for a multi-step workflow, given where the workflow stands. Read-only state machine; executes nothing. intent_category: build_from_accounts | account_grouping | known_assignments | realign_existing | restructure | load_part_layer | route_stops | reachable_area | periodic_scheduling | coverage_gap_analysis | points_in_territory. state: viewer_connected, point_layer, part_layer, tal_present, analysis_fresh, plus selection/realign or restructure flags. inputs: the values known so far (part_layer, territory_count, tal_id, operation, route_type, origins, visit_frequency_field, ...); missing_inputs names the keys still needed. Returns next_tool with drafted next_args, missing_inputs (reported, never invented), blocked_by, remaining_steps, and the workflow guide inline as guidance. Order rules applied: map before compute, viewer connected before compute, ingest before build, analyze after an edit when a point layer exists. Calling it after each step with the updated state walks the whole workflow.

ParameterTypeRequiredDescription
intent_categorystringyesbuild_from_accounts | account_grouping | point_clustering | known_assignments | realign_existing | restructure | delete_territory | load_part_layer | reachable_area | seed_growth | coverage_gap_analysis | route_stops | routes_layer | delete_route | delete_point_layer | points_in_territory | periodi…
stateobject | nullnoAgent-supplied workflow state; all keys optional and default to 'not done yet'.
inputsobject | nullnoOptional plan parameters used to draft next_args.

ep_search

Search Expert Pack

Semantic search over the EZT MCP Expert Pack (EMEP): workflow guidance, concepts, interfaces, and common mistakes. Returns ranked markdown chunks with source files; atoms pulled in via `requires` are flagged requires_expanded. Degrades to the ezt://guidance/... resources if retrieval is unavailable. Examples: 'build balanced territories from accounts', 'viewer not connected before compute', 'auto_build vs account_build'.

ParameterTypeRequiredDescription
querystringyes
typestring | nullno
tagsarray<string> | nullno
max_resultsintegerno

ep_list_topics

List Expert Pack Topics

Lists EMEP topics grouped by type (concept, workflow, interface, troubleshooting, decision). Optional `type` filter.

ParameterTypeRequiredDescription
typestring | nullno

ep_graph_traverse

Traverse Expert Pack Links

Traverses the EMEP knowledge graph from a topic file (e.g. 'workflows/realign-by-selection.md') to related guidance, up to `depth` hops. Returns no edges unless the pack ships a _graph.yaml.

ParameterTypeRequiredDescription
file_pathstringyes
depthintegerno
edge_kindsarray<string> | nullno

ensure_map_viewer

Wait for Map Viewer

Reports whether the person has the map open (viewer_status.connected) for a map_session_id from get_map_visualization, waiting up to wait_seconds (max 30 s per call; the result reports requested_wait_seconds and max_wait_seconds). Works the same for the in-chat map and the map_url tab. Returns VIEWER_NOT_CONNECTED while the map is still closed; the same call can be repeated while the person opens it. Build, analyze, and selection results paint live once the viewer is connected.

ParameterTypeRequiredDescription
map_session_idstringyesOpen map session (msess_...) from get_map_visualization.
wait_secondsnumbernoOptional server-side wait window. 0 returns the current snapshot only. Values above 30 are clamped to 30 s per call; on VIEWER_NOT_CONNECTED the error details carry requested_wait_seconds, max_wait_seconds, and next_call (call again).
poll_interval_msintegerno

submit_feedback

Submit Feedback

Sends product feedback to EasyTerritory: a blocked or partial workflow, a workaround, a confusing response, or a missing capability. Returns an acknowledgement with feedback_id. Secrets, emails, Territory Solution JSON, GeoJSON, and account/CSV tables are stripped before storage; the text is meant for a description of what happened, not data.

ParameterTypeRequiredDescription
user_goalstringyesWhat the user was trying to accomplish, sanitized.
what_happenedstringyesWhere the agent struggled, failed, found confusing results, or used a workaround.
categoryno
severityno
expected_capabilitystring | nullno
suggested_improvementstring | nullno
related_toolstring | nullno
related_product_areanullno
confidenceno
include_contextbooleanno
context_summarystring | nullnoOptional sanitized summary only. Excludes credentials, API keys, raw customer data, private territory assignments, and PII.
client_namestring | nullno
client_versionstring | nullno
session_idstring | nullnoClient session id, if the host has one.
correlation_idstring | nullnotask_id, job_id, or request id the feedback is about.

list_part_layers

List Part Layers

Returns the available canonical part layers for territory construction (for example us_zips, us_counties, ca_fsa, and active country postal or administrative polygon layers), with the same metadata as ezt://part-layers: part_layer, label, description, country_codes, admin_levels, part_count, id_format, example_part_ids, capabilities, data_version, and updated_at. Optional part_layer returns detailed metadata for one layer (bbox, aliases, supported_admin1, source_name, source_vintage, id_format_notes) or UNKNOWN_PART_LAYER. Optional country_code filters by 2-letter ISO country code. Read-only.

ParameterTypeRequiredDescription
part_layerstring | nullnoOptional canonical part layer identifier (for example us_zips, us_counties, ca_fsa, uk_areas, germany_postal) to fetch detailed metadata for one layer.
country_codestring | nullnoOptional 2-letter ISO 3166-1 alpha-2 country code (for example US, CA, GB, DE) to filter the returned part layers.

query_parts

Query Territory Parts

Returns attributes (no geometry) for parts of a part layer listed by list_part_layers or ezt://part-layers. Takes exactly one of filter (e.g. {state_abbr: TX}) or part_ids; neither or both returns INVALID_REQUEST. Paged with page_token. TAL membership (each needs map_session_id or ts_handle inside): filter.in_tal {tal_id, territory_ids?} keeps only the parts that TAL assigns (its whole footprint, however many separate regions; territory_ids narrows to those territories and everything under them); filter.not_in_tal {tal_id} drops that TAL's parts (white space), e.g. {state_abbr: TX, not_in_tal: {...}}. Both AND with other predicates. total_count is the set size. Build from it with the same part_filter.

ParameterTypeRequiredDescription
part_layerstringyesRequired part layer identifier, e.g. 'us_zips'.
filterobject | nullnoAttribute/text/range/spatial/in_tal/not_in_tal filter. Mutually exclusive with top-level part_ids.
part_idsarray<string> | nullnoExplicit list of part IDs. Mutually exclusive with filter. Useful for validation or enrichment.
page_tokenstring | nullnoPagination token from a previous response.
max_resultsintegernoMaximum results per page. Server may enforce lower limits.

direct_build

Build Territories from Assignments

Builds territories from known part-to-territory assignments (a ZIP-to-territory sheet or file, including a three-level region/district/territory hierarchy via territory_path) and adds them to the Territory Solution as a new alignment (TAL). Assignments come only as an assignments_handle (aup_...) from request_assignment_upload (the file, csv_text, or assignment rows). Sheets with Postal Code plus Territory/Region/Division columns are mapped automatically. Duplicate part_ids follow duplicate_part_policy (default keep_first). Returns a task; the result carries tal_id and ts_handle and paints the open map. Location points load with ingest_accounts; balanced partitions come from auto_build; grouping by a column is account_build.

ParameterTypeRequiredDescription
part_layerstringyes
tal_labelstringyes
assignments_handlestring | nullnoRequired. upload_handle (aup_...) from request_assignment_upload. Single-use: the build claims it.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
tal_idstring | nullnoOptional caller-supplied TAL identifier. When omitted, the server derives a stable ID from tal_label. Supplied IDs must not collide with an existing TAL in the input TS.
expected_revisioninteger | nullno
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
missing_part_policystringnoControls assigned part IDs that are absent from the selected polygon part layer. fail returns UNKNOWN_PART_ID. drop_with_warning omits them, lists them in invalid_parts, and proceeds with geometry-covered assignments.
duplicate_part_policystringnoWhen the same part_id maps to different territory_path values, keep_first (default) keeps the first row and skips the rest with a warning; keep_last keeps the last row; fail aborts with CLARIFICATION_REQUIRED.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

auto_build

Auto-Build Territories

Partitions ingested accounts into balanced sales territories with equal workload, metric, or count over a part layer (e.g. ZIPs) as a new alignment (TAL). User choices: build_mode (fixed_territory_count + territory_count, fixed_workload_target + target_workload hours, or scoped_split), objective (workload_bias = drive + dwell, metric_bias = one column, e.g. Revenue, count_bias = account count; sum 100), and dwell_time (column or scalar). A missing choice returns CLARIFICATION_REQUIRED with ask_user; a visit-frequency column needs visit_frequency_field or ignore_visit_frequency. seed_point_layer seeds territories from provider points (any count). part_scope: bbox_intersect (default; can be national) or explicit with part_filter, e.g. {state_abbr: TX}; accounts outside are UNASSIGNED_ACCOUNTS. part_filter {in_tal: {tal_id}} keeps a TAL's parts; {not_in_tal: {tal_id}} its white space. With map_session_id the open map is the input. Returns a task (minutes if national) with tal_id, ts_handle, and phase_timings_ms. Ends with the territory_rebalance pass; rebalancing next is redundant.

ParameterTypeRequiredDescription
point_layerstringyes
part_layerstringyes
tal_labelstringyes
build_modeobject | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_revisioninteger | nullno
objectiveobject | nullno
dwell_timeobject | nullno
visit_frequency_fieldstring | nullnoPoint column that scales territory workload by visits per cycle. Mutually exclusive with ignore_visit_frequency. Required as use-or-ignore when the point layer declares a visit-frequency column.
ignore_visit_frequencyboolean | nullnoWhen true, every account is one visit per cycle. Mutually exclusive with visit_frequency_field. Required as the ignore choice when the point layer declares a visit-frequency column.
part_scopestring | nullnoParts eligible for partition. Default bbox_intersect: all parts intersecting the account-point bounding box. point_matched: only parts containing at least one account; those parts are rarely adjacent, so territories come back as scattered pieces (warning POINT_MATCHED_SPARSE_SCOPE) — use it only wh…
part_idsarray<string> | nullnoExplicit part selection set. Implies part_scope explicit. Mutually exclusive with part_filter.
part_filterobject | nullnoAttribute filter resolved via query_parts (e.g. {"state_abbr": "TX"}). 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,…
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
output_modeenum: "tal" | "assignments"notal 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.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
seed_point_layerstring | nullnoA second ingested point layer (service providers, offices, rep homes) that seeds the territories; each used provider names its territory.
seed_attractioninteger | nullno0 = providers only pick the start; 100 = each territory stays centered on its provider. Default 70. Needs seed_point_layer.

cluster_points

Cluster Points

Groups the points of one ingested layer into balanced clusters directly, with no ZIP or part layer and no territory alignment. Writes group_field (default group_id) on every point and colors the layer by it, replacing any prior color classification (size and shape channels stay). Needs build_mode (fixed_territory_count or fixed_workload_target), objective, and dwell_time, as in auto_build; a missing one returns CLARIFICATION_REQUIRED with the question. point_filter (e.g. {STATE: FL}) clusters a subset of the layer; unmatched points stay, ungrouped. Max 25,000 points after the filter. seed_point_layer, a second point layer such as technician homes, seeds the groups: with more seeds than groups the best-placed ones are used (seed_summary.unused lists the rest), with fewer the solver adds supplemental seeds in uncovered demand. seed_attraction 0-100 (default 70) is the pull of each seed on its group. Returns a task; the result lists groups with point_count, workload_hours, and point_ids.

ParameterTypeRequiredDescription
point_layerstringyes
build_modeobject | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_revisioninteger | nullno
objectiveobject | nullno
dwell_timeobject | nullno
visit_frequency_fieldstring | nullno
metric_fieldsarray<object> | nullnoMetric columns to declare on the point layer (same shape as ingest_accounts metric_fields).
group_fieldstringno
group_label_prefixstringno
seed_point_layerstring | nullnoSecond ingested point layer whose locations seed the groups (technician homes, depots). Must differ from point_layer. More seeds than groups: the best-placed are used and the rest land in seed_summary.unused. Fewer: the solver adds supplemental seeds in uncovered demand.
seed_attractioninteger | nullnoHow hard each group centroid is held at its seed. 100 pins it at the seed; 0 seeds only the starting point and lets the solver drift to the workload centroid. Requires seed_point_layer.
point_idsarray<string> | nullnoOptional point_id / row_id / account_id values to cluster. Unmatched points stay on the layer ungrouped.
point_filterobject | nullnoOptional property filter on the named point layer. Keys are point properties (equality or IN list). Multiple keys are AND. Example: {"STATE": "FL"}. Unmatched points stay on the layer ungrouped. part_filter and part_scope are not used here.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

analyze_network_coverage

Analyze Contractor Network Coverage

Finds coverage gaps in a contractor (vendor, service provider, technician, repair shop) network: counts the contractors that reach each demand point (customer, claim, store, ZIP center). Reads contractor_layer (ingested with layer_role=contractors) and demand_layer. coverage: {rule: drive_time, max_minutes} (straight-line travel model, no provider calls), {rule: drive_time, source: isochrone_tal, isochrone_tal_id} (isochrone_build areas around the contractors), or {rule: zip_list} (declared service ZIPs). One trade per call ('*' for all). Missing layers, coverage, or trade return CLARIFICATION_REQUIRED with the question. Writes new layers, never the source: _coverage (contractor_count, single_source, coverage_class red none / amber one / green 2+ / blue saturated, nearest contractor and minutes, capacity_ratio, gap score) and _gaps; gap_territory=true adds the all-gap ZIPs as one territory. Assigns nothing; dividing work is auto_build. Returns a task; the result has coverage_pct, gap and single-source counts, top_gaps, and per-contractor reach.

ParameterTypeRequiredDescription
contractor_layerstring | nullnoPoint layer of contractors. Defaults to the only layer ingested with layer_role=contractors; otherwise CLARIFICATION_REQUIRED (needs_contractor_layer).
demand_layerstring | nullnoPoint layer of demand (customers, claims, stores, or ZIP centers). Defaults to the only other ingested layer.
coverageobject | nullnoWhat counts as covered. drive_time with source travel_model (default) needs max_minutes or max_km and uses the calibrated quadkey detour-factor model with CONSTITUTION speed-curve fallback (no provider calls). drive_time with source isochrone_tal needs isochrone_tal_id: a point is covered by a cont…
tradestring | nullnoOne trade per call, matched case-insensitively against the comma-separated trade_field values. '*' (or 'all') keeps every contractor. Required when the contractor layer has a trade_field (needs_trade).
contractor_filterobject | nullnoColumn -> value (or list of values), e.g. {"tier": "Preferred"}. The key tier maps to tier_field when the layer has no literal tier column.
demand_metricstring | nullnoNumeric demand column (e.g. request count). Defaults to 1 per point; non-numeric cells count as 0 with warning DEMAND_METRIC_MISSING.
trade_fieldstring | nullnoOverrides the contractor layer's trade_field.
tier_fieldstring | nullnoOverrides the contractor layer's tier_field.
capacity_fieldstring | nullnoOverrides the contractor layer's capacity_field. Enables capacity_ratio.
service_zip_fieldstring | nullnoOverrides the contractor layer's service_zip_field (required for zip_list).
gap_territorybooleannoAlso draw ZIPs whose demand is all uncovered as one territory in a new TAL.
saturation_thresholdinteger | nullnoContractor count at which a point is saturated (blue).
priority_weightsobject | nullnogap_priority weights; defaults demand 0.6, distance 0.4, single_source_factor 0.5. The formula is echoed in result.priority_formula.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

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.

ParameterTypeRequiredDescription
point_layerstringyes
visit_frequency_fieldstringyesNumeric point column declared at ingest. Undeclared columns fail with UNDECLARED_FIELD.
dwell_timeobject | nullno
daily_capacityobject | nullno
schedule_labelstring | nullno
frequency_unitstringnointerval_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.
never_visit_valuesarray<any> | nullnoFrequency values that mean the account is left off the schedule. Matching accounts are excluded and reported in excluded_accounts, never silently dropped.
horizonobject | nullno
max_buckets_per_dayinteger | nullnoCap 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 an…
estimate_onlybooleannoWhen 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).
objectiveobject | nullnoBiases must sum to 100. Raising balance_bias to 100 lengthens otherwise efficient days to equalize hours, which is rarely what the customer wants.
cadence_flexibility_pctnumber | nullnoPercent 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 onl…
horizon_start_datestring | nullnoCalendar 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.
visit_constraintsarray<object> | nullnoSeparate account-keyed date-constraint dataset: blackouts/no-service windows, fixed dates, SLA due dates, anchor days, allowed weekdays. See visitConstraint.
contractorsobject | array<object> | nullnoOptional 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.
tal_idstring | nullnoOptional TAL id when filtering scheduled accounts by territory_id or territory_ids.
territory_idstring | nullnoOptional leaf territory id or unique display label to schedule only accounts inside that territory polygon.
territory_idsarray<string> | nullnoOptional list of leaf territory ids or display labels to schedule only accounts inside those territory polygons.
point_idsarray<string> | nullnoOptional list of account/point IDs to schedule.
point_filterobject | nullnoOptional attribute filter (property -> value or list of values) to schedule a subset of point_layer.
emit_visit_layerbooleannoMaterialize one point per scheduled visit so color-by-day and the calculate_route handoff are single calls.
visit_layer_namestring | nullnoDefaults to _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.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_revisioninteger | nullno
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

account_build

Build Territories by Account Field

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.

ParameterTypeRequiredDescription
point_layerstringyes
grouping_fieldstring | nullnoPoint feature property treated as a grouping label even when numeric.
part_layerstring | nullno
tal_labelstring | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_revisioninteger | nullno
conflict_policystringnoWhen 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.
part_scopestring | nullnoParts 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 adj…
part_idsarray<string> | nullnoExplicit part selection set. Implies part_scope explicit. Mutually exclusive with part_filter.
part_filterobject | nullnoAttribute 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…
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
output_modeenum: "tal" | "assignments"notal 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.
visit_frequency_fieldstring | nullnoPoint column that scales territory workload by visits per cycle. Mutually exclusive with ignore_visit_frequency.
ignore_visit_frequencyboolean | nullnoWhen true, every account is one visit per cycle. Mutually exclusive with visit_frequency_field.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

realign

Realign Parts

Moves ZIPs or other parts (typed ids or ones selected on the map) from one territory into another within one alignment (tal_id): a ZIP move. moves=[{part_id, to_territory_id}], or realign_operation with part_ids. The Territory Solution comes from map_session_id (the open map) or ts_handle; expected_revision adds optimistic concurrency (STALE_TS_REVISION when the map changed). to_territory_id is a leaf territory_id or that leaf's exact, unique display name; an unknown or ambiguous value returns UNKNOWN_TERRITORY_ID or AMBIGUOUS_TERRITORY with available_leaf_territories. A committed map selection is read with get_map_selection; request_part_selection lets the person pick parts on the map. remove_empty_territories drops leaves left with no parts. Returns a task; the open map repaints. analyze refreshes statistics when the map has account points.

ParameterTypeRequiredDescription
tal_idstringyesTarget TAL to realign. Required — ambiguous TAL is an error.
movesarray<object> | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
part_layerstring | nullnoPart layer name, e.g. us_zips, us_counties. Required when not inferable from the TAL.
expected_revisioninteger | nullno
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
realign_operationstring | nullnoRealignment operation. Defaults to move_to_territory when moves[] is supplied.
part_idsarray<string> | nullnoRequired for remove_parts operation.
remove_empty_territoriesbooleannoWhen true with remove_parts, drop leaf territories that become empty.

delete_tal

Delete Alignment

Deletes one whole territory alignment (TAL: 'the territory layer', 'all territories') from the Territory Solution and the open map, in one synchronous call. Needs tal_id or the TAL's exact unique label, plus map_session_id or ts_handle. Points, part-layer overlays, and routes stay; the map switches to a remaining alignment or to points only. A TAL that is already gone returns ok with already_absent=true; an ambiguous label returns AMBIGUOUS_TAL. One territory is removed with delete_territory instead.

ParameterTypeRequiredDescription
tal_idstringyesTerritory layer / alignment to delete: tal_id or an exact unique TAL label. Removes the whole layer in one call (users say territory layer / all territories / alignment more often than TAL). One leaf is removed with delete_territory.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.

delete_territory

Delete Territory

Deletes one leaf territory from an alignment; its parts become unassigned. Needs tal_id, territory_id (the leaf id or its exact unique display name), and the Territory Solution from map_session_id or ts_handle. A territory that is already gone returns ok with already_absent=true and no task; otherwise returns a task and the open map repaints. Related: territory_merge hands a leaving rep's territory to its neighbors; delete_tal removes a whole alignment in one call.

ParameterTypeRequiredDescription
tal_idstringyesTarget TAL containing the leaf to delete.
territory_idstringyesLeaf territory_id (e.g. tal-t1-t1) or a unique display name/label alias (e.g. T1).
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
part_layerstring | nullnoPart layer name when not inferable from the TAL (e.g. us_zips).
expected_revisioninteger | nullnoOptional optimistic concurrency revision.
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

territory_split

Split Territory

Territory split: divides one territory (e.g. an oversized one) into two while changing the rest of the alignment as little as possible (N to N+1 territories). Needs source_tal_id and target_territory_id, plus the Territory Solution from map_session_id (the open map) or ts_handle. Workload balance needs dwell_time; a missing id or dwell returns CLARIFICATION_REQUIRED with the question. Writes a new derived alignment; the source stays. Returns a task; the result carries disruption_summary (retention_pct).

ParameterTypeRequiredDescription
source_tal_idstring | nullnoSource TAL. Optional for form-capable clients that can answer via elicitation.
target_territory_idstring | nullnoLeaf territory (id or label) to split into two. Optional when elicitation can fill it.
new_territory_labelstring | nullnoLabel for the second territory created by the split. Defaults to ' (split)'.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
part_layerstring | nullnoPart layer (e.g. us_zips). Required only when not inferable from the source TAL.
point_layerstring | nullnoOptional point layer used to compute per-part workload/metric measures. When omitted, a uniform geography-only weighting is used.
objectiveobject | nullno
dwell_timeobject | nullno
visit_frequency_fieldstring | nullnoNumeric visits-per-cycle column on the point layer. When omitted, inherits from source TAL build_provenance or point-layer metadata.
disruption_weightnumber | nullnoIncumbency stickiness for the warm-started power-diagram rebalance. 0 is a pure power re-solve (max balance, more churn); higher values keep more of the source alignment by requiring a neighbor territory to inflate further before it can claim a border part.
balance_tolerancenumber | nullnoAccepted for compatibility. The power-diagram rebalance converges on its own internal tolerance, so this value no longer gates per-part moves.
new_tal_labelstring | nullnoLabel for the derived TAL. Defaults to ' ( )'.
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

territory_merge

Merge Territories

Merges a pair of adjacent territories (N to N-1 territories). By default, territory_id_b is folded into territory_id_a (or renamed to new_territory_label) and the rest of the alignment rebalances with minimal disruption, e.g. when a rep leaves and neighbors absorb the territory. Set preserve_other_territories=true for an exact two-territory union that combines only territory_id_a and territory_id_b (optionally named new_territory_label) and leaves every other territory unchanged with no rebalance. Non-adjacent ids return NON_ADJACENT_TERRITORIES. Needs source_tal_id and the Territory Solution from map_session_id or ts_handle; workload rebalance needs dwell_time (CLARIFICATION_REQUIRED otherwise). Writes a new derived alignment. Returns a task.

ParameterTypeRequiredDescription
source_tal_idstring | nullnoSource TAL. Optional for form-capable clients that can answer via elicitation.
territory_id_astring | nullnoFirst territory (id or label). The merged territory keeps this identity unless new_territory_label is supplied.
territory_id_bstring | nullnoSecond territory (id or label). Must be adjacent to territory_id_a.
new_territory_labelstring | nullnoOptional display label for the merged territory (defaults to territory_id_a's label).
preserve_other_territoriesbooleannoWhen true, performs an exact union of territory_id_a and territory_id_b without rebalancing any other territory in the alignment.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
part_layerstring | nullnoPart layer (e.g. us_zips). Required only when not inferable from the source TAL.
point_layerstring | nullnoOptional point layer used to compute per-part workload/metric measures. When omitted, a uniform geography-only weighting is used.
objectiveobject | nullno
dwell_timeobject | nullno
visit_frequency_fieldstring | nullnoNumeric visits-per-cycle column on the point layer. When omitted, inherits from source TAL build_provenance or point-layer metadata.
disruption_weightnumber | nullnoIncumbency stickiness for the warm-started power-diagram rebalance. 0 is a pure power re-solve (max balance, more churn); higher values keep more of the source alignment by requiring a neighbor territory to inflate further before it can claim a border part.
balance_tolerancenumber | nullnoAccepted for compatibility. The power-diagram rebalance converges on its own internal tolerance, so this value no longer gates per-part moves.
new_tal_labelstring | nullnoLabel for the derived TAL. Defaults to ' ( )'.
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

territory_rebalance

Rebalance Territories

Rebalances an existing alignment after the account data changed, keeping it as close to the current alignment as possible. Needs source_tal_id and the Territory Solution from map_session_id or ts_handle. point_layer defaults to the alignment's build layer or the only point layer; otherwise CLARIFICATION_REQUIRED (ambiguous_point_layer, with details.point_layers). Workload balance needs dwell_time; zero_workload means no account maps to a part. The current alignment is the baseline: when nothing improves the objective the result is NO_IMPROVING_REBALANCE_FOUND and nothing changes. Writes a new derived alignment. Returns a task with retention_pct and solver_diagnostics.

ParameterTypeRequiredDescription
source_tal_idstring | nullnoSource TAL. Optional for form-capable clients that can answer via elicitation.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
part_layerstring | nullnoPart layer (e.g. us_zips). Required only when not inferable from the source TAL.
point_layerstring | nullnoOptional point layer used to compute per-part workload/metric measures. When omitted, a uniform geography-only weighting is used.
objectiveobject | nullno
dwell_timeobject | nullno
visit_frequency_fieldstring | nullnoNumeric visits-per-cycle column on the point layer. When omitted, inherits from source TAL build_provenance or point-layer metadata.
disruption_weightnumber | nullnoIncumbency stickiness for the warm-started power-diagram rebalance. 0 is a pure power re-solve (max balance, more churn); higher values keep more of the source alignment by requiring a neighbor territory to inflate further before it can claim a border part.
balance_tolerancenumber | nullnoAccepted for compatibility. The power-diagram rebalance converges on its own internal tolerance, so this value no longer gates per-part moves.
new_tal_labelstring | nullnoLabel for the derived TAL. Defaults to ' ( )'.
repair_policyenum: "default" | "strict" | "report_only"noTopology 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_RE…
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

extract_tal_branch

Extract Alignment Branch

Extracts one regional branch of a hierarchical alignment (by branch_rollup_territory_id or branch_territory_path) into its own Territory Solution, so a delegate can edit just that region. Returns the extract plus branch_metadata, which reintegrate_branch needs later. exclude_locked (default true) leaves locked territories out.

ParameterTypeRequiredDescription
tal_idstringyesHierarchical TAL (alignment) to branch from.
branch_rollup_territory_idstring | nullnoRollup territory whose subtree becomes the branch. Or pass branch_territory_path.
branch_territory_patharray<string> | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_revisioninteger | nullno
expected_content_hashstring | nullno
delegate_refstring | nullno
exclude_lockedbooleanno
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

reintegrate_branch

Reintegrate Alignment Branch

Merges an edited branch (proposal Territory Solution from extract_tal_branch) back into the master. Needs branch_metadata and expected_master_revision; returns STALE_TS_REVISION when the master changed since the extract, in which case a fresh extract is needed. Merges apply one at a time.

ParameterTypeRequiredDescription
expected_master_revisionintegeryes
branch_metadataobjectyes
master_ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
proposal_ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
expected_master_content_hashstring | nullno
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

request_part_selection

Request Part Selection

Lets the person adjust boundaries by picking parts (e.g. ZIPs) on the map: puts the open map into select mode on a part_layer, for purpose realign, a new territory, or a plain list. Returns selection_task_id; get_part_selection reports status (awaiting_user_selection, then committed, expired, or cancelled) and the committed part_ids, and its response carries recommended_poll_delay_ms. The commit happens on the map, not in chat. destination_territory_id and realign_operation pre-set a realign. Works on the in-chat map and the map_url tab. map_session_id selects on the open map; ts_handle opens a stored Territory Solution first. initial_part_filter opens with a set pre-selected (e.g. in_tal or white space not_in_tal) for the person to trim; build from the committed set with part_filter {selection_task_id}. A selection the person started from the map legend is read with get_map_selection.

ParameterTypeRequiredDescription
part_layerstringyes
purposestringno
promptstring | nullnoHuman-facing selection instruction shown by the host/agent or MC.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
active_tal_idstring | nullnoAlignment shown as active while the person selects.
destination_territory_idstring | nullnoOptional receiver leaf territory when Monica/agent named the destination up front.
user_idstring | nullnoStable caller id; finds the open map when map_session_id is omitted.
expiry_secondsinteger | nullno
realign_operationstring | nullno
new_territoryobject | nullno
remove_empty_territoriesbooleanno
initial_part_filterobject | nullnoPre-selects the parts this filter matches (same shape as auto_build part_filter, e.g. {in_tal: {tal_id}} or {state_abbr: TX, not_in_tal: {tal_id}}). Resolved server-side, up to 50,000 parts; selection_task_id is rejected here.

get_part_selection

Get Part Selection

Returns the state of a map selection task (selection_task_id from request_part_selection, or active_selection_task_id in ezt://map-sessions/{id}/state): status awaiting_user_selection, committed, expired, or cancelled, and once committed the selected part_ids (with assigned and unassigned part_ids when a TAL is active). While awaiting, the response carries recommended_poll_delay_ms. Committed part_ids feed realign, create_territory_from_parts, or analyze.

ParameterTypeRequiredDescription
selection_task_idstringyesselection_task_id (psel_...) from request_part_selection.

create_territory_from_parts

Create Territory from Parts

Creates one leaf territory from a list of part_ids (e.g. a committed map selection), in a new alignment or an existing one (tal_id). With map_session_id the live map's Territory Solution is updated and repainted; otherwise ts_handle (a new ts_handle is returned). map_session_id wins when both are passed. territory_name is a display label; the result's created_territory.territory_id is the stable id for later edits, plus leaf_territories and selection_summary (duplicate_part_ids). Dwell is optional here and is not inherited from an earlier auto_build; dwell_time is recorded for later analyze. Without it, analyze reports every statistic except workload and returns workload_omitted.ask_user. Returns a task.

ParameterTypeRequiredDescription
part_layerstringyes
part_idsarray<string>yesParts for the new territory, e.g. committed part_ids from get_part_selection.
territory_namestringyes
territory_patharray<string> | nullno
tal_idstring | nullnoExisting TAL to append the new territory to; omit to start a new alignment.
conflict_policystring | nullno
repair_policystring | nullnoTopology repair policy for dissolved geometry (default, strict, or report_only). Interior holes occupied by existing territories in the TS are never filled.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
dwell_timeobject | nullno

analyze

Analyze Territories

Computes territory statistics for one or more alignments, i.e. how balanced the territories are and how alignments compare: account counts, declared metric totals (e.g. Revenue), workload hours, balance scores, and cross-TAL comparison; hypothetical_moves previews a realign. Input: map_session_id (the open map as it is now), ts_handle, or a completed build job_id (pass tal_ids when several TALs exist). metrics: omit for every declared column, or name them; workload and account_count are always available. Workload needs dwell (dwell_time, the build's recorded dwell, or the layer's dwell_time_field); without it the result has every other statistic, no workload, and workload_omitted.ask_user to put to the user. analysis_panel=single with map_session_id fills the map dock (analysis_panel.status=pushed). Territory account_count, metric_totals, workload_total (minutes), and the dock grid cover accounts_point_layer (build point_layer), never seed, contractor, or visit layers; point_counts_by_layer counts every layer. Drive-time alignments count accounts inside each polygon. Returns a task.

ParameterTypeRequiredDescription
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
job_idstring | nullnotask_id (same value as job_id) of a completed build or ingest task; its Territory Solution is the input.
tal_idsarray<string> | nullnoTAL IDs to analyze. Defaults to the active TAL when unambiguous.
part_layerstring | nullnoPart layer name. Required when not inferable from the TAL(s). Not used for a drive-time (isochrone) TAL, which is measured by polygon.
metricsarray<string> | nullnoData field names to aggregate per territory. If omitted, server returns all available metrics.
scopeobject | nullnoOptional — restrict analysis to a subset of parts or territories.
compare_talsbooleannoWhen true and multiple tal_ids supplied, include a cross-TAL comparison section.
hypothetical_movesarray<object> | nullnoOptional. Compute impact of these hypothetical part moves without persisting any change.
max_depthinteger | nullnoOptional. For hierarchical TALs, return rollup metrics only up to this depth level. Without it, every level is returned.
analysis_panelenum: "none" | "single" | "comparison_slot" | nullno
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
dwell_timeobject | nullno
visit_frequency_fieldstring | nullnoOptional visit-frequency point column override for workload recompute.

ingest_accounts

Ingest Accounts

Account ingest: loads account rows (CRM records, a CSV, a spreadsheet) as point data on a named point layer of the Territory Solution, to add them to the map, geocoding rows without coordinates. Rows come only as accounts_handle from request_account_upload (a file, csv_text, or rows; 100,000-row cap); its suggested_ingest carries these args. latitude/lat and longitude/lon/lng pass through; other names need latitude_field/longitude_field, and unused coordinate-like columns return CLARIFICATION_REQUIRED (needs_coordinate_fields). id_field is a unique key (default row_id); duplicates return needs_unique_row_id. Only declared columns are kept: metric_fields, workload_fields, dwell_time_field, visit_frequency_field, grouping_fields, display_fields, search_fields; to load a contractor list, layer_role=contractors adds trade_field, tier_field, capacity_field, service_zip_field (analyze_network_coverage). Later use of an undeclared column returns UNDECLARED_FIELD. Over geocode quota fails it whole; a bad address bills once (fix it to retry). Returns a task with failed_rows and map_refresh.

ParameterTypeRequiredDescription
accounts_handlestring | nullnoRequired. upload_handle (aup_...) from request_account_upload. Single-use: ingest claims it.
point_layerstringno
labelstring | nullnoLegend name for the point layer. Omitted: the point_layer id in title case (accounts is 'Accounts', schools_conus is 'Schools Conus').
label_fieldstringno
latitude_fieldstringnoLatitude column. Defaults accept case-insensitive GIS aliases latitude/lat (including LAT). Override for non-standard headers (e.g. Address 1: Latitude). Explicit values win over aliases.
longitude_fieldstringnoLongitude column. Defaults accept case-insensitive GIS aliases longitude/lon/lng/long (including LON). Override for non-standard headers. Explicit values win over aliases.
id_fieldstringnoUnique business key column. Duplicated label/name columns fail with blocked_by=needs_unique_row_id. With the default row_id and no unique column, the server synthesizes row-1, row-2, … when that column is absent.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
country_hintstring | nullno
region_hintstring | nullno
min_confidencenumberno
force_regeocodebooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave false. True geocodes rows that already have coordinates, billing each one.
use_cachebooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave true. False skips both geocode caches and bills a provider lookup for every address.
accept_suboptimal_geocodesbooleannoWhen true (default for ingest), accept provider suboptimal geocodes (e.g. ZIP centroids) so address-only rows become points. Set false to require optimal/point-address matches only.
retry_bad_geocodesbooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave false. True re-asks the provider, billed, for the same address text whose cached verdict is no-match or suboptimal. A corrected address needs no flag: it is a new lookup.
metric_fieldsarray<any> | nullnoAgent-confirmed business metric columns (for example revenue, sales, units) to persist on point-layer metadata for downstream build/analyze tools.
workload_fieldsarray<any> | nullno
visit_frequency_fieldstring | nullnoCanonical numeric visits-per-cycle column on point features. Agent-resolved; MCP validates presence and persists on point-layer metadata. Without one, MCP defaults each account to one visit per cycle.
dwell_time_fieldstring | nullnoCanonical per-account dwell column on point features. Pair with workload_fields unit metadata when values are in hours.
grouping_fieldsarray<string> | nullnoDeclared columns used to group accounts (e.g. account_build grouping_field candidates). Declared fields are the retention contract: the compact TS keeps only id, coordinates, label, and declared fields; undeclared columns are discarded at ingest.
display_fieldsarray<string> | nullnoDeclared columns shown in Map Component point callouts. Undeclared columns are discarded at ingest and later operations on them fail with UNDECLARED_FIELD.
search_fieldsarray<string> | nullnoDeclared columns searchable in the Map Component. Undeclared columns are discarded at ingest and later operations on them fail with UNDECLARED_FIELD.
layer_roleenum: "accounts" | "contractors" | nullnocontractors marks the supply side of a service network (contractor, vendor, service provider) for analyze_network_coverage.
trade_fieldstring | nullnoContractor column naming the trade(s) served (e.g. HVAC; comma-separated for several). Retained like a declared column.
tier_fieldstring | nullnoContractor column holding the network tier (e.g. Preferred). Retained like a declared column.
capacity_fieldstring | nullnoNumeric contractor column holding capacity (e.g. jobs per month). Retained like a declared column.
service_zip_fieldstring | nullnoContractor column listing served ZIPs, comma-separated, for coverage.rule=zip_list. Retained like a declared column.
replace_existingbooleannoWhen true, replaces an existing point layer with the same point_layer id in place. Default false returns POINT_LAYER_EXISTS when the layer already exists.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

request_account_upload

Request Account Upload

The one way account or address rows enter the server: stages them for ingest_accounts (accounts_handle) or geocode_address (upload_handle) and returns upload_handle, csv_headers, and suggested_ingest args with a geocode_plan. Ways in: the returned upload_url (no API key; valid up to 1 hour), which the user opens in a browser to drop a CSV or .xlsx (result.share_with_user; the path for a file the client cannot read, e.g. a SharePoint link) or a shell POSTs to (curl_example); csv_file (a host file parameter); csv_text (raw CSV, up to 25 MB per call); or rows chunks appended with upload_handle. A call with only upload_handle polls: upload_status waiting_for_file (sleep recommended_poll_delay_ms) or received, with preview (sample rows, column profile) and upload_warnings whose ask_user goes to the user before ingest. A local path in csv_file returns UNREADABLE_FILE_REFERENCE; an expired URL returns UPLOAD_TOKEN_EXPIRED and a call with upload_handle issues a new one. One handle holds at most 100,000 rows and is single-use, claimed by ingest_accounts, for 1 hour.

ParameterTypeRequiredDescription
rowsarray<object> | nullno
csv_textstring | nullno
csv_fileobject | string | nullnoHost file reference: an object with download_url (ChatGPT/OpenAI file param) or data (data: URI), or a URL / data: URI string. Local paths and bare file ids are rejected; for those, send the user to upload_url.
upload_handlestring | nullnoExisting upload_handle (aup_...) to append this chunk of rows to.
ttl_secondsinteger | nullno

request_assignment_upload

Request Assignment Upload

The one way part-to-territory assignment rows (e.g. a ZIP-to-territory spreadsheet with Postal Code plus Territory/Region/Division) enter the server: stages them for direct_build (assignments_handle) and returns upload_handle. Same ways in as request_account_upload: upload_url (no API key; up to 1 hour; the user opens it in a browser to drop a CSV or .xlsx, or a shell POSTs the file), csv_file, csv_text (newlines preserved), or assignment chunks appended with upload_handle; poll with only upload_handle until upload_status is received. Legacy columns map to part_id and territory_path automatically. A file of locations rather than assignments is redirected to request_account_upload. The handle is single-use and expires after 1 hour by default.

ParameterTypeRequiredDescription
assignmentsarray<object> | nullno
csv_textstring | nullno
csv_fileobject | string | nullnoHost file reference: an object with download_url (ChatGPT/OpenAI file param) or data (data: URI), or a URL / data: URI string. Local paths and bare file ids are rejected; for those, send the user to upload_url.
upload_handlestring | nullnoExisting upload_handle (aup_...) to append this chunk of rows to.
ttl_secondsinteger | nullno

geocode_address

Geocode Addresses

Geocode-only pass: turns staged customer addresses into coordinates with match confidence, without loading a map layer. The rows are staged with request_account_upload (file, csv_text, or rows; up to 10,000 rows here) and passed as its upload_handle; the handle is not claimed, so ingest_accounts can load the same rows afterward. Accepts address/address_line1/street, city, state, and postal columns (common source headers are mapped). accept_suboptimal_geocodes=true accepts ZIP-centroid matches. Each address is billed once: cached no-match and suboptimal verdicts return free (failed_rows cached_verdict); a corrected address is a new lookup. Billable lookups count against an annual per-key quota, and past it the result is PROVIDER_QUOTA_EXCEEDED with limit, used, remaining, and period_resets_at. Returns a task; the result has summary, sample_rows (10), failed_rows (first 50), a geocoded_rows_artifact with share_url for every row, and suggested_ingest. ingest_accounts alone also geocodes while it loads the map layer.

ParameterTypeRequiredDescription
upload_handlestringyesupload_handle (aup_...) from request_account_upload holding the address rows. Not claimed: ingest_accounts can reuse it.
country_hintstring | nullno
region_hintstring | nullno
min_confidencenumberno
force_regeocodebooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave false. True geocodes rows that already have coordinates, billing each one.
use_cachebooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave true. False skips both geocode caches and bills a provider lookup for every address.
accept_suboptimal_geocodesbooleannoWhen true, accept suboptimal geocodes (e.g. ZIP centroids). Default false so geocode-only workflows surface NO_OPTIMAL_GEOCODE for human review.
retry_bad_geocodesbooleannoAdmin keys only (debug/testing); a customer key gets ADMIN_REQUIRED. Leave false. True re-asks the provider, billed, for the same address text whose cached verdict is no-match or suboptimal. A corrected address needs no flag: it is a new lookup.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

calculate_route

Calculate Route

Sequences stops (e.g. home, depot, calls, home): returns order, road distance, drive time, per-leg timings, and geometry from TomTom or Azure Maps, and draws the path on the open map (map_session_id). Creates no territory and changes no assignment. route_type: circuit (returns to start), tour (ends at required end stop), or open_tour (one way). stop_sets run in array order with no cross-set moves; order is optimize or as_given; group_by_field adds priority bands. Stops are inline coordinates or point-layer refs (e.g. source.filter.territory_id); point_ids and stop_id are point_id values (visits: # ). A new route_id adds a second route; recalculating an existing route_id replaces it, e.g. to drop a stop. dwell_time is stored for analyze_routes and publish_appointments_to_dataverse (appointment length and spacing). Route drive time is not territory workload. No key: ROUTING_NOT_CONFIGURED; past annual quota: PROVIDER_QUOTA_EXCEEDED. Returns a task.

ParameterTypeRequiredDescription
startobjectyesOrigin. Must resolve to exactly one stop.
stop_setsarray<object>yes
route_typestring | nullnocircuit returns to start; tour finishes at the declared end (required); open_tour lets the optimizer choose the final stop and never returns to start.
endobject | nullnoDestination. Required for route_type=tour, rejected otherwise.
travel_modestringno
depart_atstring | nullnoRFC 3339 departure time. Drives traffic-aware durations. Defaults to now.
include_geometrybooleannoSet false to skip the route polyline when only sequence and timings are needed.
route_labelstring | nullnoDisplay name for the route on the map and in the legend. Seeds route_id when route_id is omitted.
route_idstring | nullnoStable identity for the route inside the solution. A new route_id adds a route alongside the existing ones; reusing a route_id replaces that route in place. To add or drop a stop, call again with the SAME route_id and the revised stop list — there is no add-stop tool and delete_route is for droppin…
dwell_timeobject | nullno
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

isochrone_build

Build Drive-Time Area

Draws the area reachable by driving from one or more origins within a time or distance budget (drive-time area, service area, catchment) and adds each area as a territory in a drive-time alignment. origins: inline {latitude, longitude} or a point-layer reference. bands: [{time_budget_seconds} or {distance_budget_meters}], one unit per call (MIXED_BUDGET_TYPES otherwise); one band gives one area per origin, several give nested areas. Limits: 25 origins, 5 bands, 6 hours, 500 km; travel_mode car or truck; depart_at supported. Areas are the provider polygons and may overlap; analyze counts accounts in every area containing them. realign/split/merge/rebalance return ISOCHRONE_TAL_NOT_EDITABLE. A band budget is not territory workload or route time. No provider key returns ISOCHRONE_NOT_CONFIGURED; the full call count is checked against the annual quota first (PROVIDER_QUOTA_EXCEEDED). Returns a task.

ParameterTypeRequiredDescription
originsarray<object>yesCenters to measure reachability from. Provider calls are origins x bands, so this is capped (default 25, TOO_MANY_ORIGINS).
bandsarray<object>yesBudgets to draw at each origin. One band gives one leaf per origin; several give a rollup per origin with one leaf per band. Capped (default 5, TOO_MANY_BANDS).
travel_modestringnoNarrower than calculate_route on purpose: neither provider offers a pedestrian or bicycle reachable range.
route_typestringno
trafficbooleannoTraffic-aware travel times. Ignored for a distance budget.
depart_atstring | nullnoRFC 3339 departure time, which shapes traffic-aware boundaries. There is no arrive_at: reachable range is forward-only.
avoidarray<string> | nullnoRoad classes to keep out of the reachable area. Only values both providers document.
tal_labelstring | nullnoDisplay name for the TAL. Defaults to a readable summary, e.g. "20 min drive time".
tal_idstring | nullnoStable identity for the TAL. Reusing an existing id replaces that TAL. Defaults to a slug of tal_label.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

seed_build

Grow Territory from Seed

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.

ParameterTypeRequiredDescription
seedobjectyesWhere 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.
targetobjectyesWhat the territory grows toward. Fit is closest: |achieved - value| is minimized, so the result may land slightly under or over.
part_layerstring | nullnoPart 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.
point_layerstring | nullnoIngested point layer whose locations are counted or summed. Required when the TS has more than one point layer.
tal_idstring | nullnoExisting 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.
territory_namestring | nullnoDisplay name for the new leaf. Defaults to the next free "Territory N" in the TAL. Must be unique within the TAL.
tal_labelstring | nullnoDisplay name for the new TAL when tal_id is omitted. Ignored when tal_id is given.
part_scopestring | nullnoGrowth 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…
part_filterobject | nullnoAttribute 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 T…
part_idsarray<string> | nullnoExplicit eligible part set. Implies part_scope explicit. Mutually exclusive with part_filter.
max_partsinteger | nullnoSafety cap on parts in the grown territory. Reaching it stops growth with target_status max_parts_reached.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
user_idstring | nullnoStable per-user label for usage and queue ordering.

delete_route

Delete Route

Route delete: removes one whole route from the Territory Solution and the open map, in one synchronous call. Needs route_id or the route's exact unique label, plus map_session_id or ts_handle. A route that is already gone returns ok with already_absent=true; an ambiguous label returns AMBIGUOUS_ROUTE with matching_route_ids. A single stop is removed by recalculating the same route_id with calculate_route.

ParameterTypeRequiredDescription
route_idstringyesRoute to delete: the route_id, or an exact unique route label. Removing one stop is a calculate_route with the same route_id and the remaining stops.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.

delete_point_layer

Delete Point Layer

Point-layer delete: removes one point layer and its account points from the Territory Solution and the open map, in one synchronous call. Needs point_layer (the layer id or its exact unique label), plus map_session_id or ts_handle. Territories, part overlays, and other point layers stay. A layer that is already gone returns ok with already_absent=true; an ambiguous label returns AMBIGUOUS_POINT_LAYER with matching_point_layers. ingest_accounts does not replace an existing layer; delete it here first. A visit layer derived from the deleted layer is reported and kept.

ParameterTypeRequiredDescription
point_layerstringyesPoint layer to delete: the point_layer id, or an exact unique layer label.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.

analyze_routes

Analyze Routes

Returns the total hours for each of the routes calculate_route has drawn: drive hours, dwell hours, route_workload_hours (provider drive time plus dwell, no visit-frequency multiplier), stop coordinates, centroid, and bbox. Synchronous. Needs map_session_id or ts_handle, and dwell from dwell_time or the dwell recorded on the route; unresolved dwell returns CLARIFICATION_REQUIRED (needs_dwell). A circuit's stop_count includes the return to the start, so that stop's dwell counts twice. Facts only: no capacity, ranking, or overload flags. These hours are a different measure from territory and cluster workload; territory statistics come from analyze.

ParameterTypeRequiredDescription
route_idsarray<string> | nullnoRoutes to report on, in the order returned. Absent means every route in the solution.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
dwell_timeobject | nullno

points_in_territory

Points in Territory

Lists which account points from one point layer fall inside a territory polygon or a drive-time (isochrone) area. Per territory: point_count, metric_sums (metrics, else the layer's declared metric fields), and a sample of sample_size points (default 25, max 200; 500 across all territories) with label and metric fields, or only the fields you name. Counts and sums cover every inside point. The full list is never inline: it is in points_artifact, via download_url (GET with the API key) or share_with_user (one-hour key-less link for the user). Synchronous, read-only; needs map_session_id or ts_handle. territory_id names one leaf (id or unique display name), territory_ids several; omit both for every leaf in the TAL (tal_id, else the active or sole TAL). point_layer defaults to the sole layer with points; point_filter (e.g. {tier: 'Gold'}) filters before counting. A point counts in every containing polygon; overlaps lists shared points. Unknown ids return UNKNOWN_TAL_ID / UNKNOWN_TERRITORY_ID / UNKNOWN_POINT_LAYER with the available values.

ParameterTypeRequiredDescription
tal_idstring | nullnoTerritory alignment to query. Defaults to the active TAL, or the sole TAL with leaf polygons.
territory_idstring | nullnoOne leaf: its stable territory_id or exact unique display name. Mutually exclusive with territory_ids.
territory_idsarray<string> | nullnoSeveral leaves (stable ids or exact unique display names). With neither territory_id nor territory_ids, every leaf in the TAL.
point_layerstring | nullnoPoint layer id or exact unique label. Optional when the solution has one layer with points.
point_filterobject | nullnoOptional attribute filter (column -> value or list of values, matched case-insensitively, e.g. {"tier": "Gold"}) applied to the point layer before counting and listing.
metricsarray<string> | nullnoNumeric point columns to sum per territory. Defaults to the layer's declared metric fields.
fieldsarray<string> | nullnoPoint properties to keep on sample points and in points_artifact. Omitted: the sample carries label plus the metric fields, and the artifact carries every property.
sample_sizeintegernoPoints shown inline per territory; the server lowers it so at most 500 sample points come back across all territories. point_count and metric_sums always cover every inside point; points_artifact lists them all.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.

tasks_cancel

Cancel Task

Tool equivalent of the native MCP tasks/cancel, listed for clients without the Tasks capability. Requests cooperative cancellation of a task_id and returns the Task status document. Whether the Territory Solution is unchanged or partially updated follows the originating tool.

ParameterTypeRequiredDescription
task_idstringyestask_id of the working task to stop.

tasks_get

Get Task Status

Tool equivalent of the native MCP tasks/get, listed for clients without the Tasks capability. Returns the Task status document for a task_id (holding up to wait_ms while the task is working). next_action is sleep_and_poll (wait sleep_ms, then one tasks_get), consume_result (one tasks_result call), or stop_error. status=cancelled means the user stopped it. While queued, _meta carries queue_position, queue_depth, queue_lane, and estimated_start_ms, which is advisory and not a wait time. Polling never starts work.

ParameterTypeRequiredDescription
task_idstringyestask_id from the submitting tool's result (same value as job_id).
wait_msinteger | nullnoOptional milliseconds to hold on the server while the task is working so completed tasks return consume_result without an extra poll round-trip.

tasks_result

Get Task Result

Tool equivalent of the native MCP tasks/result, listed for clients without the Tasks capability. Returns the originating tool's terminal result once the task status is completed (consume_result): ts_handle, counts, timings, and map binding, never an inline Territory Solution. A build's ts_handle or task_id (as job_id) is the input analyze takes.

ParameterTypeRequiredDescription
task_idstringyestask_id whose status next_action is consume_result.

set_map_state

Set Map State

Changes the open map's session state: mode, active alignment (active_tal_id), pending job reference, or camera (center [longitude, latitude] and zoom 0-24). Session only: the Territory Solution is not changed (configure_map sets a durable default view). The result's render_ack is read at publish time, so sent_unconfirmed one version behind is normal; render_ack_hint says whether to reread ezt://map-sessions/{map_session_id}/state or resend. camera reports the view in effect and its source (requested, session, map_config, or viewer_current). A set camera stays until changed; switching alignment does not refit.

ParameterTypeRequiredDescription
map_session_idstringyesOpen map session (msess_...) from get_map_visualization.
modestring | nullno
active_tal_idstring | nullnoAlignment to make active on the open map (session only).
pending_job_referenceobject | nullnoTask reference (task_id from a build submission) the map follows and repaints from when the task completes.
centerarray<number> | nullno
zoomnumber | nullno

get_map_selection

Get Map Selection

Returns the most recent committed selection on an open map session (map_session_id): part_layer, part_ids, and selection_task_id when the selection came from request_part_selection. Covers selections the person started from the map legend. realign takes these part_ids as moves with a leaf territory_id.

ParameterTypeRequiredDescription
map_session_idstringyesOpen map session (msess_...) from get_map_visualization.

load_analysis_panel

Load Analysis Panel

Shows a completed analyze result in the open map's analysis dock (single or compare). Needs map_session_id and the analyze task_id/job_id or the full analyze result (with tal_analyses and ts_identity; a partial object returns INVALID_REQUEST). presentation_mode: single, compare, executive, or diagnostic. dismiss=true hides the dock and keeps the statistics on the session. Changes nothing in the Territory Solution. analyze with analysis_panel=single fills the dock in the same call.

ParameterTypeRequiredDescription
map_session_idstringyesOpen map session (msess_...) from get_map_visualization.
analysesarray<object> | nullno
labelsarray<string> | nullno
rolesarray<string> | nullno
presentation_modestring | nullnoPanel mode. territory_metric_grid is default_presentation.view inside the Analyze result, not a presentation_mode.
task_idstring | nullnoCompleted analyze task_id. Same string as job_id. Hydrates analyses when analyses is omitted.
job_idstring | nullnoCompatibility alias for task_id.
dismissbooleannotrue hides the whole dock, header bar included, and keeps stored stats. It takes no analyses, task_id, labels, roles, or presentation_mode.

configure_map

Configure Map

Updates map settings on the Territory Solution and refreshes the live map: project_name (map heading), theme (dark | light basemap and UI style), loaded_part_layers ([] hides ZIP/part outlines; builds never load them), active_part_layer, active_tal_id, center and zoom (default view; the live map jumps there), and point symbology. point_layer_classifications entries are {point_layer, field, method: quantile | equal_interval | categorical | manual, class_count 2-12, channel: color | size | shape, optional colors/sizes/shapes/style}; the server computes the breaks and returns per-class counts. One classification per channel per layer; clear:true removes one. Shapes cover role icons and all Designer symbols (circle, ring, square, triangle, triangle_down, diamond, star, star4, star6, star8, cross, house, pin, pin_solid, square_pin, flag, hexagon, pentagon, shield, arrow_up, building, tower, person, vehicle, gear, paint_swath, plus *_open variants). classification without point_layer is a project-level setting that does not color points. Input: map_session_id (the live map) or ts_handle.

ParameterTypeRequiredDescription
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
project_namestring | nullnoFirst-class Territory Solution short name shown as the Map Component panel title. Persists to ts.properties.map_config.project_name; when an MC session is open for this TS, configure_map pushes config_changed so the title refreshes without reopening the map.
themestring | nullnoMap Component basemap and UI theme ('dark' or 'light'; default 'dark'). Persists to ts.properties.map_config.theme and repaints the open map session live.
loaded_part_layersarray<string> | nullno
active_part_layerstring | nullno
active_tal_idstring | nullnoDurable active alignment restored when the Territory Solution opens.
point_layer_classificationsarray<object> | nullnoApplied point-layer symbology. The server computes breaks from the in-session point features, writes ts.properties.point_layers[]. _classification, and pushes config_changed so an open MC repaints. One entry per layer/channel.
classificationobject | nullnoProject-level map_config classification (e.g. primary metric context for selection-impact preview). It leaves point colors unchanged; a patch naming a point_layer is routed to point_layer_classifications with a warning.
presentationobject | nullnoNamed presentation context stored on map_config and restored when the TS opens.
centerarray<number> | nullnoDefault camera center as GeoJSON/MapLibre [longitude, latitude]. Persists to map_config.center. An open MC jumps when this request includes center and/or zoom; later config_changed events without those fields leave the camera where it is.
zoomnumber | nullnoDefault MapLibre zoom (0-24). Persists to map_config.zoom. An open MC jumps when this request includes center and/or zoom.
merge_strategystring | nullno
expected_revisioninteger | nullno
expected_content_hashstring | nullno

show_map_overlay

Show Map Overlay

Shows or hides something on the open map from a plain request ('add US zip codes', 'hide the zips', 'show my accounts') or overlay_kind (part_layer, point_layer, tal, route) with overlay_id. Part layers load at a zoom where they are visible (visibility.camera_action); hiding a part layer leaves territories unchanged. Point layers must already be ingested; a layer in the Territory Solution but missing from the map is re-pushed (status=refreshed, with render_ack). Point layers have no hidden state: hide wording returns HIDE_NOT_SUPPORTED with do_this_next delete_point_layer, which removes the layer; the legend checkbox hides one in a single tab. route re-shows or hides routes calculate_route drew (route_id targets one); with no route yet it returns blocked_by=needs_route. When the user named a camera, do_this_next carries the configure_map call that sets it. Input: map_session_id (preferred) or ts_handle.

ParameterTypeRequiredDescription
user_requeststring | nullnoNatural-language ask, e.g. 'add zips to the map'.
overlay_kindstring | nullno
overlay_idstring | nullnoCanonical id: us_zips, accounts, tal-current, etc.
route_idstring | nullnoWith overlay_kind=route, targets one route instead of all of them. Without it, every route is re-pushed or cleared. Only re-shows or clears a route calculate_route already produced — it never routes.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
expected_revisioninteger | nullno
expected_content_hashstring | nullno
merge_strategystring | nullno

export_geojson

Export GeoJSON

Exports the territory solution as one GeoJSON file to share, archive, or open in EasyTerritory Designer: territory polygons with part_ids, points, and routes with numbered stops, each carrying its displayed style. tal_ids, point_layers, and route_layers narrow it; include_points / include_routes omit a family. Points get territory_id / territory_label here, for one alignment: tal_id, else the only TAL in tal_ids, else the active TAL (result stamped_tal_id). Input: map_session_id, ts_handle, or a completed build job_id. Returns a task whose result is geojson_artifact, share_url (key-less browser download for one hour; give the user share_with_user), and download_url (GET with the API key), never an inline body. Both serve a plain .geojson file. import_geojson reopens the file.

ParameterTypeRequiredDescription
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
job_idstring | nullnotask_id (same value as job_id) of a completed build or ingest task; its Territory Solution is the input.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
tal_idsarray<string> | nullnoTALs to materialize; omit for all.
point_layersarray<string> | nullnoPoint layers to include; omit for all.
route_layersarray<string> | nullnoroute_id values to include; omit for all. Each exported route emits one route_path feature plus one route_stop feature per visit (never coalesced).
include_pointsbooleanno
include_routesbooleannoSet false to drop the whole route family regardless of route_layers.
tal_idstring | nullnoAlignment whose territory_id / territory_label are written on the exported points. Defaults to the only TAL in tal_ids, else the active TAL.

import_geojson

Import GeoJSON

Opens a GeoJSON FeatureCollection (points, or a territory file, plain or gzip/zip) as a Territory Solution; returns ts_handle and a summary. A file of any real size moves by reference, never inline: call with no file argument for an upload_url (give the user share_with_user, or POST it with curl_example), then poll import_geojson(upload_handle) every recommended_poll_delay_ms until upload_status=received. geojson_file takes a host file (download_url). Inline geojson / geojson_text / geojson_gzip take at most 256 KB; a larger one returns INLINE_PAYLOAD_TOO_LARGE with the upload_url call to make. Polygons without part_ids import as polygon areas with tal_kind="polygon" (measured by point-in-polygon), or convert to parts with part_layer + overlay_policy="centroid_within". For a Designer project, use import_designer_project.

ParameterTypeRequiredDescription
geojsonobject | nullnoGeoJSON FeatureCollection: point features and/or EZT-exported territory features carrying part_ids. Incoming properties.style (color / opacity / size / shape / weight) on features and point_layers[] / route_layers[] is kept as-is; only missing paint is filled, so a reopened export paints exactly as…
geojson_textstring | nullno
geojson_gzipstring | nullnoBase64 gzip or zip bytes of a GeoJSON FeatureCollection.
geojson_fileobject | string | nullnoHost file parameter (openai/fileParams): an object with a temporary https download_url, or that URL as a string.
upload_handlestring | nullnoUpload link handle from import_geojson() with no file argument; returns its upload_status.
point_layerstring | nullnoName for the imported point layer (default: points).
tal_labelstring | nullnoLabel for the imported TAL when territory features lack TAL metadata.
part_layerstring | nullnoGeography for overlay assignment (e.g. us_zips). Required with overlay_policy.
overlay_policystring | nullnoExplicit opt-in for converting territory polygons without part_ids into a part-based TAL: assigns parts whose centroids fall inside each polygon.
tal_kindstring | nullnoImport polygons without part_ids directly as an area layer (tal_kind=polygon), measured by point-in-polygon with no part_layer.

link_designer

Link Designer Account

Connects the customer's EasyTerritory Designer account so list_designer_projects, import_designer_project, and push_to_designer can call Designer from the server. Returns status linked (designer_origin, designer_user) or waiting_for_user with a link_url and share_with_user. The user pastes their Designer agent token (ezt_pat_...) on that page; the token is never a tool argument and never appears in a result. Repeated calls report the status; recommended_poll_delay_ms is the interval. unlink=true removes the stored link.

ParameterTypeRequiredDescription
unlinkbooleanno

list_designer_projects

List Designer Projects

Lists the EasyTerritory Designer rolodex projects the linked Designer user can read: project_id, label, description, tags, saved_at, is_mine, and layers (point data present). q filters by text, tag by rolodex tag, mine=true to the user's own. project_id is the input to import_designer_project and push_to_designer. Without a link the error is DESIGNER_NOT_LINKED (see link_designer).

ParameterTypeRequiredDescription
qstring | nullno
tagstring | nullno
mineboolean | nullno

import_designer_project

Import Designer Project

Opens an EasyTerritory Designer project as a Territory Solution: the server exports it from Designer and imports it (part-based territories, non-part polygon areas such as radius buffers or hand-drawn shapes, point layers up to 200,000 points with Designer symbols/classifications, and routes). No file passes through the agent. Returns a task; the result has ts_handle and designer_warnings. With map_session_id the project replaces the open map's content. include_points / point_layers / include_routes / include_manual_polygons narrow it; part_layer forces the part layer. A Designer part layer is mapped to its EZT part layer id (listed in designer_warnings); one with no EZT match fails UNKNOWN_PART_LAYER with available_part_layers; retry with the user's choice as part_layer. Requires link_designer; project_id comes from list_designer_projects.

ParameterTypeRequiredDescription
project_idstringyesDesigner project id from list_designer_projects.
include_pointsbooleanno
point_layersarray<string> | nullno
include_routesbooleanno
include_manual_polygonsbooleanno
part_layerstring | nullno
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

push_to_designer

Save to Designer

Saves a Territory Solution in EasyTerritory Designer from the server. Without project_id it creates a new rolodex project named label (the user's choice; a missing label returns CLARIFICATION_REQUIRED). With project_id it overwrites that project's territories, points, and routes in place. Input: map_session_id, ts_handle, or a completed build job_id. Returns a task; the result has project_id, url, and share_with_user. part_layer_id binds the Designer catalog layer (default: the layer a pulled TAL came from); tal_id picks the alignment, and points are sent with that alignment's territory_id / territory_label; include_points=false sends territories and routes only. Route stops link to point layers by point_id. run_plugin / push_power_bi (default false) run the project's post-save plugin / refresh Power BI. Requires link_designer.

ParameterTypeRequiredDescription
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
job_idstring | nullnotask_id (same value as job_id) of a completed build or ingest task; its Territory Solution is the input.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
project_idstring | nullnoDesigner project to overwrite in place; omit to create a new project named label.
labelstring | nullno
part_layer_idstring | nullnoDesigner catalog part layer to bind; defaults to the layer a pulled TAL came from.
tal_idstring | nullnoAlignment to push; defaults to the active TAL.
include_pointsbooleanno
run_pluginbooleanno
push_power_bibooleanno

list_dataverse_views

List Dynamics 365 Views

Microsoft Copilot only (Entra sign-in): lists the Dynamics 365 account views the signed-in user can read, so their accounts import without a file. Without environment_url it lists the user's environments; with one environment it goes straight to its views, with several it returns status choose_environment and an ask_user. Views carry view_id, name, kind (system | personal), and is_default; point_readiness samples active accounts for coordinates vs address-only (address rows are geocoded at ingest). Next: import_dataverse_view(environment_url, view_id). Other clients get DATAVERSE_NOT_AVAILABLE: use request_account_upload (a CSV file) or list_designer_projects instead. DATAVERSE_CONSENT_REQUIRED carries admin_consent_url for the user's Microsoft admin.

ParameterTypeRequiredDescription
environment_urlstring | nullnoDynamics 365 environment, e.g. https://contoso.crm.dynamics.com; when absent the result lists environments.

import_dataverse_view

Import Dynamics 365 View

Microsoft Copilot only (Entra sign-in): reads a Dynamics 365 account view server to server, as the signed-in user, and stages it as an account upload. No rows pass through the agent. view_id (or an exact view_name) comes from list_dataverse_views. The server adds accountid, name, and the address1 location columns to the view; they arrive as latitude, longitude, address, city, state, postal_code, country. Returns a task (follow next_action / sleep_ms, fetch the result once); the result is the same shape as an account upload: upload_handle, row_count, csv_headers, preview, upload_warnings, geocode_plan, and suggested_ingest. Confirm the column roles with the user, then ingest_accounts(**suggested_ingest.args). Limit 100,000 accounts (DATAVERSE_VIEW_TOO_LARGE). Other clients get DATAVERSE_NOT_AVAILABLE: use request_account_upload instead.

ParameterTypeRequiredDescription
environment_urlstringyesDynamics 365 environment from list_dataverse_views.
view_idstring | nullnoAccount view id from list_dataverse_views (system or personal).
view_namestring | nullnoExact view name, when view_id is unknown. Ambiguous names return DATAVERSE_VIEW_AMBIGUOUS.
point_layerstringnoPoint layer name ingest_accounts will create.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

publish_to_dataverse

Publish Stamps to Dynamics 365

Microsoft Copilot (Entra sign-in): writes stamped point-layer columns back to Dynamics 365 accounts keyed by accountid (1:1 Account PATCH). Needs map_session_id or ts_handle. territory_id / territory_label are computed at publish for one alignment (tal_id, default the active TAL; result stamped_tal_id). Points also carry part_id, calculate_route (route_id, route_label, stop_sequence), schedule_visits (schedule_id, visit_count, schedule_days, schedule_dates, contractor_id, contractor_label), isochrone_build (isochrone_tal_id, isochrone_ids, isochrone_labels, isochrone_count), and cluster_points (group_id, group_label). A _visits layer resolves to its 1:1 parent account layer and maps schedule_day/date to schedule_days/dates. field_map maps point columns to Dynamics account logical attributes (primitive columns or territoryid / ownerid lookups by name or GUID). confirm=false (default) or no field_map is a read-only preflight: status=confirmation_required, stamped_columns, candidate_target_attributes, preview_updates, ask_user. confirm=true queues the batch PATCH task.

ParameterTypeRequiredDescription
environment_urlstring | nullnoDynamics 365 environment (e.g. https://contoso.crm.dynamics.com). Defaults to the environment the point layer was imported from, or the user's sole environment.
point_layerstringnoSource point layer in the Territory Solution (default 'accounts'). A _visits layer resolves to its 1:1 parent account layer.
field_mapobject | nullnoMap of stamped point column -> Dynamics 365 account logical attribute name (e.g. {'territory_label': 'territoryid', 'route_label': 'new_routename'}). When absent, the preflight lists stamped_columns and candidate_target_attributes.
include_unassignedbooleannoWhen true, accounts with an empty/unassigned stamp clear the target Dynamics attribute to null. Default false updates accounts with non-empty stamped values.
confirmbooleannoFalse (default) runs the read-only preflight to preview matched accounts and validate attributes/lookups. True dispatches the batch PATCH job after user confirmation.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
tal_idstring | nullnoAlignment whose territory_id / territory_label are published. Defaults to the active TAL.

publish_appointments_to_dataverse

Publish Appointments to Dynamics 365

Microsoft Copilot (Entra sign-in): writes Dynamics 365 Appointments onto reps' calendars, one per account in a route or dated schedule; Outlook syncs from Dynamics. Takes map_session_id or ts_handle and one source. route_ids (calculate_route): start = departure + drive time + earlier onsite time (time_basis=routed); route_departures supplies a missing depart_at. visit_layer (schedule_visits with calendar dates): stacks each rep's day from day_start_time (time_basis=approximate). Appointments cover onsite time; drive time goes in the description. Visits without saved onsite time require default_duration_minutes (no default; returns needs_appointment_duration). organizer_map maps a route or rep to a Dynamics user, else default_organizer, else the signed-in user. confirm=false (default) previews (confirmation_required, organizers, counts, preview_appointments, ask_user); confirm=true queues the write. Repeat publishes update earlier open appointments. Account columns use publish_to_dataverse.

ParameterTypeRequiredDescription
environment_urlstring | nullnoDynamics 365 environment (e.g. https://contoso.crm.dynamics.com). Defaults to the environment the accounts were imported from, or the user's sole environment.
route_idsarray<string> | nullnocalculate_route route_id values to publish (exact clock times). Exclusive with visit_layer.
visit_layerstring | nullnoschedule_visits visit layer (e.g. accounts_visits) to publish with approximate times. Needs schedule dates, timezone, and day_start_time. Exclusive with route_ids.
timezonestring | nullnoIANA time zone of the visits (e.g. America/New_York). Required for visit_layer and for a route departure that carries no UTC offset. No default.
day_start_timestring | nullnovisit_layer only: local time each rep's day starts, HH:MM 24-hour. No default.
gap_minutesnumbernovisit_layer only: minutes left between stacked visits. Default 0.
default_duration_minutesnumber | nullnoMinutes for any stop with no saved onsite (dwell) time; sets appointment length and spacing before the next stop. No default (required when any visit lacks dwell_minutes). default_duration_used_count reports how many used it.
route_departuresobject | nullnoroute_id -> local start date-time (YYYY-MM-DDTHH:MM) for a route with no depart_at, or to move a route to another day.
organizer_mapobject | nullnoRoute label, route_id, or rep name -> Dynamics user (full name, email, or systemuserid). That user owns and organizes the appointments.
default_organizerstring | nullnoDynamics user for visits with no rep. Defaults to the signed-in user.
rep_fieldstring | nullnovisit_layer only: visit column naming the rep. Default contractor_label.
subject_prefixstring | nullnoSubject is ' : '. Default 'Visit'.
confirmbooleannoFalse (default) runs the read-only preflight. True queues the write after the user confirms the count, the calendars, and the times.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.

ezt

EasyTerritory Assistant

Plain-language orchestrator: takes request (the goal) and runs the matching workflow in one call, optionally with csv_file (a host file parameter), accounts_handle, assignments_handle, map_session_id, or ts_handle. An uploaded CSV is parsed, staged, and ingested onto the open map. target_hours / workload_target map to a fixed-workload auto_build. Missing build inputs (part layer, alignment name, sizing, balance, dwell) return CLARIFICATION_REQUIRED with the questions. The granular tools do the same steps individually.

ParameterTypeRequiredDescription
requeststringyes
state_factsobject | nullno
argsobject | nullno
csv_fileobject | string | nullnoHost file reference: an object with download_url (ChatGPT/OpenAI file param) or data (data: URI), or a URL / data: URI string. Local paths and bare file ids are rejected; for those, send the user to upload_url.
accounts_handlestring | nullnoupload_handle (aup_...) from request_account_upload.
assignments_handlestring | nullnoupload_handle (aup_...) from request_assignment_upload.
ts_handlestring | nullnoTerritory Solution reference (tsh_...) from a build, ingest_accounts, import_geojson, import_designer_project, or get_map_visualization; Territory Solutions are not accepted inline.
map_session_idstring | nullnoOpen map session (msess_...) from get_map_visualization. Its Territory Solution is the input; omit ts_handle when set.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://mcp.easyterritory.ai/. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http ezt-mcp https://mcp.easyterritory.ai/
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : ezt-mcp ; URL : https://mcp.easyterritory.ai/
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : ezt-mcp ; Server URL : https://mcp.easyterritory.ai/ ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "ezt-mcp": {
      "url": "https://mcp.easyterritory.ai/"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "ezt-mcp": {
      "type": "http",
      "url": "https://mcp.easyterritory.ai/",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "ezt-mcp": {
      "url": "https://mcp.easyterritory.ai/"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "ezt-mcp": {
      "httpUrl": "https://mcp.easyterritory.ai/"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.ezt-mcp]
url = "https://mcp.easyterritory.ai/"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

EasyTerritory MCP · L’Atlas · Tested on

Markdown
[EasyTerritory MCP — L’Atlas](https://latlas.dev/en/mcp/ai.easyterritory/ezt-mcp)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.