Skip to main content
Glama

gmailModifyEmail

Modify Gmail message labels to archive, mark read, or organize emails by adding or removing label IDs for a specified message.

Instructions

Modify Gmail labels on a message (archive, mark read, etc.).

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": {
      "message_id": "<message_id>"
    },
    "name": "gmailModifyEmail"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYes
add_label_idsNo
remove_label_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/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. It does not state that this is a mutating call, whether changes are reversible, what permissions/scopes are needed, what happens if both label arrays are omitted, or what the response looks like. Only the general intent is conveyed.

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?

A single tight sentence with the core action and concrete examples front-loaded; nothing is wasted. It is short only because content is missing, not because it is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations, no output schema, and three entirely undocumented parameters, the definition leaves out too much: label ID sourcing, add/remove interaction, and side effects. An agent could invoke it but risks passing label names instead of IDs or omitting both arrays.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely fails to. It never explains add_label_ids vs remove_label_ids semantics, that message_id is a Gmail message identifier, or that IDs (not label names) are required.

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?

Names a specific verb (modify) and resource (Gmail labels on a message), and the parenthetical 'archive, mark read' makes the effect concrete. It is distinguishable from siblings like gmailDeleteEmail and gmailReadEmail, though it doesn't clarify that these effects are achieved by adding/removing label IDs.

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?

The examples 'archive, mark read' imply intended use cases, but there is no explicit when-to-use versus alternatives, nor any prerequisite such as needing label IDs from gmailListLabels first. Usage is only inferable.

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