Skip to main content
Glama

search_contacts

Read-onlyIdempotent

Find people you have exchanged mail with, by name or address. Returns name, address, how many indexed messages they appear in, when they were last seen, and whether they wrote to you ("from"), you wrote to them ("to") or both. Case and diacritics are ignored, so "Novak" finds "Novák". Use it to turn "Marie" into an address before calling search_messages.

Input Schema

NameRequiredDescriptionDefault
limitNoHow many contacts to return. Defaults to 10, never more than 25.
queryYesPart of a name or an address. Every word has to match.
account_idYesId from list_mail_accounts.

Output Schema

NameRequiredDescriptionDefault
contactsYesPeople matching the query, most frequent first

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and non-open-world, so the safety profile is covered. The description adds real behavioral context beyond that: matching ignores case and diacritics, every word in the query must match, and it enumerates the returned fields. It does not mention result ordering or performance characteristics, so it is not exhaustive.

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 sentences, front-loaded with purpose, then return shape, then matching behavior, then routing. Every sentence is useful, though the field enumeration partially duplicates the output schema.

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?

Purpose, matching semantics, return shape, and sibling routing are all present; with an output schema and full param coverage, nothing an agent needs to call this correctly 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; the description earns extra by adding matching semantics not stated in the schema — diacritic/case folding and the 'every word has to match' conjunction rule. It does not restate limit/account_id, which is fine since the schema documents them well.

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 ('Find people you have exchanged mail with') plus the resource (contacts) and the exact return fields, which cleanly separates it from search_messages. An agent can identify the tool 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?

Gives an explicit routing instruction: use this to turn "Marie" into an address before calling search_messages. That names the alternative tool and the condition that selects it, leaving little to inference.

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.