Lists the lead assignment rules, newest first (up to 200): each one's scope (one lead source, one pipeline, or global; a global rule can be limited to prospects or deals with entity_type), method (round_robin, weighted_round_robin, capacity, territory, source, value or manual), participants with their name, weight, capacity and out-of-office flag, territory_ids, special rules, fallback and who gets notified.
Escopo
crm:read
Permissão
Ver o módulo
Tool do MCP
crm_assignment_rules_listNa superfície completa; na compacta, mb_execute_operation com id: "crm.assignment_rules.list".
Custo declarado: até 200 leituras e 0 escritas por chamada (contam na cota diária).
Returns one assignment rule with its scope, method, participants, territories, special rules, fallback and notification settings. Use crm.assignment_rules.list when you do not know the id.
Escopo
crm:read
Permissão
Ver o módulo
Tool do MCP
crm_assignment_rules_getNa superfície completa; na compacta, mb_execute_operation com id: "crm.assignment_rules.get".
Custo declarado: até 2 leituras e 0 escritas por chamada (contam na cota diária).
Creates a lead assignment rule: a name; its scope (source_id for one lead source, pipeline_id for one pipeline, or neither for a global rule, which can be limited to prospect or deal with entity_type); the method; participants (user_id from crm.team.list: people with access to the organization or AI agents of the CRM team; the name is filled in by the server; optional weight or max_capacity, is_out_of_office); territory_ids for the territory method (from crm.territories.list); optional special rules, evaluated first by priority; the fallback (unassigned, round_robin, notify_admin, or specific_user with fallback_user_id); and whether to notify the assigned owner (default true) and extra users. Every reference is checked: participant_not_found, fallback_user_required, recipient_without_access, territory_not_found, lead_source_not_found, pipeline_not_found. 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_assignment_rules_createNa superfície completa; na compacta, mb_execute_operation com id: "crm.assignment_rules.create".
Custo declarado: até 320 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
namestringcorpoobrigatório
The rule's name.
methodenumcorpoobrigatório
How the owner is chosen: round_robin, weighted_round_robin, capacity, territory (territory_ids), source, value or manual.
Updates any field of an assignment rule through updates: a field left out does not change, and null clears an optional one (pipeline_id, source_id, entity_type, territory_ids, fallback_user_id, notify_extra_user_ids). Participants and special rules are replaced as a whole; the references sent are checked like at creation. Turning a source or pipeline rule into a global one (no source nor pipeline left) needs confirm_global: true outside the app (rule_scope_widening otherwise): every lead without a more specific rule would follow it. Requires manage_assignment.
Escopo
crm:write
Permissão
Editar no módulo · Ação do CRM: manage_assignment
Tool do MCP
crm_assignment_rules_updateNa superfície completa; na compacta, mb_execute_operation com id: "crm.assignment_rules.update".
Custo declarado: até 320 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
rule_idstringrotaobrigatório
The rule's id, from crm.assignment_rules.list.
updatesobjectcorpoobrigatório
The fields to change; what is not sent is kept.
confirm_globalbooleancorpoopcional
Send true when the change makes the rule global (no source nor pipeline left): outside the app it is refused otherwise, because every lead without a more specific rule would follow it.
Deletes an assignment rule for good: rules do not go to the trash, and leads stop being routed through it; the dry run names it and its scope. assignment_rule_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_assignment_rules_deleteNa superfície completa; na compacta, mb_execute_operation com id: "crm.assignment_rules.delete".
Custo declarado: até 1 leituras e 1 escritas por chamada (contam na cota diária).