Skip to main content
Glama

EasyTerritory MCP

isochrone_build

[Tier 1 — Isochrone Build] When: draw the area reachable by DRIVING from one or more origins within a time or distance budget — '20-minute drive-time area around each branch', service area, catchment, coverage ring, reachable range, isochrone, isodistance (IS-001..IS-006). It draws reachable area. It has no objective and does not balance workload. Prerequisites: a TomTom or Azure Maps key on the server (no key → ISOCHRONE_NOT_CONFIGURED, no degraded mode — never substitute a straight-line radius); a part_layer (read ezt://part-layers); and, for point-layer origins, ingested points plus ts_handle or map_session_id. Inline origins need no TS. ORIGINS x BANDS: origins are inline {latitude, longitude, label?} or a point-layer reference {point_layer, point_ids?, filter?, label_field?} — '40 minutes around each of my 6 branches' is ONE call. bands are [{time_budget_seconds} | {distance_budget_meters}], one budget per band, and every band in a call must use the SAME unit (mixing returns MIXED_BUDGET_TYPES). One band → one leaf per origin; several bands → a rollup per origin with one leaf per band. Cost is origins x bands provider calls, capped by TOO_MANY_ORIGINS (default 25) / TOO_MANY_BANDS (default 5). QUOTA: those billable calls also draw on a per-API-key monthly cap. The whole fan-out is claimed before any call goes out, so a build that does not fit returns PROVIDER_QUOTA_EXCEEDED with limit, used, remaining, and period_resets_at having spent nothing. An operator must raise the cap; report those numbers instead of retrying with fewer bands. LIMITS: travel_mode is 'car' or 'truck' ONLY — neither provider offers a walking or cycling reachable range, unlike calculate_route. time_budget_seconds <= 21600, distance_budget_meters <= 500000 (BUDGET_OUT_OF_RANGE). depart_at is supported; arrive_at is not. avoid accepts toll_roads, motorways, ferries, unpaved_roads, carpools, border_crossings, tunnels, car_trains, low_emission_zones. GEOMETRY AND PARTS: each territory stores the provider's exact polygon AND part_ids assigned by centroid_within overlay, so analyze and territory stats work normally while the map shows the true drive-time edge. Bands nest and their polygons overlap on purpose (tightest paints on top); part assignment is disjoint — a part joins the tightest band containing it, then the nearer origin. realign can move parts between bands but NEVER moves a polygon, so a realigned isochrone's assignment intentionally diverges from its drawn shape. A band budget is NOT territory workload and NOT route drive time — never report '20-minute band' as 20 minutes of workload or feed it to auto_build. Async: returns task_id — follow _meta.next_action (sleep_and_poll → consume_result) and sleep the authoritative sleep_ms, never estimated_remaining_ms. Partial provider failure still builds the TAL and reports failed_requests[]. Then: analyze(tal_ids=[], map_session_id, analysis_panel='single') for per-band accounts and metrics. Pass map_session_id here to paint the bands on an open map. Full atom: ezt://guidance/workflows/isochrone-territories. Scenarios: IS-001..IS-006.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
avoidNo
bandsYes
tal_idNo
originsYes
trafficNo
depart_atNo
tal_labelNo
ts_handleNo
part_layerYes
route_typeNofastest
travel_modeNocar
part_overlayNocentroid_within
map_session_idNo
guidance_handleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries full burden and delivers: it names concrete failure codes (ISOCHRONE_NOT_CONFIGURED, MIXED_BUDGET_TYPES, TOO_MANY_ORIGINS, TOO_MANY_BANDS, PROVIDER_QUOTA_EXCEEDED, BUDGET_OUT_OF_RANGE), quota semantics (fan-out claimed up-front, nothing spent on failure, cap raised by operator), async polling rules (follow _meta.next_action, use sleep_ms not estimated_remaining_ms), and partial-failure behavior (failed_requests[]). It also discloses non-obvious invariants: realign moves parts but never polygons, bands nest and overlap, part assignment is disjoint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the 'When:' purpose, then organized into labeled blocks (ORIGINS x BANDS, QUOTA, LIMITS, GEOMETRY AND PARTS, Async, Then). Given the complexity it is mostly earned, but it is dense and long enough that some lines (e.g., repeated 'when/when-not' phrasing, scenario-code list) push past necessity.

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

Completeness5/5

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

An output schema exists, so return-shape explanation is not required, and the description instead supplies the missing operational context: prerequisite key, part_layer requirement, async task flow, error recovery path, and the downstream analyze call. For a high-complexity, high-cost batch fan-out tool, an agent has everything needed to invoke it correctly.

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

Parameters4/5

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

With 0% schema coverage across 14 params, the description must compensate and largely does: origins shape ({latitude, longitude, label?} or point-layer reference {point_layer, point_ids?, filter?, label_field?}), bands shape ([{time_budget_seconds}|{distance_budget_meters}] with same-unit rule), travel_mode allowed values, avoid value list, depart_at/arrive_at support, and numeric limits. It leaves tal_id, tal_label, traffic, route_type, part_overlay, map_session_id, and guidance_handle semantically unexplained, which is why it is not a 5.

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

Purpose5/5

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

The description opens with a specific verb+resource: 'draw the area reachable by DRIVING from one or more origins within a time or distance budget', reinforced with concrete synonyms (service area, catchment, coverage ring, reachable range, isochrone, isodistance). It explicitly separates itself from siblings by stating it 'has no objective and does not balance workload' and contrasts with calculate_route and auto_build.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

There is an explicit 'When:' clause with example phrasings, plus stated exclusions ('no walking or cycling reachable range, unlike calculate_route'; 'never feed it to auto_build'). Prerequisites (key, part_layer, ts_handle/map_session_id) and follow-up steps (analyze(...), realign) are laid out, so an agent knows exactly when to pick this over alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources