Skip to main content
Glama

Search leads & contacts

search_leads
Read-onlyIdempotent

Search the CRM by free text (matches first/last name, email, company), pipeline stage, lifecycle (lead|prospect|contact|customer|churned), or "has a phone number". Returns matching contacts and a total.

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
qNoFree-text search across name, email, and company.
limitNoMax results, 1-200 (default 50).
stageNoPipeline stage name, exact match. Get stage names from list_pipeline_stages.
offsetNoRows to skip for paging (default 0).
has_phoneNotrue → only contacts with a phone number.
lifecycleNoLifecycle filter.

Output Schema

NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
leadsNo
totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / stage / description
      Previous value: -"Pipeline stage name — exact match. Get stage names from list_pipeline_stages."New value: +"Pipeline stage name, exact match. Get stage names from list_pipeline_stages."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered by structured data. The description adds only that a total is returned alongside matches, which is largely redundant with the output schema, and says nothing about how multiple filters combine or how results are ordered.

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

Conciseness5/5

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

Two tight sentences: the first front-loads what can be searched and the second states the return shape. There is no filler, preamble, or repeated framing, and the most important information appears first.

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?

With six fully documented parameters, a rich annotation set and an output schema, the description needs only to establish purpose and scope, which it does. The remaining gap is small but real: it never says whether filters are AND-combined or how results are sorted, which matters for a search tool an agent may call repeatedly with different filter mixes.

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 description coverage is 100%, so every parameter including the lifecycle enum, the 1-200 limit range and the stage-matching rule is already documented in the schema. The description restates the same filter list (free text fields, stage, lifecycle, has phone) without adding syntax, combination logic, or precedence rules, so baseline 3 applies.

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?

The description names a specific verb (Search) and resource (the CRM / leads & contacts) and enumerates the filterable dimensions, so an agent immediately knows this is a filtered contact search. It stops short of explicitly distinguishing itself from siblings like list_contacts or find_contact, which is the only thing keeping it from 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?

Usage is implied rather than stated: the enumeration of filter types suggests 'use this when you want to narrow contacts by text, stage, lifecycle or phone presence.' There is no explicit when-not guidance and no named alternative for retrieving a single known contact or listing everything, so an agent must infer the boundary from sibling names alone.

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