Skip to main content
Glama

Sergio by Serviche

Disconnect Gmail

disconnect_gmail
Idempotent

Disconnects the Gmail mailbox as the Gmail card's Disconnect does: stops the push watch, revokes Sergio's Google grant, deletes the stored token, and turns off a Gmail send config (any other email provider is untouched). Reconnect any time by signing in with Google again. Pass the same idempotency_key when retrying; a repeat is the same disconnect. An owner-level change: Sergio tells the owner after it is made.

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": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "disconnect_gmail"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy you are doing this, in one sentence. The owner sees it in the notice Sergio sends after the change.
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by enumerating exactly what is removed (push watch, Google grant, token, send config) and what is left alone, plus that it is an owner-level change the owner is notified about. The stated reversibility also explains why destructiveHint=false is consistent even though a token is deleted.

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?

Front-loaded with the core action and effect list, then reversibility, retry contract, and notification scope in order of importance. Dense but each clause carries information; the 'as the Gmail card's Disconnect does' framing is the only slightly expendable phrase.

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 two-parameter mutation with full annotation coverage and no output schema, the description supplies everything an agent needs: side effects, scope exclusions, reversibility, retry/idempotency behavior, and the owner-notification consequence.

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 both parameters are already documented, but the description still adds operational meaning: idempotency_key must be reused on retries because 'a repeat is the same disconnect', and reason feeds the owner's notice. This is real added value over the schema text.

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 ('Disconnects the Gmail mailbox') and immediately scopes it against siblings by naming the concrete effects (push watch, Google grant, stored token, Gmail send config) and noting 'any other email provider is untouched', which separates it from disconnect_slack/disconnect_discord.

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 context for use, states reversibility ('Reconnect any time by signing in with Google again') and the retry contract with idempotency_key. It does not explicitly say when not to use it or point at rearm_gmail_watch for watch-only problems, so it falls short of full alternative routing.

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.

Resources