Skip to main content
Glama

Set lead owner

set_lead_owner
DestructiveIdempotent

Assign or clear the owner of a lead. Omit org_member_id to claim the lead yourself; pass an org member id to assign someone else (CRM manager; the owner must be active staff, any role except Member). Pass org_member_id null to remove the owner so the lead shows as Unassigned (CRM manager). Runs on the first call; there is no confirmation step.

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": {
      "lead_id": "<lead_id>"
    },
    "name": "set_lead_owner"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_idYesthe lead id, from list_leads
org_member_idNoorg member to assign as owner; omit to claim it yourself; null to unassign
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { inquiry_date, referred_by, guest_count, budget, company, customer { email, id, name, phone }, customer_id, email, event_date, event_id, event_type, id, internal_notes, latitude, location, locked, longitude, lost_at, and 9 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description still adds real value: 'Runs on the first call; there is no confirmation step' warns the agent there is no undo gate, and it explains what 'destructive' actually means here (owner removal surfaces the lead as Unassigned) plus the actor permission requirement. It stops short of mentioning downstream effects such as notifying the newly assigned owner.

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 tight sentences, ordered from purpose to mode-specific instructions to the execution warning. Every clause carries operational information (mode, permission, eligibility, no-confirmation) with no filler or restatement of the title.

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

Completeness5/5

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

For a destructive mutation with an output schema, the definition supplies everything an agent needs before calling: which parameter value triggers which effect, who may perform it, target eligibility, and the absence of a confirmation step. Return values are correctly left to the output schema.

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 coverage is 100%, so the null/omit semantics of org_member_id are already documented in structured data. The description still adds meaning the schema lacks: the eligibility rule for the target owner (active staff, non-Member) and the CRM manager authorization requirement for assignment and removal.

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 verb plus resource and covers both directions of the operation: 'Assign or clear the owner of a lead.' That verb+resource framing is unambiguous and cannot be confused with the set_event_* siblings, which operate on a different resource.

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?

The description enumerates each invocation mode and the condition that selects it: omit org_member_id to self-claim, pass an id to assign someone else, pass null to unassign. It also gates the latter two behind a CRM manager permission and an eligibility constraint on the target owner ('active staff, any role except Member'), leaving nothing 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.