Skip to main content
Glama

Send a Google Chat message

send_chat_message
Destructive

Sends a message as the user in a Google Chat space, group chat or direct message (space from list_chat_spaces or the other Google Chat tools). In a space organized in threads, the message starts a new thread; reply_chat_message answers in an existing one. The message is sent immediately and cannot be unsent from Fezola (Google Chat has no drafts). accountId is required when several Google Chat accounts are connected. Returns the sent message with its space, thread and link. Fails with CHAT_WRITE_NOT_GRANTED when the account was connected read-only (the user reconnects it; get_connect_link type google_chat) and CHAT_SEND_DISABLED when the user turned sending off for that account in Fezola. With attachments, files are uploaded before the message; if one is refused (ATTACHMENT_UPLOAD_FAILED, ATTACHMENT_TOO_LARGE, ATTACHMENT_TYPE_BLOCKED), nothing is sent.

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": {
      "space": "<space>"
    },
    "name": "send_chat_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoMessage text, sent as written. Google Chat formatting: *bold*, _italic_, ~strikethrough~, `code`. Optional when attachments are given.
spaceYesSpace, group chat or DM: "spaces/AAAA", as returned by the other Google Chat tools.
accountIdNoGoogle Chat account. Optional when only one is connected.
requestIdNoOptional idempotency key. Calling again with the same requestId, text and files returns the message already sent (alreadySent: true) instead of sending it twice. Without it, the same text and files sent to the same place within 10 minutes also count as one message and return alreadySent: true; a new requestId always sends a new message.
attachmentsNoFiles to send with the message (10 max, 50 MB in total): a file you provide ({ filename, mimeType, base64 }, 700 KB each, the whole call under 1 MB) or an attachment of an email in a connected mailbox ({ fromEmail: { accountId, uid, folder, index } }; the whole email must be 15 MB or less, about 11 MB of attachments; Fezola reads it from the mailbox). Executable types blocked by Google Chat (exe, bat, js, jar, msi...) are refused. Files are uploaded first; if one fails, no message is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=true and openWorldHint=true; the description goes far beyond by disclosing that the message is sent immediately with no drafts and cannot be unsent from Fezola. It enumerates concrete failure modes (CHAT_WRITE_NOT_GRANTED with the get_connect_link remedy, CHAT_SEND_DISABLED), and specifies that attachments upload first and that a refused file means nothing is sent.

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 purpose and thread semantics, then side effects, then returns/errors, then attachments — a logical order with no filler sentences. It is dense and long, and the run of error codes could be tightened, but essentially every sentence carries decision-relevant information.

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?

With no output schema, the description still states what comes back ('the sent message with its space, thread and link') and covers side effects, auth prerequisites, and attachment failure semantics. For a 5-parameter write tool with rich but nested attachment inputs, nothing an agent needs in order to call it safely is missing.

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 the baseline is 3; the description adds real meaning beyond the schema for attachments (10 max, 50 MB total, upload-first ordering, blocked executable types) and reiterates the multi-account rule for accountId. Only the requestId idempotency behaviour is left largely to the schema, so it lands just above baseline.

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 ('Sends a message as the user in a Google Chat space, group chat or direct message') and immediately distinguishes itself from reply_chat_message by scoping itself to starting a new thread. The agent can tell exactly which of the two messaging tools to pick without opening either schema.

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 names the alternative (reply_chat_message answers in an existing thread) and the condition that selects it, plus points to list_chat_spaces for obtaining the space id. It also states the accountId requirement when multiple accounts are connected, so usage conditions are covered.

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