Skip to main content
Glama

set_agent_mailboxes

DestructiveIdempotent

Set which of the tenant's mailboxes belong to an agent and which one is its default (admins and planners only). Required: agent_id, email_account_ids (ids from list_mailboxes; an empty list clears the setting). Optional: standard = one of email_account_ids (with exactly one id it is the default by itself). Afterwards fetch_inbox, list_emails and the mail-folder tools use the default when this agent acts and no email_account_id is given, list_mailboxes shows only these mailboxes to the agent, and get_agent_bootstrap lists them. It only narrows — it grants no read access the caller does not already have.

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": {
      "agent_id": "<agent_id>",
      "email_account_ids": "<email_account_ids>"
    },
    "name": "set_agent_mailboxes"
  }
}

Input Schema

NameRequiredDescriptionDefault
grundNoWhy (goes into the optimisation register, list_optimierungen)
agent_idYesAgent id from list_agents
standardNoDefault mailbox id, must be in email_account_ids
email_account_idsYesMailbox ids from list_mailboxes; [] clears

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: an empty list clears the setting, one id becomes the default automatically, and it explicitly reassures that the call 'only narrows — it grants no read access the caller does not already have.' It also documents downstream effects on fetch_inbox, list_emails, mail-folder tools, list_mailboxes and get_agent_bootstrap, which matters given destructiveHint=true. It does not state whether the write fully replaces the prior set or what failures look like.

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?

Front-loads the action and required parameters before the effects, and every clause carries information (permissions, clearing, default rule, downstream consumers). The single long sentence bundling the downstream effects is dense but not padded.

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?

There is no output schema, and the description compensates by explaining observable consequences on five other tools plus the permission-scope caveat. What is missing is only the failure/replacement semantics of the write, which is minor for a 4-parameter setter with full schema coverage and annotations.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning: email_account_ids empty means clear, and standard is validated to be one of email_account_ids with a single id implicitly becoming default. The 'grund' parameter is left entirely to the schema, which is acceptable given full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Set which of the tenant's mailboxes belong to an agent and which one is its default') plus the authorization scope. It is clearly a configuration/mutation tool on agent-to-mailbox bindings, distinguishable from siblings like list_mailboxes or set_agent_condition.

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

Usage Guidelines4/5

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

Names the audience restriction (admins and planners only), points to list_mailboxes as the id source, and explains the empty-list clearing case and the single-id default inference. It stops short of explicit when-not-to-use or naming a competing tool for reassigning mailboxes, so not a 5.

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.