Skip to main content
Glama

Manage Inbox

manage_inbox

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe operation to perform. One of: - 'list_labels': List available labels (Gmail) or categories (Outlook). - 'apply_label': Apply a label/category to emails. Creates if it doesn't exist. Requires email_ids and label_name. - 'remove_label': Remove a label/category from emails. Requires email_ids and label_name. - 'archive': Archive emails (removes from inbox, keeps in account). Requires email_ids. - 'mark_read': Mark emails as read. Requires email_ids. - 'unsubscribe': Unsubscribe from a mailing list via List-Unsubscribe header. Requires email_ids (one email). ALWAYS confirm with the user before calling this. - 'search_by_label': Search emails by label (Gmail) or category (Outlook). Requires label_name. Returns matching emails directly from the provider API.
mailboxNoEmail address of a connected mailbox. Optional — when not given and email_ids are present, the mailbox is inferred from the email row's connected_email. When neither is available and the user has multiple mailboxes, ask which to use.
providerNoWhich email account to use ('outlook' or 'gmail'). Only needed if the user has both connected and no email_ids are provided.
email_idsNoList of email IDs from search_emails results.
label_nameNoLabel name for apply_label, remove_label, or search_by_label actions.
as_teammateNoAct on a consented teammate's inbox instead of your own — pass their email. Every action (label, archive, mark read, unsubscribe) runs against their mailbox. Gated on that teammate's act-on-behalf setting (stricter than conversation sharing); a teammate who hasn't granted it is rejected. Omit for your own inbox.
max_resultsNoMaximum number of emails to return for search_by_label (default 20, max 50).
exclusive_labelsNoFor apply_label only. A set of mutually exclusive labels (e.g. inbox organization categories). When provided, applying a label automatically removes any other exclusive_labels from older messages in the same thread. This keeps one label per thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations indicate the tool is not read-only and not destructive, and the description's action list conveys that it mutates mailbox state. It does not disclose side-effect details in the description itself, such as auto-creating labels, archive removing emails from the inbox but keeping them in the account, or the List-Unsubscribe side effect; those details live only in the schema, so the description adds partial behavioral context.

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?

The description is a single front-loaded sentence enumerating key capabilities plus a short return note, with no filler or redundancy. It could be slightly more specific by replacing the generic 'Manage' verb, but it is appropriately sized and easy to scan.

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?

For a tool with seven actions and eight parameters, the top-level description is thin, and the return contract ('Dict with action-specific results') is vague. The input-schema action descriptions fill most invocation gaps, but with no output schema, per-action result shapes are never explained, making the definition adequate rather than complete.

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 the action enum includes detailed per-action requirements, so the structured fields already document all eight parameters thoroughly. The top-level description adds no parameter-level meaning, so the baseline score of 3 is appropriate.

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 states a verb ('Manage') plus a resource ('emails in the user's inbox') and lists the major supported operations: labeling, archiving, marking as read, and unsubscribing. This makes it identifiable as an inbox-mutation tool rather than a read/search tool. It is not a 5 because 'Manage' is broad and it does not explicitly differentiate itself from email siblings like send_email, search_emails, or get_emails.

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 through the action enum and parameter descriptions, which specify required arguments per action and call out that unsubscribe requires user confirmation. However, the top-level description gives no explicit guidance on when to prefer this tool over email read/search/send alternatives, nor does it state exclusions or when not to use it.

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.

Resources