Skip to main content
Glama

AI SDR Kit by Zevari

leads_query

Query the global leads database with filters for headline, source, qualification status, email, replies and intent. If you will draft or stage outbound copy from returned leads, call library_context_get next and apply the returned Outreach template plus Brand context before writing.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
searchNo
sourceNo
keywordNo
has_emailNo
has_intentNo
qualificationNo
headline_filterNo
has_ever_repliedNo
quiet_since_daysNo
has_active_campaign_targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. It implies a read-only query and discloses the cross-tool dependency on library_context_get, which is real behavioral value, but it says nothing about result caps, default ordering, pagination limits, or permission/workspace scoping (what 'global' actually means for visibility).

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?

Two sentences with the purpose front-loaded and no filler; the filter enumeration and the conditional workflow note each do work. Slightly loose phrasing in the filter list, but nothing is redundant.

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

Completeness2/5

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

For a 12-parameter query tool with no annotations and no output schema, the description leaves too much open: pagination behavior, result shape/size, sort order, and the semantics of several overlapping text-matching parameters are all absent. An agent can form the call but cannot predict its behavior or its return.

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

Parameters2/5

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

Schema description coverage is 0% across 12 parameters, so the description must compensate and it only partially does. It loosely maps to roughly half the fields (headline_filter, source, qualification, has_email, has_ever_replied, has_intent) while leaving limit, offset, search, keyword, quiet_since_days and has_active_campaign_target unexplained — notably the distinction between `search`, `keyword` and `headline_filter` remains ambiguous.

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?

Names a specific verb and resource ('query the global leads database') and enumerates the filterable dimensions, which is enough to distinguish it from retrieval-by-id siblings like leads_get_detail. It does not explicitly differentiate itself from near-neighbours such as leads_get_list_leads or leads_get_qualified, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides one genuinely useful conditional: if outbound copy will be drafted or staged from the results, call library_context_get next and apply the Outreach template plus Brand context. However, it offers no guidance on when this tool is preferable to the many sibling lead-retrieval tools (list, qualified, lookup_by_url), and no exclusions.

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.