Skip to main content
Glama

Change lead routing

update_lead_routing
DestructiveIdempotent

Change who picks up new leads and follow-ups. Send only what changes. Add team_id to change one team's rule, or team_id with use_workspace_rule to make that team follow the workspace rule again. Ids come from get_lead_routing. Admins only. Ask the user to confirm before calling this tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_lead_routing"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoshared_queue: any rep can claim new work; round_robin: new work goes to the next rep in turn
team_idNoChange this team's rule instead of the workspace rule
member_idsNoThe reps in the rule, replacing the current list (user ids from get_lead_routing)
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.
fallback_user_idNoWho takes a new lead nobody else gets; null means the workspace owner
response_minutesNoMinutes a rep has to respond before the work counts as overdue
use_workspace_ruleNoWith team_id: drop the team's own rule so it follows the workspace rule
prefer_existing_ownerNoSend a returning customer back to the rep who already has them

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description adds real value beyond them: 'Send only what changes' communicates partial-update semantics, 'Admins only' discloses an authorization requirement, and it instructs the agent to seek user confirmation before calling. What it does not clarify is the destructive side — that supplying member_ids replaces the entire existing rep list and that no undo exists — which is the gap keeping this below 5.

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 purpose, then the key operating rule ('Send only what changes'), then the variants, then the guardrails. Six compact sentences with no filler, though the team_id sentence partially restates what the schema property description already says.

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?

For an 8-parameter mutation tool with no output schema, the description covers purpose, update granularity, id sourcing, authorization, and a confirmation protocol. Remaining gaps — what the call returns and the irreversibility of replacing the member list — are modest given the rich schema, but meaningful for a destructive write.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds composition semantics the schema does not: how team_id pairs with use_workspace_rule to reset a team, and that ids must be sourced from get_lead_routing. It does not elaborate on mode, response_minutes, or prefer_existing_owner, but those are already fully documented in the schema.

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 and resource — 'Change who picks up new leads and follow-ups' — which precisely scopes it to lead routing assignment rather than lead data or source. It is clearly distinguishable from siblings like update_lead_source or update_workspace_settings, and the follow-up mention broadens scope explicitly.

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?

Gives conditional routing: add team_id to change a single team's rule, or team_id plus use_workspace_rule to revert a team to the workspace rule. It also names the prerequisite source tool (get_lead_routing) for ids and states the admin restriction and the confirm-before-calling requirement, leaving little to inference.

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