Skip to main content
Glama

People Search Contacts

people_search_contacts
Read-onlyIdempotent

Search saved Google contacts by name, email, phone, or organization prefix, or list all contacts page by page with sorting and pagination.

Instructions

Find the user's saved Google contacts whose name, email, phone or organization starts with query, or, without query, list every saved contact page by page (sort_order, page_token). A search returns at most 30 matches in one response with no paging. Returns contacts, each with resource_name (the person_name other people_ tools take; also as id), etag, name, given_name, family_name, emails and phones (each {value, type}), organizations ({name, title}) and biography; plus count, total (all saved contacts, null for a search) and next_page_token (null for a search).

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

Input Schema

NameRequiredDescriptionDefault
queryNoText matched against the start of the words in contacts' names, email addresses, phone numbers and organizations, e.g. 'jo' finds 'John Smith' but 'ohn' does not; omit it to list every saved contact, page by page.
sourcesNoWhich data each returned person carries: READ_SOURCE_TYPE_CONTACT (the saved contact, the default when omitted), READ_SOURCE_TYPE_PROFILE (the person's Google profile, merged in) and READ_SOURCE_TYPE_DOMAIN_CONTACT (the organization's shared domain contacts).
page_sizeNoContacts per response. Listing (no query): 1 to 1000, default 100. Searching: 1 to 100, default 20, and Google returns at most 30 matches.
page_tokenNoThe next_page_token of the previous listing response; omit for the first page. Listing only: a search has no further pages.
sort_orderNoOrder when listing: LAST_MODIFIED_ASCENDING (Google's default when omitted), LAST_MODIFIED_DESCENDING, FIRST_NAME_ASCENDING or LAST_NAME_ASCENDING. Not allowed with query, whose matches come in Google's relevance order.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
totalNo
contactsNo
has_moreNoWhether another page is available.
fetched_atNoRFC3339 time when this response was fetched.
next_page_tokenNoOpaque token for the next page, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and non-destructive, so the description is free to add the operational behavior that matters: a search caps at 30 matches with no paging, listing can be paged, and total is null on a search. Those are exactly the limits an agent needs to avoid assuming pagination for search results, well beyond what the hints declare.

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?

Purpose and the two modes are front-loaded in the first sentence, and the second sentence carries the search cap. The trailing return-value enumeration is dense and partly redundant with the output schema, but nothing is padded and no sentence is filler.

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 two-mode, five-parameter tool with an output schema, this covers mode selection, paging behavior, result caps, defaults and null semantics, which is everything an agent needs to call it correctly. The exhaustive field list duplicates the output schema rather than filling a gap, but no required information is missing.

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 cross-parameter meaning the schema documents only piecemeal: sort_order and page_token apply only to listing, search is uncapped-by-paging at 30 matches, and prefix matching (not substring) governs query. The rest largely restates schema text, keeping it out of the top score.

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 opening sentence states a specific verb (find/list) and resource (user's saved Google contacts) and distinguishes the two modes: prefix-match search when query is given, full paginated listing when it is omitted. An agent can tell immediately this is a read search over contacts rather than a single-contact get or a mutation, without opening the schema.

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

Usage Guidelines4/5

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

It clearly states the condition that selects each mode (with query = search, without query = list page by page) and notes that a search has no further pages, which prevents wasted pagination calls. It also cross-links to the sibling family by saying resource_name is the person_name other people_ tools take. It stops short of naming a specific alternative (e.g., people_get_contact) or stating when not to use this tool for a known person.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools