Skip to main content
Glama

Assign lead

assign_lead
Destructive

Assign a lead to a workspace member by user id, or pass assignedTo=null to unassign. Use search_leads to find the lead id and get_workspace_info to confirm the operating workspace. The result echoes the operating workspace.

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": {
      "assignedTo": "<assignedTo>",
      "id": "<id>"
    },
    "name": "assign_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe lead id returned by search_leads.
assignedToYesUser id of the workspace member to assign the lead to. Pass null to unassign.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The lead id returned by the matching search/list tool."New value: +"The lead id returned by search_leads."
  3. Changed1 schema field changed
    • addedInput schema / properties / assignedTo / description
      Added value: +"User id of the workspace member to assign the lead to. Pass null to unassign."
  4. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The lead id returned by the matching search/list tool."
  5. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds further context by explaining the unassign behavior ('pass assignedTo=null to unassign') and the return echo ('The result echoes the operating workspace'), which goes beyond the structured annotations without contradicting them.

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?

The description is three concise sentences: first states the core action, second provides usage guidance, third notes the return behavior. It is front-loaded and every sentence provides useful information without repetition.

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?

Given the tool's simplicity, the annotations, and the absence of an output schema, the description covers the purpose, parameters, prerequisites, and a return detail. It could mention overwriting existing assignments or side effects of unassigning, but it is largely complete for a straightforward 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 100% and both parameters already have clear descriptions ('The lead id returned by search_leads' and 'User id of the workspace member... Pass null to unassign'). The tool description mostly reinforces these without adding new semantic detail, so the baseline of 3 is appropriate.

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 description opens with a specific action: 'Assign a lead to a workspace member by user id,' and also covers the null case for unassignment. This clearly distinguishes it from sibling tools like update_lead or convert_lead by focusing on the assignment/reassignment act.

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 description provides explicit workflow guidance: 'Use search_leads to find the lead id and get_workspace_info to confirm the operating workspace.' It explains the prerequisite steps but does not explicitly mention when not to use this tool or name alternatives, so it misses the highest bar.

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