addressbook_query
Search contacts by name, email, or organization across all addressbooks. Returns matching contacts with total count.
Instructions
⭐ PREFERRED: Search and filter contacts efficiently (name, email, organization). Use for "find contacts with...", "search for email...", "contacts at company..." queries. Use instead of list_contacts when ANY filter is specified. Omit addressbook_url to search across ALL addressbooks automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of contacts to return (default 20, max 500). You get them alphabetically by name, and the response states how many matched in total. | |
| name_filter | No | Search contact names (full/given/family name). Example: "John Smith" or "Smith". At least one filter (name, email, or org) is required. | |
| email_filter | No | Search contact email addresses. Use for queries like "Gmail contacts" → "@gmail.com", "work emails" → "@company.com", or specific addresses. At least one filter (name, email, or org) is required. | |
| addressbook_url | No | Optional: Specific addressbook URL. Omit to search ALL addressbooks (recommended for "find contact X" queries). Only provide if user explicitly names an addressbook. | |
| organization_filter | No | Search contact organizations/companies. Example: "Google" or "Acme Corp". At least one filter (name, email, or org) is required. |