Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Mondovo. If you published it, claim ownership there.

Save a service territory

save_territory

Create a postal-code territory (no territory_id), update one, or deactivate it (active false). postal_codes are full codes or prefixes ending in * (e.g. "94107", "SW1A*", "5600*"); spaces and hyphens are ignored. New jobs whose address postal code matches get the territory, and its location and staff member when the job has none. An exact code beats a prefix, then higher priority, then the longest prefix.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site_id": "<site_id>"
    },
    "name": "save_territory"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
activeNo
site_idYes
priorityNo
staff_idNo
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
location_idNo
postal_codesNo
territory_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, non-idempotent write. The description goes well beyond that by disclosing the side effect that matters: new matching jobs inherit the territory plus its location and staff member when the job has none, and by spelling out the precedence rules (exact code > priority > longest prefix). It does not say whether deactivating a territory detaches it from already-assigned jobs, which is the one behavioral question an agent would still have.

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

Conciseness5/5

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

Three dense sentences, zero filler, with the mode selection front-loaded before the matching semantics. The parenthesized examples of valid postal codes do real work and the precedence rule is stated in a single readable clause.

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

Completeness3/5

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

For a 9-parameter mutation with no output schema and near-zero schema descriptions, the description supplies excellent domain semantics but leaves several parameter meanings and the post-deactivation state unexplained. An agent could call it correctly in the common create/update case but would be guessing on priority, staff/location assignment, and what deactivation does to existing jobs.

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?

With schema coverage at 11% over 9 parameters, the description carries real weight, and it does explain postal_codes format (full codes or prefixes ending in *, spaces and hyphens ignored), active, and territory_id's create/update role. It only gestures at priority (as a tiebreaker, without saying what higher means or that it is settable), and says nothing about name, site_id, staff_id/location_id as explicit inputs, or user_goal. Roughly half the surface is still undocumented.

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 opening sentence names a specific verb+resource and enumerates the three operating modes: create (no territory_id), update, and deactivate (active false). An agent can immediately tell this is the write-side counterpart to any territory listing tool and knows which mode its arguments select.

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

Usage Guidelines4/5

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

The when-to-use signal is strong: territory_id absent means create, present means update, active=false means deactivate. It also explains the matching contract (new jobs whose address postal code matches get the territory), which tells the agent the downstream consequence of calling it. It stops short of naming an alternative tool or stating when not to call it, so it is clear context rather than full routing guidance.

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