Skip to main content
Glama

List Mail Domains

hestia_list_mail_domains
Read-onlyIdempotent

Lists all mail domains for a HestiaCP user and returns antispam, antivirus, DKIM, and catchall flags to support discovery and audit.

Instructions

List all mail domains owned by a HestiaCP user with antispam, antivirus, DKIM, and catchall flags via v-list-mail-domains. Use when discovering mail domains for a user; prefer hestia_list_mail_accounts to list mailboxes under one domain or hestia_get_mail_domain_dkim_dns for DKIM DNS records. Returns { ok, targetId, command, data (map keyed by mail domain) }.

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>"
    },
    "name": "hestia_list_mail_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesHestiaCP account username.
targetIdNoConfigured target identifier (defaults to "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description still adds value by naming the backing command and enumerating the per-domain flags returned, though it says nothing about pagination, permissions, or behavior for a nonexistent user.

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?

Three tight sentences: purpose and scope first, then sibling routing, then return shape. No filler and nothing repeated from the schema or annotations.

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 compensates by spelling out the return envelope ({ ok, targetId, command, data } keyed by mail domain). For a two-parameter read-only list tool, an agent has everything needed to call it 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 coverage is 100% and both parameters (user, targetId) are documented in the schema itself. The description only implies the user scoping ('owned by a HestiaCP user') and adds no detail on targetId or username format, so the schema does the heavy lifting.

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 mail domains owned by a HestiaCP user') plus the exact fields returned (antispam, antivirus, DKIM, catchall) and the underlying command v-list-mail-domains. This clearly separates it from the mailbox-level and DKIM-DNS siblings.

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?

Explicitly names the condition for use ('when discovering mail domains for a user') and routes to two named alternatives with the reason for each: hestia_list_mail_accounts for mailboxes under one domain, hestia_get_mail_domain_dkim_dns for DKIM DNS records.

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