Skip to main content
Glama
Google Messages MCP

Google Messages MCP

by ilakskill

Pair Google Messages (QR)

gmsg_pair

Pair the server's browser profile with your phone via QR code or manual Google sign-in, and wait for pairing to complete.

Instructions

Pair this server's browser profile with the phone (needs the user). method "auto" (default): opens a VISIBLE browser on the pairing page; if Google offers a QR code it turns on "Remember this computer", saves the QR to ~/.google-messages-mcp/qr.png and returns it as an image (scan: Messages app > profile picture > Device pairing > QR code scanner). If no QR is offered (current Google behaviour: Google-account sign-in only), it opens a plain non-automated browser window on the same profile for the user to sign in by hand and approve on the phone; the server detects completion and closes it. Waits up to wait_seconds (default 120); wait_seconds=0 returns right away (then call gmsg_pair again to keep waiting, or gmsg_status check=true). Relay the returned instructions to the user.

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

Input Schema

NameRequiredDescriptionDefault
methodNoauto (default) | qr (QR page only) | signin (manual Google sign-in window) | cancel (close an open sign-in window).
wait_secondsNoSeconds to wait for pairing. Default 120; 0 = return right away.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so: it discloses the visible browser launch, the exact QR file location written, the image return, the non-automated fallback window, and that the server detects completion and closes it. It also states the presence requirement and blocking duration, which are the key behavioral risks for this tool.

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-loads the core action and the user requirement, then branches into method behavior. Dense and largely earning its length, though the inline scan-navigation chain and repeated default/return phrasing make it run long for a single paragraph.

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 and no annotations, the description does the work of explaining returns (QR image, relayed instructions) and side effects (browser windows, file written). It omits what is returned on timeout or failure and whether a partially paired profile persists, which matters for a stateful pairing tool.

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 baseline is 3, but the description adds meaning beyond the schema by spelling out what 'auto' actually does in both branches (QR offered vs sign-in only) rather than just naming the enum. wait_seconds semantics are largely restated from the schema, hence not a 5.

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 — pairing this server's browser profile with the phone — and immediately flags that it requires the user. That distinguishes it cleanly from siblings like gmsg_status or the messaging tools, which do not open a browser or need human interaction.

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

Usage Guidelines5/5

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

Explicitly explains what each method path does and when it applies (auto vs QR-only vs manual sign-in vs cancel), and gives concrete re-entry guidance: when wait_seconds=0, call gmsg_pair again or use gmsg_status check=true. It also states the precondition (user present) and the manual scan path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.