Skip to main content
Glama

list_emails

Read-only

Mails eines Postfachs aus dem eigenen Bestand, neueste zuerst. Optional: email_account_id (Vorgabe: das einzige Postfach), folder, from (Teil der Absenderadresse), search (Betreff ODER Absender), since/until (ISO-Datum), unmatched=true (nur ohne Zuordnung), untriaged_only=true (noch nicht eingeordnet), category / priority (Einordnung aus classify_message), limit (Vorgabe 25, max 200). Jede Mail traegt ihre Einordnung: triage_category, triage_priority, triage_agent_id, triage_note, triaged_at, triage_draft_delegation_id. Liest die DATENBANK, nicht den Server — was noch nicht geholt wurde, steht nicht drin; dafuer fetch_inbox. Mehrere Postfächer: ohne Angabe gilt das Standard-Postfach des Agenten (set_agent_mailboxes), sonst zuerst list_mailboxes. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
fromNoTeil der Absenderadresse
limitNoHoechstzahl der zurueckgegebenen Eintraege
sinceNoNur Eintraege ab diesem Zeitpunkt (ISO 8601)
untilNoNur Mails bis zu diesem Datum (ISO)
folderNoNur Mails aus diesem Ordner, z.B. INBOX oder Sent
searchNoSuchbegriff (Freitext)
categoryNoOnly this triage category (exact, case-insensitive), e.g. 'Anfrage'
priorityNoOnly this triage priority
unmatchedNotrue = nur Mails ohne Zuordnung
unassignedNoSame as unmatched: only mails without person, lead or organisation — in every folder, so with folder=Sent also the sent ones. Assign them with assign_email.
untriaged_onlyNoOnly items nobody has classified yet (triaged_at is empty)
email_account_idNoPostfach-ID
needs_assignmentNoOnly mails where the sender address matched MORE THAN ONE person, so nothing was assigned on purpose — assignment_candidates lists who. These are the ones waiting for a human to pick; a suggestion nobody sees is not a suggestion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"Postfach-ID"
    • addedInput schema / properties / folder / description
      Added value: +"Nur Mails aus diesem Ordner, z.B. INBOX oder Sent"
    • addedInput schema / properties / from / description
      Added value: +"Teil der Absenderadresse"
    • addedInput schema / properties / limit / description
      Added value: +"Hoechstzahl der zurueckgegebenen Eintraege"
    • addedInput schema / properties / search / description
      Added value: +"Suchbegriff (Freitext)"
    • addedInput schema / properties / since / description
      Added value: +"Nur Eintraege ab diesem Zeitpunkt (ISO 8601)"
    • addedInput schema / properties / unmatched / description
      Added value: +"true = nur Mails ohne Zuordnung"
    • addedInput schema / properties / until / description
      Added value: +"Nur Mails bis zu diesem Datum (ISO)"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false. The description adds behavior the agent cannot get elsewhere: results are a stale view of the local database rather than the live server, the default mailbox is resolved implicitly, and the default/maximum result limit is spelled out. It also enumerates the triage fields returned with each mail, compensating for the missing output schema.

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?

Purpose and ordering are front-loaded within the first clause, then filters, then the DB-vs-server caveat and mailbox resolution. Every sentence carries information, but the middle part is a dense comma/semicolon run that is harder to scan than a short bulleted filter list would be.

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?

For a 13-parameter, zero-required read tool with no output schema, the definition covers filter semantics, defaults, result ordering, return field names and the multi-mailbox resolution path. Nothing an agent needs in order to call it correctly and interpret the results is left implicit.

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 would be 3; the description still earns above that by adding defaults and matching semantics absent from the schema (limit default 25 / max 200, email_account_id defaulting to the single mailbox, search matching subject OR sender). Two filters (unassigned, needs_assignment) are left to the schema alone, which is acceptable given full coverage.

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 concrete verb and resource ('Mails eines Postfachs'), the source scope ('aus dem eigenen Bestand') and the ordering ('neueste zuerst'). It also names the sibling it is not — 'Liest die DATENBANK, nicht den Server ... dafuer fetch_inbox' — so an agent can separate it from fetch_inbox 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 Guidelines5/5

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

Explicit routing rules: use fetch_inbox for anything not yet retrieved, use list_mailboxes first when several mailboxes exist, otherwise the agent's default mailbox applies (set_agent_mailboxes). Both the when-to-use and the when-to-use-something-else conditions are stated.

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.