Skip to main content
Glama

sync_gmail

Destructive

Pull inbound Gmail replies into matching leads' timelines (list_lead_messages). Only matches to EXISTING leads (via a prior email link, else an exact leads.email match) — never creates new leads from unmatched senders. No-op if Gmail isn't connected (Integrations page). No server-side push (no cron) — call this periodically to pick up new mail. Returns { fetched, matched, skipped_unmatched, skipped_blacklisted }.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the matching algorithm (prior email link, else exact leads.email match), the never-create-leads guarantee, the no-op path, the absence of server-side push, and the blacklist skip. This is substantial behavioral context for a tool annotated destructiveHint=true and idempotentHint=false, though it doesn't explain why the operation is destructive (i.e., whether existing messages can be overwritten).

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 core action is front-loaded in the first clause, followed by matching rules, preconditions, and return shape in a logical order. It is dense but nearly every clause carries information; only the inline parenthetical about the Integrations page could be trimmed.

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 supplies the return field names (fetched, matched, skipped_unmatched, skipped_blacklisted), and it covers preconditions and matching semantics. The only gap is that 'skipped_blacklisted' is never defined, so an agent cannot fully interpret that field.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a parameterless tool applies. The description instead spends its words on scope and return shape, which is the right allocation.

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 ('Pull inbound Gmail replies into matching leads' timelines') and names the destination store, list_lead_messages. It also bounds the operation ('never creates new leads'), so an agent can distinguish it from a generic lead-creation tool at a glance.

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 clear when-to-use guidance ('call this periodically to pick up new mail') and a when-not condition (no-op if Gmail isn't connected). It does not name an explicit alternative for cases like re-syncing other channels, but the matching constraints make the intended scope unambiguous.

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.