Skip to main content
Glama

gmail_users_watch

Destructive

Set up or update a push notification watch on the given user mailbox. For more information, see Configure push notifications in Gmail API. Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "gmail_users_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true, openWorld=true, idempotent=false, so the agent knows this mutates external state. The description adds that the call may require an account connection or permission change in Leash and that explanations do not grant permission, which is useful operational context. It omits the behavior that matters most for a watch: that an existing watch is replaced, that the watch expires and must be renewed, and what authorization the caller needs on the Pub/Sub topic beyond what the schema states. 'Set up or update' also sits slightly at odds with idempotentHint=false, though not enough to be a contradiction.

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 purpose is front-loaded in the first sentence and the link is kept to one clause. The middle sentence about reason/context is essentially duplicated by the schema, and the trailing permission/Leash boilerplate is generic rather than tool-specific, so a couple of sentences do not fully earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 is the only place an agent could learn that the response carries an expiration and historyId, and it does not say so. Given the tool is a destructive-flagged state mutation requiring a pre-existing Pub/Sub topic, it covers prerequisites reasonably but leaves the renewal lifecycle and return behavior unexplained.

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 67% and the nested body already documents topicName (must pre-exist with gmail publish permission), labelIds, and the deprecated labelFilterAction vs labelFilterBehavior precedence. The description adds no parameter-level meaning; its only instruction, to supply a concise reason and context, restates the schema's own descriptions for those two fields.

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 description names a specific verb+resource: 'Set up or update a push notification watch on the given user mailbox.' An agent can tell this is the Gmail mailbox watch rather than a message read or label operation. It does not, however, distinguish itself from the sibling watch tools (drive/calendar) or from gmail_users_history_list, which is the polling-based alternative for the same class of problem.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance. The reference link and the note about access guidance imply prerequisites, but nothing tells the agent when a watch is preferable to history_list or messages_list, nor whether calling it twice replaces the prior watch. The only usage instruction is procedural boilerplate about not bypassing denials.

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.