Skip to main content
Glama

Search leads

search_leads
Read-only

Search the lead queue with the leads page's filters; every filter is optional and they combine. Leave is_icp unset for the default view (confirmed ICP matches and manual approvals); false searches every engager. Each lead has two 0-100 scores: icp_score is the ICP match percentage the app shows (min_icp_score, sort -icp_score), composite_score an internal engagement score that also weighs fit (min_score). When the user talks about fit, match, good-fit leads or a percentage such as "80%+", they mean icp_score. Returns a compact row per lead; get_lead has the full record.

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

Input Schema

NameRequiredDescriptionDefault
tabNoPreset view. all = every lead; hot_leads = ICP matches above 70% who engaged in the last 7 days; new_engagers = first seen in the last `days` days; contacted = status contacted; going_cold = cooling trend.
daysNotab new_engagers only: how many days back first seen reaches. Defaults to the workspace's dashboard window (7 unless changed).
limitNo
trendNo
is_icpNo
offsetNo
searchNoCase-insensitive substring of name, company or title (not headline).
statusNoPipeline status.
titlesNoExact, case-sensitive values as a lead's title or company field returns them. For a partial match use search.
accountNoWorkspace uuid or name. Omit if you have one; else see list_accounts.
changesNoA company change of these kinds (or any) confirmed in the last 30 days; team_hiring counts only teams the ICP sells to.
intentsNoWhat their own words showed (a comment, a reply, a keyword post they wrote, or their post the user commented on; the app's Why column). seeking_solution = looking for a solution; growth_change = new role, funding, expansion; purchase_intent and pain_alignment are older names for seeking_solution and pain_point. A lead matches when they showed any of them; each row's top_intent quotes that intent.
orderingNoicp_score = ICP match percentage (-icp_score is the app's default, Best ICP fit). sort_score and composite_score = the composite engagement score (sort_score is its uncapped form; the API default is -sort_score). total_engagement_count = how active. A leading - sorts descending.
companiesNoExact, case-sensitive values as a lead's title or company field returns them. For a partial match use search.
countriesNoISO 3166-1 alpha-2 codes.
functionsNoJob function from title. A lead with no value never matches.
min_scoreNoFloor on composite_score, the internal engagement score (how much and how recently they engaged, blended with ICP fit). NOT the ICP match percentage; for fit, match or "80%+ leads" use min_icp_score.
senioritiesNoSeniority from title. A lead with no value never matches.
company_sizesNoEmployer's headcount band. A lead with no value never matches.
min_icp_scoreNoFloor on icp_score, the ICP match percentage ("ICP match" in the app). Use it for fit, match or "80%+ leads" (min_icp_score: 80). Excludes leads not yet classified. Not min_score.
exclude_titlesNoExact, case-sensitive values as a lead's title or company field returns them. For a partial match use search.
min_engagementsNoOnly leads with at least this many engagements, all sources.
connection_degreeNoFrom the LinkedIn accounts connected to Outreach (rows name them in connected_senders). out = out of network. Unchecked leads never match; ignored without Outreach.
engagement_sourceNoWhich signal surfaced them: post_engagement (your posts), comment_engagement (comments you leave), competitor_engagement (watched profiles), keyword_tracking.
exclude_companiesNoExact, case-sensitive values as a lead's title or company field returns them. For a partial match use search.
last_active_afterNoYYYY-MM-DD. Only leads whose latest engagement, on any source, is on or after this day (the workspace owner's timezone).
company_industriesNoEmployer's industry. A lead with no value never matches.

Output Schema

NameRequiredDescriptionDefault
countNo
resultsNo
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real value beyond them: the differing result sets of is_icp unset vs false, and the fact that rows are compact summaries rather than full lead records. It stops short of describing pagination or row contents, keeping it a 4 rather than a 5.

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?

Four tight sentences, front-loaded with the scope statement and then the highest-risk ambiguity (the two score types). Some content, particularly the min_icp_score vs min_score contrast, restates the schema descriptions rather than adding new information.

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 a 27-parameter tool the description wisely leaves per-filter detail to the schema (85% coverage) and spends its words on the two things the schema cannot convey: default-view semantics and the user-language-to-field mapping. An output schema exists, so the brief note that rows are compact summaries is sufficient rather than a gap.

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?

With 85% schema coverage the baseline is 3, and this description genuinely exceeds it by mapping user language ("fit", "match", "80%+") onto icp_score rather than composite_score, and by explaining that the default ordering in the app differs from the API default. Much of the min_score/min_icp_score guidance is duplicated in the schema, which keeps it from a 5.

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?

Opens with a specific verb+resource ("Search the lead queue") plus the scope framing that all filters are optional and ANDed. It also names the boundary against the sibling get_lead ("get_lead has the full record"), so an agent can pick between the list and detail tools without inspecting either 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?

States explicit when-to-use rules: leave is_icp unset for the default view, false to search every engager; use min_icp_score for fit/match/"80%+" and min_score only for the internal engagement score. It also routes to get_lead for full records and to list_accounts when an account uuid is unknown.

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