Skip to main content
Glama

List Mail Accounts

hestia_list_mail_accounts
Read-onlyIdempotent

List all mailboxes in a HestiaCP mail domain with quotas, forward and autoreply flags, and status. Use it to browse every account on a domain before inspecting a single mailbox.

Instructions

List all mailboxes in a HestiaCP mail domain with quotas, forward/autoreply flags, and status via v-list-mail-accounts (MD5 password hashes are automatically redacted). Use when browsing all accounts on a mail domain; prefer hestia_get_mail_account for full alias/quota/forward details of one mailbox or hestia_mail_forward_audit (toolkit) for forward policy compliance. Returns { ok, targetId, command, data (map keyed by mailbox name) }.

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": {
      "user": "<user>",
      "domain": "<domain>"
    },
    "name": "hestia_list_mail_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesHestiaCP account username.
domainYesDomain name owned by the user.
targetIdNoConfigured target identifier (defaults to "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, but the description adds real behavioral context beyond them: the exact backend command, and that MD5 password hashes are automatically redacted, which tells the agent the output is safe to surface. It stops short of noting absence of pagination or result-size limits, so not a 5.

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?

Three tight sentences, front-loaded with the purpose, then routing, then return shape — no filler. The parenthetical command reference and return-type notation are dense but each earns its place for an agent building a call.

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, the description supplies the return shape ({ ok, targetId, command, data keyed by mailbox name }) plus the field contents and redaction behavior. Combined with full schema coverage and annotations, an agent has everything needed to call and interpret this tool correctly.

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%, so user, domain, and targetId are already fully documented in the input schema. The description only implies domain scoping ('in a HestiaCP mail domain') without adding format, default, or constraint detail beyond what the schema states, so the baseline 3 applies.

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 ('List all mailboxes in a HestiaCP mail domain') and enumerates exactly which fields come back (quotas, forward/autoreply flags, status). It also names the underlying command (v-list-mail-accounts), so the agent knows precisely what is being retrieved and can distinguish it from hestia_get_mail_account.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('browsing all accounts on a mail domain') and names two concrete alternatives with the conditions that select them: hestia_get_mail_account for single-mailbox details and hestia_mail_forward_audit for forward policy compliance. Routing is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.