Skip to main content
Glama

addressbook_query

Read-onlyIdempotent

Search and filter contacts by name, email, or organization across all addressbooks to find matching people or companies.

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.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum 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_filterNoSearch contact names (full/given/family name). Example: "John Smith" or "Smith". At least one filter (name, email, or org) is required.
email_filterNoSearch 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_urlNoOptional: Specific addressbook URL. Omit to search ALL addressbooks (recommended for "find contact X" queries). Only provide if user explicitly names an addressbook.
organization_filterNoSearch contact organizations/companies. Example: "Google" or "Acme Corp". At least one filter (name, email, or org) is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile needs no restating. The description adds genuine behavioral context beyond that: omitting addressbook_url fans out across ALL addressbooks automatically, and it flags the preferred-tool status. It stops short of describing pagination or how limit interacts with the reported total, though the schema covers those.

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?

Three short sentences, front-loaded with the preferred-tool marker and ending with the routing alternative, so the most decision-relevant information comes first. The emoji marker and quoted example phrases cost a little space but earn it by anchoring real query phrasings.

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?

For a read-only, five-parameter search with no output schema, the description covers scope, filtering, and the cross-addressbook default. Return-shape details (counts, alphabetical order, limit behavior) live in the schema rather than the description, which is acceptable, but a note on what happens when nothing matches would close the remaining gap.

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 every parameter already carries a detailed definition, including the default/max limit, alphabetical ordering and the "at least one filter required" constraint. The description only echoes the filter categories and the omit-url behavior, adding essentially no meaning beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ("Search and filter contacts") plus the three filterable fields (name, email, organization), and explicitly contrasts itself with list_contacts. An agent can distinguish it from the sibling 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 Guidelines5/5

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

Provides concrete trigger phrases ("find contacts with...", "search for email...", "contacts at company...") and a hard routing rule: use this instead of list_contacts when ANY filter is specified. It also tells the agent to omit addressbook_url for cross-addressbook searches, which is a real usage decision.

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