Skip to main content
Glama

gmail_users_messages_insert

Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message. For more information, see Create and send email messages. 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_messages_insert"
  }
}

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

A3.6/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, non-idempotent closed-world write, so the description carries real weight here. It adds two genuinely useful behavioral facts not derivable from annotations: the call bypasses most scanning/classification and it does not send mail. It still omits where the inserted message lands (labelIds/inbox vs. not), thread-creation behavior, and that a reason/context record is created.

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 operational content is front-loaded: what it does, how it differs from sending, then a docs link. The trailing Leash permission/denial boilerplate is generic and only loosely tied to this specific tool, which costs some concision but does not obscure the core message.

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?

For a mutation tool with a deep nested input schema, no output schema, and annotations covering only the safety profile, the description covers the key surprise (scanning bypass, no send) but says nothing about what is returned (the created message/thread IDs) or side effects like label application. Adequate but with clear gaps for an agent deciding how to consume the result.

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 coverage is 67%, so the schema already documents the nested `input` body and its RFC 2822/base64url `raw` field. The description only explains the reason/context pair ("Supply a concise reason and context for the user's activity record"), which restates the schema descriptions, and adds nothing about the required `body` payload shape. Baseline 3 fits.

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 and resource ("Directly inserts a message into only this user's mailbox") and anchors it to a familiar analogue (IMAP APPEND), plus a clear negative boundary ("Does not send a message"). It stops short of naming the sibling it delegates sending to (gmail_users_messages_send), so differentiation is implied rather than explicit.

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?

"Does not send a message" implicitly routes agents that want delivery to the send tool, and "bypassing most scanning and classification" hints at the niche this serves (raw/archived message injection). There is no explicit when-to-use statement and no comparison against gmail_users_messages_import or drafts.create, which overlap heavily with this operation.

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.