Skip to main content
Glama

EasyTerritory MCP

create_territory_from_parts

[Tier 2 — Territory From Parts] When: create or update one leaf territory from committed part IDs (manual MC-005 build or RL-011/012). Prerequisites: part_ids from selection or agent list; part_layer; viewer connected. Pass map_session_id for the open MC — the server loads that session's TS, appends the new TAL, and rebinds the same session before map_refresh (do not call get_map_visualization just to show the new territory). If result.map_refresh.notified is false or status is rebind_required, call get_map_visualization(job_id=). Completed result includes created_territory.territory_id, leaf_territories, and selection_summary (requested/unique counts plus duplicate_part_ids) — territory_name is a display label only (e.g. T1 → territory_id like tal-t1-t1). Later realign into this territory MUST use created_territory.territory_id (preferred) or the exact leaf display name when unique; never invent shorthand (T3 ≠ Territory 3) — if unclear, ask which leaf from leaf_territories. DWELL: this tool creates a NEW TAL and does not inherit dwell_time from a prior auto_build. Dwell is NOT required to create the territory (same as direct_build). Optional dwell_time={type:scalar,value,unit} stamps build_provenance for later Analyze. Without dwell, Analyze still runs and reports every other statistic but OMITS workload (result.workload_omitted) — present the stats, then relay its ask_user sentence; never invent a default (including 30 minutes). Modern form-capable clients may be prompted in-band for dwell when a hydrated TS shows points without dwell provenance; declining still allows create (HITL-038). Next: repeat for additional territories, realign with created_territory.territory_id, or analyze with confirmed dwell_time. Scenarios: MC-005, RL-011, RL-012.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
tal_idNo
part_idsYes
dwell_timeNo
part_layerYes
map_session_idNo
territory_nameYes
territory_pathNo
conflict_policyNo
guidance_handleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: the server loads the session TS, appends a new TAL, and rebinds the session before map_refresh; new TALs do not inherit dwell_time; missing dwell causes workload_omitted in Analyze; declining an in-band dwell prompt still permits creation (HITL-038). These are genuine side effects and failure semantics beyond any structured field.

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

Conciseness3/5

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

Front-loaded with useful headers (When/Prerequisites/Next/Dwell/Scenarios), but the body is very dense and acronym-heavy (TAL, TS, MC, RL, HITL, DWELL), which taxes readability. Several clauses about downstream Analyze behavior and prompting could be tightened without losing meaning.

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

Completeness4/5

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

An output schema exists, yet the description still usefully names key return fields (created_territory.territory_id, leaf_territories, selection_summary, map_refresh.notified) and the realignment rule that must use territory_id rather than an invented shorthand. It covers the workflow end-to-end; the remaining gap is the five undocumented input parameters.

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

Parameters3/5

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

Schema coverage is 0% across 10 parameters, so the description must compensate. It meaningfully explains part_ids, part_layer, map_session_id, dwell_time and the display-only nature of territory_name, but says nothing about ts, tal_id, territory_path, conflict_policy, or guidance_handle — roughly half the parameters remain undocumented in both places.

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

Purpose5/5

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

States a specific verb+resource+scope: 'create or update one leaf territory from committed part IDs', and tags the trigger conditions (manual MC-005 build, RL-011/012). It is clearly distinguishable from siblings like auto_build, direct_build, realign and territory_merge, which are named or implied by contrast.

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?

Explicit 'When:', 'Prerequisites:', and 'Next:' sections, plus a negative instruction ('do not call get_map_visualization just to show the new territory') and a routing rule for when to call it (rebind_required / notified=false). Alternatives such as analyze and realign are named with the condition that selects them.

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