Lists the organization's sales territories by name (up to 500), each with the countries (ISO codes), regions and industries it covers and the sellers assigned to it (assigned_user_ids). An assignment rule with method territory routes a lead to the first of its territories that covers the lead's country or region and rotates among that territory's sellers.
Escopo
crm:read
Permissão
Ver o módulo
Tool do MCP
crm_territories_listNa superfície completa; na compacta, mb_execute_operation com id: "crm.territories.list".
Custo declarado: até 500 leituras e 0 escritas por chamada (contam na cota diária).
Creates a sales territory with a name, optional description, the countries (ISO 3166-1 alpha-2 codes such as ar or mx, or global: country_invalid otherwise), regions and industries it covers, and the sellers assigned to it (assigned_user_ids: people with access to the organization, from crm.team.list; may be empty; recipient_without_access otherwise). Use its id in an assignment rule's territory_ids (method territory). Requires manage_assignment (owners, admins and CRM admins).
Escopo
crm:write
Permissão
Editar no módulo · Ação do CRM: manage_assignment
Tool do MCP
crm_territories_createNa superfície completa; na compacta, mb_execute_operation com id: "crm.territories.create".
Custo declarado: até 0 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
namestringcorpoobrigatório
The territory's name, up to 120 characters.
assigned_user_idsarray<string>corpoobrigatório
The sellers the territory's leads rotate among, up to 200: people with access to the organization (user ids from crm.team.list; AI agents are not assigned by territory).
descriptionstringcorpoopcional
A description, up to 500 characters.
countriesarray<string>corpoopcional
ISO 3166-1 alpha-2 country codes (ar, mx, us…; case-insensitive) or global, up to 100: a lead from one of them matches the territory.
regionsarray<string>corpoopcional
Regions or states as the leads bring them, up to 100.
Updates a territory: only the fields sent change (description null clears it; each list sent replaces the current one), validated like at creation; with nothing to change, no_changes. Requires manage_assignment.
Escopo
crm:write
Permissão
Editar no módulo · Ação do CRM: manage_assignment
Tool do MCP
crm_territories_updateNa superfície completa; na compacta, mb_execute_operation com id: "crm.territories.update".
Custo declarado: até 1 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
territory_idstringrotaobrigatório
The territory's id, from crm.territories.list.
namestringcorpoopcional
New name.
descriptionstring | nullcorpoopcional
New description; null clears it.
countriesarray<string>corpoopcional
The whole new list: ISO 3166-1 alpha-2 country codes (ar, mx, us…; case-insensitive) or global, up to 100: a lead from one of them matches the territory.
regionsarray<string>corpoopcional
The whole new list of regions.
industriesarray<string>corpoopcional
The whole new list of industries.
assigned_user_idsarray<string>corpoopcional
The whole new list: The sellers the territory's leads rotate among, up to 200: people with access to the organization (user ids from crm.team.list; AI agents are not assigned by territory).
Deletes a territory for good: territories do not go to the trash. Assignment rules that list it simply skip it from then on (remove it from their territory_ids with crm.assignment_rules.update to keep them tidy); the dry run names the territory and those rules. territory_not_found when the id does not exist (also in the dry run). Requires manage_assignment.
Pede confirmação: primeiro dry_run: true (prévia e confirm_token, válido por 10 minutos e por uma única execução), depois o mesmo corpo com confirm_token. Em algumas poucas, só com certos dados: a descrição diz quando. Por que e como: Prévia e confirmação.
Escopo
crm:writee «Permitir exclusões» (crm:delete no OAuth)
Permissão
Editar no módulo · Ação do CRM: manage_assignment
Tool do MCP
crm_territories_deleteNa superfície completa; na compacta, mb_execute_operation com id: "crm.territories.delete".
Custo declarado: até 51 leituras e 1 escritas por chamada (contam na cota diária).