Skip to main content
Glama

Send a message

send_message

Send a text message to a Google Chat space as the authenticated user, with markup, threaded replies, and duplicate protection through custom message IDs.

Instructions

Sends a text message to a space AS THE AUTHENTICATED USER (their name and avatar; needs the chat.messages.create or chat.messages scope, and the user must be a member of the space). Text supports Chat markup: bold, italic, strike, code, https://url|link, <users/123> mentions. Threads: pass thread_name (from a message's thread.name) or a stable thread_key of your choosing to reply in a thread; by default a missing thread falls back to starting a new one — set reply_option="or_fail" to error instead. In non-threaded spaces the thread params are ignored by the API. message_id (must start with "client-") makes the send addressable later without storing the returned name — reuse of an id fails with ALREADY_EXISTS, which also makes accidental duplicate sends detectable. Returns the created message with name, thread.name and createTime. A send is NEVER retried after a 5xx/timeout: check with list_messages before re-sending. Cards (cardsV2) are app-auth-only — out of scope; use raw_request with a Chat-app token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe message text (up to 4096 characters; Chat markup supported).
spaceYesThe space — "spaces/<id>" or the bare id from list_spaces / a Chat URL (chat.google.com/room/<id>).
message_idNoCustom id for the message, e.g. "client-deploy-42"; must be unique per space.
thread_keyNoOpaque key of your choosing: first use starts a thread, reuse replies into it.
thread_nameNoReply into this existing thread (thread.name from get_message/list_messages).
reply_optionNoWhen targeting a thread: fallback_to_new_thread (default) starts a new thread if it doesn't exist; or_fail errors instead.
Behavior5/5

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

Beyond the annotations, the description discloses critical behavior: sends are never retried after 5xx/timeout, message_id reuse fails with ALREADY_EXISTS and can detect duplicate sends, and thread parameters are ignored in non-threaded spaces. This adds materially to the readOnly/idempotent/destructive hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every clause earns its place, covering identity, scopes, formatting, threading, idempotency, return values, retry behavior, and exclusions. It front-loads the core action and distinguishes the tool from raw_request, making the length appropriate for the tool's complexity.

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 tool with no output schema and six parameters, the description is remarkably complete: it explains return fields, failure modes, duplicate detection, threading edge cases, and when to use an alternative tool. An agent has enough context to invoke it correctly and safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema description coverage is 100%, the description adds substantial meaning: markup syntax for text, thread_name sourced from thread.name, thread_key semantics, reply_option fallback vs or_fail, client- prefix rules for message_id, and space id formats. This goes well beyond the schema fields.

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?

The description states a specific verb and resource: 'Sends a text message to a space AS THE AUTHENTICATED USER,' including identity and scope requirements. It also differentiates from sibling tools by explicitly carving out cardsV2 as app-auth-only and routing those to raw_request.

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?

The description gives explicit when-to-use and when-not-to-use guidance: required scopes, membership prerequisite, thread fallback behavior, and the instruction to check with list_messages before re-sending after a 5xx/timeout. It even names raw_request as the alternative for app-auth card sends.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-chat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server