Skip to main content
Glama

Octolane

search_contacts

Read-only

Search contacts (people) in the CRM by name, email, company, or job title. USE FOR: finding a person, looking up a contact, checking if someone exists in the CRM, or finding people at a specific company. PAGINATION: results are one page, not the complete match set. Use limit up to 50 and start with offset: 0; while the number of records read is less than total_count, call this tool again with offset increased by the number of results returned. Ordering is stable across pages. PARAMETER CHOICE: use the top-level semantic params (query, company_name, job_title) for common filters. Use additional_filters only for custom attributes, seniority, last interaction, or anything beyond the semantic params. ADDITIONAL_FILTERS PREREQUISITE: for custom attributes, call get_contact_fields first to get the correct property_name. Do NOT guess property names. MULTIPLE PEOPLE IN ONE QUERY: use keywords, not query. See the keywords parameter docs for the batching rule. ZERO RESULTS RETRY: if the search returns total_count=0, retry ONCE with a different keyword before telling the user the contact does not exist. Try the last name alone ("Gaby Jimenez" → "Jimenez" finds "Gabriela Jimenez" - nicknames don't fuzzy-match), the email if visible elsewhere in the chat (attachments, prior tool output, the user's message), or the full first name when you only used a nickname ("Mike" → "Michael"). Stop after one retry - do not loop.

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_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results per page (1-50, default 10).
queryNoSearch by contact name or email with fuzzy matching. Use when the user mentions a single person by name or email (e.g. 'Sarah', 'john@stripe.com'). For multiple people in one query, use `keywords` instead.
offsetNo0-indexed row offset for paging. Start at 0, then increase by the number of results returned until `offset + results.length >= total_count`. Ordering is stable across pages, so tied sort values do not repeat or skip records.
sort_byNoSort order. Defaults to `updated_at desc` when omitted.
keywordsNoMulti-keyword OR search. Pass up to 10 terms; any contact matching at least one term (name or email) is returned. **Always prefer this over multiple search_contacts calls when the user references more than one person.** Example: "Pull up John Smith, Sarah Chen, and Mike Patel" becomes one call with `keywords: ["John Smith", "Sarah Chen", "Mike Patel"]`, not three calls. Use `query` instead for a single person with fuzzy/partial matching.
job_titleNoFilter by job title (e.g. 'CTO', 'VP of Sales').
session_idNoThe ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task.
company_nameNoFilter by associated company name (e.g. 'Figma', 'Ramp'). Use when the user asks for people AT a specific company, not when looking up a person by name (use `query` or `keywords` instead).
additional_filtersNoEscape hatch for filters not covered by the top-level semantic params (custom attributes, seniority, interaction dates, etc.). For a date range, pass TWO filters on the same property with full ISO timestamps including timezone offset. Example for 'today' in PT: `{property_name:people_last_interaction, condition:on_or_after, value:'2026-05-18T00:00:00-07:00'}` AND `{property_name:people_last_interaction, condition:before, value:'2026-05-19T00:00:00-07:00'}`. There is no `between` operator. For a single date, use `condition:is` with a full ISO timestamp. Bare `YYYY-MM-DD` values are interpreted as UTC, which may not match the user's timezone.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, which already mark this as a safe read-only search, the description discloses important behavior: results are one page rather than the complete match set, ordering is stable across pages, and pagination must continue while records read are less than total_count. It also specifies a bounded zero-results retry policy, which materially helps correct invocation.

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 description is front-loaded and organized with clear uppercase sections, and nearly every rule serves correct tool use. It is somewhat long and repeats a few schema details, such as the keywords batching rule and stable ordering, but the complexity of the 9-parameter search tool justifies most of the length.

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?

Although there is no output schema, the description gives enough return-set context through total_count, page size, and stable ordering to support correct pagination. It also covers prerequisites, parameter selection, batching, and retry behavior, leaving no material gap for an agent invoking this search tool.

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 coverage is 100%, so the baseline would be 3, but the description adds substantial procedural meaning: when to use query versus keywords, how to page with limit and offset, when additional_filters is appropriate, and why get_contact_fields is required for custom attributes. It also clarifies batching multiple people and retry behavior after zero results.

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 description states a specific verb and resource: search contacts (people) in the CRM by name, email, company, or job title. This clearly distinguishes the tool from sibling search tools for accounts and deals, and the USE FOR list reinforces the intended object of search.

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?

The description gives explicit when-to-use guidance, including finding a person, checking existence, or finding people at a company. It also routes parameter choices: use top-level semantic params for common filters, additional_filters only for custom attributes or seniority, and get_contact_fields before custom property names are used.

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