Skip to main content
Glama

Update IMAP mailbox settings

update_imap_account
Idempotent

Update an IMAP mailbox's connection settings. Only provided fields change; a blank password keeps the stored one. The settings are tested before saving (400 if they do not connect, or if the account is not IMAP), and a successful save sets the account CONNECTED and clears its last error. Only whoever connected the mailbox, or an admin, may change it. Returns the updated account.

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": {
      "id": "<id>"
    },
    "name": "update_imap_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEmail account id (UUID from list_email_accounts).
hostNoNew IMAP server hostname; omit to keep.
portNoNew IMAP port; omit to keep.
secureNotrue for TLS, false for a plain connection; omit to keep.
passwordNoNew IMAP password; omit or leave blank to keep the stored one.
smtpHostNoNew SMTP server hostname; omit to keep.
smtpPortNoNew SMTP port; omit to keep.
usernameNoNew IMAP login username; omit to keep.
displayNameNoNew label for the mailbox; omit to keep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing a pre-save connectivity test with a 400 failure mode, the side effects of a successful save (status set to CONNECTED, last error cleared), the authorization rule, and the return value. These are exactly the mutation behaviors an agent needs to know before calling.

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

Conciseness5/5

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

Five short sentences, front-loaded with purpose, then update semantics, validation behavior, authorization, and return value. No sentence is redundant with another and nothing is buried mid-paragraph.

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?

Covers the mutation's failure modes, side effects, permissions, and return value, and all nine parameters are documented in the schema. The absence of an output schema is mitigated by stating that the updated account is returned, though the shape of that account is unspecified.

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, and the description still adds a cross-cutting semantic rule ('only provided fields change') that governs all nine parameters at once rather than repeating per-field text. This makes partial-update intent unambiguous.

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 ('Update an IMAP mailbox's connection settings'), which clearly separates it from connect/delete operations. However, it never names the closest sibling (update_email_account) or explains how account-level settings differ, so differentiation is inferred rather than stated.

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?

Gives clear operational context: only supplied fields change, a blank password preserves the stored credential, and the caller must be the connector or an admin. It stops short of explicit routing guidance, e.g. when to use this versus connect_imap_account or update_email_account.

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