Skip to main content
Glama

modifyMessage

Adds or removes labels on one or more messages by ID, accepting a single ID or an array to apply label changes in bulk.

Instructions

Modify the labels on one or more messages. Pass a single id or an array of ids.

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": {
      "ids": "<ids>"
    },
    "name": "modifyMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesMessage ID or array of message IDs to modify
addLabelIdsNoLabel IDs to add
removeLabelIdsNoLabel IDs to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and does not meet it. It does not say that addLabelIds and removeLabelIds can be combined, whether existing labels are preserved, whether system labels (INBOX, UNREAD, TRASH) behave differently, or what authorization is required. Only the bare mutation is disclosed.

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?

Two short sentences with the action front-loaded and no filler. The second sentence is largely redundant with the schema's anyOf, but it does not hurt readability.

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?

This is a mutation tool with no annotations and no output schema, so the description should explain side effects, label semantics, and failure modes. It leaves open whether labels are additive, what happens to system labels, and whether an empty addLabelIds/removeLabelIds is valid. Too thin for the complexity.

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 100%, so all three parameters are already documented in the schema. The description's 'single id or an array of ids' merely restates the anyOf in the schema and adds no new meaning, such as whether ids are per-message or per-thread or whether add and remove are mutually exclusive. Baseline 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: 'Modify the labels on one or more messages.' An agent can tell this touches labels rather than message content or threads, which separates it from siblings like modifyText and modifyThread. It never clarifies it only adds/removes labels rather than replacing them, but the core action is clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance at all. The only sentence after the purpose, 'Pass a single id or an array of ids,' is parameter syntax, not context about when this tool is the right choice over modifyThread, batchModifyText, or trashMessage. The agent must infer selection criteria entirely.

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