Skip to main content
Glama

MightyAutomation

Search leads & contacts

search_leads
Read-only

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.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
leadsNo
totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds that free text spans first/last name, email, and company, and that results come with a total. It says nothing extra about ordering, pagination interaction, or how the 200-row cap behaves when more matches exist.

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?

A single front-loaded sentence that names the filters first and the return shape last, with no filler or repetition. Nothing could be removed without losing 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?

With an output schema present, return-value detail is unnecessary, and all six parameters are documented at 100% coverage, so the description is functionally sufficient. The remaining gap is sibling disambiguation against list_contacts and find_contact, which matters given how crowded that namespace is.

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 the baseline is 3. The description largely restates schema content — the free-text fields, the lifecycle enum values, and 'has a phone number' mirror the q, lifecycle, and has_phone descriptions verbatim, adding little interpretation beyond them.

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 states a specific verb (search) and resource (CRM contacts), and enumerates the three filter dimensions (free text, stage, lifecycle/phone presence) that define its behavior. It does not, however, distinguish itself from close siblings like list_contacts or find_contact, so an agent must infer the boundary.

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 by the enumerated filters — you reach for this when filtering contacts by text, stage, lifecycle, or phone presence — but there is no explicit when-not or routing to find_contact/list_contacts. The prerequisite for valid stage names lives in the schema (list_pipeline_stages) rather than being reinforced here.

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