Skip to main content
Glama

fetch_inbox

Destructive

Pull new mail from the tenant's IMAP mailbox now, instead of waiting for somebody to open the app and click. Optional: email_account_id (defaults to the tenant's only mailbox), limit (newest N, default 50, max 500 — use 500 for a first pass over a mailbox that has been collecting). Mails already stored have their subject, sender, body and attachment flag refreshed; status, classification and any job or lead links are left alone. Returns fetched and refreshed counts. Gmail: folder (a label from list_mail_folders, e.g. SPAM or TRASH) fetches only that label — the default pull skips SPAM and TRASH. Mehrere Postfächer: ohne Angabe gilt das Standard-Postfach des Agenten (set_agent_mailboxes), sonst zuerst list_mailboxes.

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

Input Schema

NameRequiredDescriptionDefault
emailNoMailbox address instead of email_account_id
limitNoMaximum number of entries to return
folderNoGmail label, e.g. SPAM
email_account_idNoID of the mailbox (email account)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"ID of the mailbox (email account)"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The description adds real behavior beyond the annotations: it discloses overwrite semantics (subject, sender, body and attachment flag are refreshed, while status, classification and job/lead links are preserved) and states the return values (fetched and refreshed counts), which compensates for the missing output schema. It does not, however, explain the destructiveHint=true profile (that the refresh can overwrite previously stored field values) or any auth/rate-limit constraints on an openWorld external IMAP call, so an agent may not anticipate data loss on refreshed records.

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

Conciseness3/5

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

Content is front-loaded and every clause carries information, but it is a single run-on paragraph, and the final sentence switches to German mid-definition ('Mehrere Postfächer: ohne Angabe gilt das Standard-Postfach...'), which breaks readability for an otherwise English definition. The default/max limits would be easier to keep if split into structured lines.

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 four-optional-parameter sync tool with no output schema, the description is close to self-sufficient: it states return values, overwrite scope, folder scoping and mailbox resolution. Remaining gaps are permissions/auth, expected latency for a large first pull, and how attachments are handled short of the attachment flag.

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, but the description genuinely enriches it: limit gets a default (50), a ceiling (500) and a situational recommendation; email_account_id gets a documented fallback (the tenant's only mailbox); folder is constrained to a Gmail label sourced from list_mail_folders and given a behavioral note that the default pull skips SPAM and TRASH. The 'email' address parameter is only indirectly implied by the multilingual mailbox sentence, which is the one gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause names a specific verb and resource ('Pull new mail from the tenant's IMAP mailbox now') and adds a timing motive ('instead of waiting for somebody to open the app and click'), so an agent knows this is an on-demand sync, not a read of stored mail. It does not, however, explicitly contrast itself with the fetch-like siblings (fetch_attachments, list_mailboxes), so differentiation is by implication only.

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?

Strong operational guidance: when to trigger a pull ('now, instead of waiting'), how to size the first pass ('use 500 for a mailbox that has been collecting'), and which tool resolves a mailbox when several exist (set_agent_mailboxes, list_mailboxes). It lacks an explicit when-NOT-to-use clause, e.g. that repeated pulls are not needed once a mailbox is current, which keeps it from a 5.

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.