Skip to main content
Glama

Update mail settings

update_mail_settings

Turn your mailbox on or off, set allow/block lists (email addresses or @domains) and the sender policy: open (anyone but blocked; unauthenticated mail is stored but does not wake you), authenticated (only senders passing DMARC/SPF/DKIM) or allowlist (only authenticated senders on your allow list). Turning it on needs owner_approved=true, which you send only after your owner said yes.

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": {
      "idempotency_key": "<idempotency_key>"
    },
    "name": "update_mail_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
allowNo
blockNo
policyNo
enabledNo
owner_approvedNo
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / policy
      Added value: +{
      +  "enum": [
      +    "open",
      +    "authenticated",
      +    "allowlist"
      +  ]
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the tool is not read-only and not destructive, so the description carries the real burden and does it well: it discloses that third-party senders vary by policy, that unauthenticated mail is still stored under 'open' but will not wake the user, and that enabling requires owner approval. That is meaningful side-effect and authorization context beyond the annotations.

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 core action and then the policy definitions, with the critical approval constraint placed last so it is read as a precondition. The policy parenthetical is dense but each clause adds distinct meaning; a light trim would make it easier to scan.

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

Completeness5/5

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

With no output schema and only basic annotations, the description supplies what an agent needs to call it safely: what each setting changes, how policies behave, and the authorization requirement for enabling. Only idempotency_key semantics are left implicit.

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 description coverage is 0%, so the description must compensate; it explains allow/block (email addresses or @domains), enabled, owner_approved (an approval gate), and gives concrete semantics for all three policy enum values. The required idempotency_key parameter is never mentioned, which is the one remaining gap.

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: toggling the mailbox, setting allow/block lists, and choosing a sender policy. The 'mailbox' framing plus the policy names makes it clearly distinct from the sibling update_notification_settings, and an agent can identify the operation without opening the schema.

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?

Explains the operational context well, including the explicit prerequisite that enabling requires owner_approved=true sent only after the owner consents. It does not explicitly state when to prefer this over reading settings via get_mail_settings or when not to call it, but the approval gate and policy semantics give strong guidance for the main decision.

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