Skip to main content
Glama

EasyTerritory MCP

delete_territory

[Tier 1 — Delete Territory] When: delete one leaf territory from an existing TAL (e.g. 'delete T1', 'remove territory West'). Prerequisites: ONE current TS reference — prefer map_session_id for an open MC, else ts_handle or ts; tal_id; territory_id (stable leaf id from created_territory.territory_id / leaf_territories preferred, or an exact unique display name — do not invent shorthand like T3 for Territory 3; ask if unclear). Do NOT invent part_ids or call auto_build. This tool collects the leaf's part_ids and runs Realign remove_parts + remove_empty_territories (same engine as RL-013). To wipe an entire TAL / alignment before rebuild, call delete_tal instead — never N× this tool. Already-absent territories return ok with already_absent=true (no job). Next: follow the returned Tasks status operation until completed, call its result operation once, then verify the open map legend no longer lists the territory AND the territory fill/outline is gone from the canvas (not just the legend) before claiming success. Geography-only delete does not require Analyze. Scenarios: feedback delete-territory, RL-013 wrapper, T-087 last-leaf paint clear.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
tal_idYes
ts_handleNo
part_layerNo
territory_idYes
repair_policyNodefault
map_session_idNo
guidance_handleNo
expected_revisionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so well: it discloses idempotent behavior ('Already-absent territories return ok with already_absent=true (no job)'), that a follow-up Tasks operation must be polled and its result called once, a verification step against both legend and canvas, and that geography-only deletes skip Analyze. This is unusually rich behavioral context for a mutation tool.

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 clause, prerequisites, prohibitions, and next steps in a tight sequence. It is dense and long, but nearly every clause carries operative information (idempotency, verification, engine identity); a small amount of scenario-tag noise ('feedback delete-territory, RL-013 wrapper, T-087 last-leaf paint clear') is the only padding.

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 so return values need not be explained, and the description still adds the post-call workflow (poll Tasks, call result once, verify legend AND canvas). The only completeness gap is the four undocumented optional parameters, which matters for a 9-parameter mutation tool.

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 9 parameters, and the description compensates well for ts/ts_handle/map_session_id, tal_id, and territory_id (including valid sources for leaf ids and a warning against invented shorthand). However part_layer, repair_policy, guidance_handle, and expected_revision are never mentioned, leaving four parameters undocumented in both schema and description.

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 precise verb+resource ('delete one leaf territory from an existing TAL') and immediately distinguishes itself from delete_tal and from auto_build. It also names the underlying engine (Realign remove_parts + remove_empty_territories), so the agent knows exactly what operation is being performed.

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 clause, explicit prerequisites (one TS reference, tal_id, territory_id), explicit exclusions ('Do NOT invent part_ids or call auto_build', 'never N× this tool' for wiping a TAL), and an explicit routing rule to delete_tal. It even tells the agent to ask when the territory reference is ambiguous.

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