Skip to main content
Glama
Thunderbird MCP by Commonpost

Thunderbird MCP by Commonpost

Search Contacts

searchContacts
Read-onlyIdempotent

Find Thunderbird contacts by email, name, or organization across address books, with pagination, and check existing entries before creating new ones to avoid duplicates.

Instructions

Find contacts in the address books MCP clients may use, by words matching email, name or organization; rows carry id (the contactId of the contact tools) and addressBookId. Search before createContact to avoid duplicates. A cut list sets hasMore and nextOffset: pass it as offset for the next page.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "searchContacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWords that must all match email, name or organization (e.g. 'acme' or '@acme.com'); '' lists all
formatNo'table' returns { contacts: { columns, rows } }
offsetNoMatches to skip; use with nextOffset
maxResultsNoMax contacts
addressBookIdNoOnly this address book (from listAddressBooks)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.25.0
    • addedInput schema / properties / addressBookId
      Added value: +{
      +  "description": "Only this address book (from listAddressBooks)",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Matches to skip; use with nextOffset",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Changed1 schema field changedv0.24.0
    • changedInput schema / properties / query / description
      Previous value: -"Words that must all match email, name or organization (e.g. 'acme' or '@acme.com')"New value: +"Words that must all match email, name or organization (e.g. 'acme' or '@acme.com'); '' lists all"
  3. Changed1 schema field changedv0.19.2
    • changedInput schema / properties / maxResults / description
      Previous value: -"Max contacts; if cut, the response has hasMore: true"New value: +"Max contacts"
  4. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is carried by structured data. The description adds genuinely beyond that by disclosing the pagination contract ('A cut list sets hasMore and nextOffset: pass it as offset') and the row contents, but says nothing about result ordering, match ranking, or truncation limits.

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, each doing distinct work: what it matches, the row shape, the pre-create check, then the paging rule. It is front-loaded and waste-free, though the opening clause 'address books MCP clients may use' is slightly convoluted and slows the read.

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?

With no output schema, the description must characterize return values, and it does so at a high level (rows with id and addressBookId, hasMore/nextOffset on truncation). For a five-parameter search tool this is close to sufficient; only match ordering and default paging behavior are left unstated.

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 the bump by explaining the offset/nextOffset loop relationship, which converts a static integer parameter into a concrete paging procedure an agent can follow.

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 description gives a specific verb ('Find contacts'), the resource, and the matching mechanism ('words matching email, name or organization'), plus the scope ('address books MCP clients may use') and the row shape. It also ties results back to the sibling family ('the contactId of the contact tools') and to listAddressBooks, so an agent can tell it apart from getContact and createContact without opening either 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 explicitly names a when-to-use workflow: 'Search before createContact to avoid duplicates', and points at listAddressBooks as the source for addressBookId. There is no explicit when-not or a contrast with the other search tool (searchMessages), so it falls short of full alternative routing.

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