Skip to main content
Glama

leads_assign_discovery

Associates a lead the workspace already owns with a record from the discovery database, instead of creating a new lead the way leads_bulk_add_to_segment does. Body: {company_guid, person_guid?} — the company is required, the person optional.

Effects. The GUIDs are unlocked for the workspace (so enrichments and leads_update accept them afterwards), the lead's discovery_company_guid/discovery_person_guid are overwritten, and — only when the lead has no contact yet — a contact is backfilled from the discovery record.

Cost. One ADD_LEAD_FROM_DISCOVERY charge per call, plus one CONTACT_ACCESS charge when person_guid names a person this workspace has never unlocked. Returns 402 when the balance or the daily spend limit will not cover it; nothing is linked in that case.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/assign-discovery/

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": {
      "sqid": "<sqid>",
      "company_guid": "<company_guid>"
    },
    "name": "leads_assign_discovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
person_guidNoGUID of the discovery Person to link. Omit to link the company only; the lead's existing person link is then left untouched.
company_guidYesGUID of the discovery Company to link to the lead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses side effects (GUIDs unlocked for enrichments and `leads_update`, `discovery_company_guid`/`discovery_person_guid` overwritten, contact backfilled only when absent), billing behavior (one ADD_LEAD_FROM_DISCOVERY charge, plus CONTACT_ACCESS for a never-unlocked person), and the failure mode (402 with nothing linked). It even names the HTTP endpoint, which is unusual and useful detail for a mutation.

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 and alternative, then segmented into bold **Effects.** and **Cost.** blocks that make the risk and billing profile scannable. Slightly dense with charge-name jargon, but every sentence conveys operative information.

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 billable mutation with no annotations and no output schema, the description covers what an agent needs before calling: what gets overwritten, what gets backfilled, what is charged, and how failure behaves. Only the return payload shape is unspecified, which is acceptable given the described 402 semantics.

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 67% and the schema already explains `person_guid`'s omission semantics; the description's body line (`company_guid` required, `person_guid` optional) largely restates that. It adds no meaning for `sqid`, which the agent must infer is the lead's identifier from the endpoint path. Baseline 3 fits when the schema does most of the work.

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: associates an already-owned lead with a discovery-database record, and explicitly contrasts this with creating a new lead via `leads_bulk_add_to_segment`. An agent can distinguish the linking behavior from segment/bulk operations without opening the schema.

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?

Gives clear selection context by naming the alternative (`leads_bulk_add_to_segment`) and the reason to prefer this tool. However, it does not state when-not to use it, nor prerequisites such as needing a lead that already exists in the workspace or already having discovery GUIDs in hand.

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.