Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

Extract contacts

extract_contacts
Read-only

Extract unique email contacts from recent headers, sorted by frequency, to identify frequent correspondents or build an address book.

Instructions

Extract unique contacts from recent email headers. Returns contacts sorted by frequency (most frequent first). Useful for finding frequent correspondents or building an address book.

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of recent emails to scan (default: 100, max: 500)
accountYesAccount name from list_accounts
mailboxNoMailbox to scan (default: INBOX)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the read-only, non-destructive safety profile, so the description's job is to add operational context — and it does: results are de-duplicated and sorted by frequency descending, drawn from recent email headers. It omits how contacts are identified (name vs. address) and any result-size behavior, which keeps it out of the 5 band.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the core action front-loaded and the return-ordering detail placed second. Every sentence earns its place.

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 no-output-schema read tool with full annotation and schema coverage, the description supplies the essential missing pieces: output ordering, de-duplication, and the source of contacts. A note on whether contacts include display names, or how many results to expect for a given limit, would fully close the 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%, including defaults and bounds for limit, account, and mailbox, so the schema carries the parameter burden. The description only implies the 'recent' window that limit controls, adding no syntax or format detail beyond the schema — the correct baseline is 3.

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 ('Extract unique contacts from recent email headers'), and the uniqueness/recency scope distinguishes it from every sibling in the list, none of which touches contact extraction. An agent can immediately tell what this does.

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?

Gives a clear use context ('finding frequent correspondents or building an address book'), which tells the agent when this tool is the right pick. It stops short of naming any alternative or a when-not condition, so it doesn't reach the top band.

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