Skip to main content
Glama

Archive a thread

threads_archive
Destructive

Take one thread out of the inbox: a Gmail mailbox, whatever its provider, takes its inbox label off, and an Outlook one moves it into its archive folder. It stays in the mailbox and in search. Any other mailbox whose provider is imap moves its inbox messages into its archive folder, made as Archive where it has none, each under a new id the answer names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe threadId a search or a read answered.
mailboxYesThe mailbox's name or its email address.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
labelIdsYes
messagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only supply the safety flags (readOnlyHint=false, destructiveHint=true, openWorldHint=false); the description adds genuinely useful behavior beyond them — the thread survives in the mailbox and search, Gmail removes a label while Outlook/IMAP move messages, an Archive folder is created if absent, and new ids are returned. It does not explain why destructiveHint is set despite the data being preserved, leaving a small tension unaddressed.

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

Conciseness3/5

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

The core action is front-loaded, which is good, but the whole description is one sprawling sentence with awkward constructions ('made as Archive where it has none', 'each under a new id the answer names') that force re-reading. Provider detail is useful but could be structured as shorter clauses.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, yet the description still covers the mutation's observable effects and provider-specific variance well. An agent has enough to call it correctly; only the rationale for the destructive annotation is missing.

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% and both parameters (mailbox, id) are fully documented in the schema, including the id pattern. The description adds no parameter-level syntax or constraint detail beyond that, so the 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?

The description gives a concrete verb+resource ('Take one thread out of the inbox') and spells out the exact resulting state per provider (Gmail drops the inbox label, Outlook/IMAP move to Archive). It implicitly distinguishes itself from threads_trash by noting the thread 'stays in the mailbox and in search', but it never names a sibling explicitly.

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 only implied: an agent can infer this is the non-destructive inbox-clearing option as opposed to threads_trash or threads_modify, but the description never states when to choose it over those siblings. No prerequisites, no exclusions, no alternative named.

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.