Skip to main content
Glama

mail_sync

Check for new mail now and index its text (read-only on the server; nothing is marked read).

Omit account for all mailboxes. Gmail API checks run in the background and return queued. Whole messages and attachments are downloaded separately.

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

Input Schema

NameRequiredDescriptionDefault
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real context beyond the annotations: the server-side effect is read-only and nothing is marked read, background Gmail checks return 'queued' rather than blocking, and message bodies/attachments require separate fetching. This actually reconciles why readOnlyHint=false despite the operation looking like a read, since a local index is written. It stops short of covering auth requirements or how 'queued' should be polled.

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?

The purpose leads, followed by scoping, async behavior, and the download caveat; every sentence adds information. The line breaks make it slightly fragmented, but nothing is redundant.

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 tool with an async/queued execution model and a separate fetch step, the description covers the key surprises an agent would otherwise stumble on. What is missing is what the returned status looks like and whether the agent should re-call to confirm indexing finished, since there is no output schema to explain that.

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 0%, so the description carries the burden for the single 'account' parameter. 'Omit account for all mailboxes' explains the null/default semantics well, but does not clarify accepted account identifier formats (email address vs. id) or how to discover valid values from mail_accounts.

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?

States a specific verb and resource: 'Check for new mail now and index its text.' That distinguishes it from a plain listing tool, and the closing note that whole messages and attachments are downloaded separately hints at the boundary with the mail_read/mail_attachments siblings. It does not name an alternative explicitly, so full sibling differentiation is left partly implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

'Check for new mail now' implies an on-demand sync versus the background checks it mentions, and 'Omit account for all mailboxes' gives clear scoping guidance. However, it never says when to call this instead of mail_list or mail_read, nor whether repeated calls are expected or wasteful.

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.