Skip to main content
Glama

Search Contacts

search_contacts
Read-onlyIdempotent

Searches the contacts of the signed-in Mailpro account inside ONE contact list, ONE tag or ONE segment: give exactly one of list_id, tag_id, segment_id. Optionally filter by email address (lists and tags only). Returns email, phone, rating and the filled-in custom fields. To look in several lists, call it once per list. The result is one page: for the total number of contacts, use get_contact_list (list), list_tags (tag) or count_segment_contacts (segment). Contact data is personal data: return only what the user asked for.

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
pageNoPage number, starting at 1.
emailNoOptional: only contacts whose email address contains this text. Leave empty for all. Not available for segments.
tag_idNoTag id, from list_tags. 0 when searching by list or segment.
list_idNoList id, from list_contact_lists. 0 when searching by tag or segment.
page_sizeNoContacts per page, 1 to 50. Default 20.
segment_idNoSegment id, from list_segments. 0 when searching by list or tag.

Output Schema

NameRequiredDescriptionDefault
pageYes
contactsYes
has_moreYesTrue when a next page may exist.
page_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, non-open-world), and the description adds behavior beyond that: the result is a single page only, and contact data is personal data that should be minimized in output. The listing of returned fields partly duplicates the output schema, so it does not reach the top of the scale.

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?

Front-loaded with the selection constraint, then filtering, return shape, pagination, and the privacy caveat in that order. Every sentence carries operative information; nothing is restated from the title or annotations.

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?

For a six-parameter read tool with an output schema, the description covers the scoping rule, filter limitation, paging limitation, and where to get totals. An agent can call it correctly on the first attempt without further inference.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds a cross-parameter constraint the schema cannot express: exactly one of list_id, tag_id, segment_id must be given. It also documents that email is ignored for segments, adding meaning past the schema's own wording.

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?

States a specific verb and resource ("Searches the contacts of the signed-in Mailpro account") and immediately bounds the scope to exactly one of a list, tag, or segment. That scoping sentence lets an agent distinguish it from get_contact, find_contact_by_email, and the count tools without opening a 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?

Gives explicit routing: "To search several lists, call it multiple times per list", and names the alternatives for totals (get_contact_list, list_tags, count_segment_contacts) with the condition that selects each. It also states an exclusion — email filtering is not available for segments.

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