Skip to main content
Glama

gmail_message_actions

Lists available actions for a Gmail message and tells whether block, unblock, unsubscribe, or report phishing apply to it.

Instructions

List the actions a message's own menu offers (Reply all, Forward, Block "x", Report spam ...).

Read-only: tells whether gmail.block_sender / gmail.unblock_sender / gmail.unsubscribe / gmail.report_phishing apply to this message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNoRow index from gmail.list / gmail.search; omit to use the open conversation.
queryNoRun this Gmail search first and take `index` from its results.
folderNoOpen this folder/label first and take `index` from it.
stay_openNoLeave the conversation open on screen.
keep_unreadNoIf the conversation was unread, mark it unread again afterwards.
message_indexNoMessage of the thread (0 = oldest, numbering of gmail.read); default the last.
expect_subjectNoSafety check: the conversation's subject must contain this text (case-insensitive), otherwise nothing is done (not_found).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does volunteer 'Read-only' plus the downstream applicability of the block/unblock/unsubscribe/phishing tools — useful context. However, it does not disclose that the tool navigates the UI (opening a conversation, honoring stay_open/keep_unread), so the 'read-only' framing is narrower than the actual behavior, and no auth/rate/return-shape info is given.

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?

Two tight sentences: the primary purpose leads, followed by a single clarifying line on the read-only guarantee and the dependent tools. No waste or repetition.

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?

The definition covers purpose and read-only status but leaves gaps for a 7-parameter, annotation-free tool: how the UI navigation side effects work and what the returned action list looks like (no output schema) are unaddressed. Adequate but incomplete.

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 description coverage is 100% and all 7 parameters are documented in the schema (index, query, folder, message_index, stay_open, keep_unread, expect_subject). The description adds no parameter detail, so the baseline of 3 applies.

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?

States a specific verb and resource — enumerating the actions a message's own menu offers — and gives concrete examples (Reply all, Forward, Block, Report spam). It is distinguishable from action-executing siblings like gmail_block_sender because it frames itself as a query, though it never explicitly names a sibling to differentiate against.

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?

Usage is implied: call this to learn whether gmail_block_sender / gmail_unblock_sender / gmail_unsubscribe / gmail_report_phishing apply to a message. That is a clear enough trigger, but there is no explicit when-not guidance or routing to gmail_read / gmail_open for other purposes.

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

Deploy Server

Other Tools