Skip to main content
Glama

Leads

list_leads
Read-onlyIdempotent

List booking/staffing leads for an organization. Filter by status (pending/completed), pipeline stage (NEW/QUALIFIED/QUOTED/WON/LOST), owner, or search (case-insensitive substring on name, email, company, or location). Paginated with limit (max 100, default 20) and offset. organization_id defaults to your active organization; pass it explicitly for a lead in another organization you belong to. Each lead carries stage (NEW, QUALIFIED, QUOTED, WON, LOST), the readable pipeline position; its numeric status is a legacy field (1 pending, 2 completed) derived from stage, so read stage. Pass lead_id to read one lead, including owner and converted customer; the list filters are then ignored, and view="activity" instead lists its activity (claims, stage changes, notes, conversion), paginated with limit and offset. source="business_directory" with business (the business's website domain, e.g. "acmeav.com", or a directory business id from an earlier result) instead lists the decision makers already stored for that business on the shared directory record: owners, founders, executives, directors and managers, US and Canada only, with title, seniority, location, profile URLs and email_status (locked until saved with save_customer decision_maker_id, then found with the email, or not_found). This mode only reads: it never contacts an outside service, starts a lookup or stores anything. research.status is the state of the stored lookup (done, running, failed, unsupported, or unavailable when nothing is stored yet), research.refreshed_at is when it last ran, and research.lookup_due is true when enrich_business would fetch a new result; run it, then read again. unlocks shows this month's email unlocks and the plan limit. Team plan and above.

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": "list_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNowith lead_id: lead (default) is the lead itself; activity is its activity log
limitNorows per page, capped at 100; 20 when omitted
stageNopipeline stage: NEW, QUALIFIED, QUOTED, WON, or LOST
offsetNorows to skip before this page; omit to start at the first row
searchNocase-insensitive substring match on name, email, company, or location
sourceNoleads (default): your leads; business_directory: decision makers at one business
statusNopending or completed
lead_idNoread this one lead instead of listing
businessNosource=business_directory: business id or website domain, e.g. "acmeav.com"
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
owner_org_member_idNoonly leads owned by this org member: the id field from list_org_members

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNotool payload (API/composite/confirmation object); object, array, or primitive JSON
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / business
      Added value: +{
      +  "description": "source=business_directory: business id or website domain, e.g. \"acmeav.com\"",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • addedInput schema / properties / lead_id
      Added value: +{
      +  "description": "read this one lead instead of listing",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"max 100, default 20"New value: +"rows per page, capped at 100; 20 when omitted"
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / offset / description
      Previous value: -"default 0"New value: +"rows to skip before this page; omit to start at the first row"
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedInput schema / properties / owner_org_member_id / description
      Previous value: -"filter to leads owned by this org member"New value: +"only leads owned by this org member: the id field from list_org_members"
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "leads (default): your leads; business_directory: decision makers at one business",
      +  "enum": [
      +    "leads",
      +    "business_directory"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "with lead_id: lead (default) is the lead itself; activity is its activity log",
      +  "enum": [
      +    "lead",
      +    "activity"
      +  ],
      +  "type": "string"
      +}
    • changedOutput 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
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/ non-destructive/idempotent, and the description adds real context beyond them: the business_directory mode "never contacts an outside service, starts a lookup or stores anything," research.status enumerates its possible states, and the unlocks/plan-limit note flags a "Team plan and above" entitlement requirement. Minor gap: no disclosure of ordering or what happens when offset exceeds result count.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the definition is one dense block of semicolon-chained clauses covering four distinct modes, plus a trailing paragraph on research/unlocks that reads as bolted on. Information density is high, yet structure (bullets or mode sub-headings) would materially improve parseability.

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 11-parameter, four-mode tool with an output schema, the description covers pagination defaults, per-mode behavior, and the interpretation of research/unlocks fields, so an agent can call it correctly across modes. Remaining omissions (result ordering, empty-result behavior, what save_customer returns) are modest given the output schema carries return values.

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 3 is the baseline, but the description genuinely adds meaning: it specifies that status (1/2) is a legacy numeric field derived from stage and that callers should read stage, that business accepts either an id or a bare website domain, and that limit is capped at 100 with a default of 20. This is more than restating the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opening sentence names a specific verb and resource ("List booking/staffing leads for an organization") and the body disambiguates the four modes it multiplexes (list, single-lead read, activity log, business-directory decision makers). It is clear what the tool does, though the multi-mode sprawl makes the single core purpose harder to grasp at a glance than a narrower tool would be.

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?

Explicit conditional routing is given: pass lead_id to read one lead (filters then ignored), use view="activity" for its activity log, use source="business_directory" with a domain or id for stored decision makers, and call enrich_business when research.lookup_due is true. No exclusion versus sibling list tools such as list_customers is stated, but the in-tool branch guidance is strong.

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.