Skip to main content
Glama

get_lead_list

Read-only

Get a ranked list of leads with engagement data.

Every row includes who sent the last message (last_message_from) and whether the lead is waiting on a reply. The response includes total_matching — if it is larger than the rows returned, the list is truncated, say so.

Args: stage: Filter by funnel stage (NEW, IN_CONTACT, QUALIFIED, BOOKED_CALL, WON, LOST). Omit for all stages. limit: Max leads to return (default 20, max 50). time_period: Optional period to scope by lead creation date (e.g. last_7_days, this_month). Do NOT combine with aged_in_stage_days or inactive_days. aged_in_stage_days: Only leads stuck in their current stage for at least N days ("stuck", "aging" questions). inactive_days: Only leads who haven't messaged in N days ("ghosted", "gone quiet" questions). waiting_on_reply: Only leads whose LAST message was sent by the lead — they are waiting on the team ("being ignored", "not replied to", "waiting on us" questions). Ordered longest-waiting first. sentiment: Only leads whose most recent analyzed message has this sentiment: POSITIVE, NEUTRAL, NEGATIVE, FRUSTRATED, or UNHAPPY (= NEGATIVE or FRUSTRATED; use for "frustrated/annoyed/angry leads" questions). source: Only leads from this source: DM, COMMENT, STORY, OUTBOUND. unassigned: Only leads with no setter assigned. tag_name: Only leads carrying a tag matching this name (case-insensitive, partial match). Use this WITH waiting_on_reply or sentiment for "which leads tagged X did we ignore / are interested?" — one call, instead of get_leads_by_tag followed by a get_conversation_detail per lead. date_basis: What time_period filters on. "lead_created" (default) or "tag_applied": when a tag matching tag_name was applied, the Leads page "Tagged" date filter. Use tag_applied for "leads that became this week" (e.g. MQLs qualified this week). Needs tag_name.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
stageNo
sourceNo
tag_nameNo
sentimentNo
date_basisNolead_created
unassignedNo
time_periodNo
inactive_daysNo
waiting_on_replyNo
aged_in_stage_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds genuinely non-obvious behavior: the response carries total_matching, a larger total than rows returned means truncation and the agent should say so, and waiting_on_reply results are ordered longest-waiting first. It does not discuss ranking criteria for the 'ranked' list, which is the one behavioral gap.

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?

The lead sentence is front-loaded with purpose and return shape, then parameters are listed in a scannable block with the highest-value guidance (tag_name combination trick, date_basis) called out inline. It is long, but for 11 undocumented parameters nearly every line carries information; only the repeated question-phrase examples add slight bulk.

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?

An output schema exists, so return values need not be enumerated, yet the description still flags the one field an agent must act on (total_matching/truncation). Combined with full parameter semantics, mutual-exclusion rules, and ordering behavior, nothing needed to call this correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all 11 parameters, and it does: enumerated values for stage, sentiment (including the UNHAPPY = NEGATIVE or FRUSTRATED alias), and source; defaults and max for limit; the dependency that date_basis='tag_applied' requires tag_name; and case-insensitive partial matching for tag_name. This is meaning well beyond the bare schema types.

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 opening sentence gives a specific verb and resource ('Get a ranked list of leads with engagement data') and immediately states what each row contains (last_message_from, waiting-on-reply status). It also names a concrete alternative path (get_leads_by_tag followed by get_conversation_detail) that this tool replaces, so an agent can distinguish it from siblings without opening a schema.

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?

Guidance is explicit and mapped to user phrasings: aged_in_stage_days for 'stuck/aging', inactive_days for 'ghosted/gone quiet', waiting_on_reply for 'being ignored/not replied to', sentiment for 'frustrated/annoyed'. It also states a hard exclusion ('Do NOT combine time_period with aged_in_stage_days or inactive_days') and a preferred-call pattern over get_leads_by_tag, which is exactly the when/when-not/alternative coverage this dimension rewards.

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