Skip to main content
Glama

List Database Hosts

hestia_list_database_hosts
Read-onlyIdempotent

List database hosts configured in HestiaCP to see which MariaDB, MySQL, or PostgreSQL servers are provisioned, via v-list-database-hosts. Use it to audit DB host targets before checking user databases or engine status.

Instructions

List configured MariaDB/MySQL/PostgreSQL database hosts tracked by HestiaCP via v-list-database-hosts. Use when checking which DB servers HestiaCP provisions onto; prefer hestia_list_databases for a user databases or hestia_get_db_status for live engine process state. Returns { ok, targetId, command, data (map keyed by DB host) }.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hestia_list_database_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description only needs to add context. It does so by disclosing the backing command and the exact response envelope { ok, targetId, command, data }, which is useful since no output schema exists. It stops short of noting whether hosts can be disabled or what keys the data map carries, leaving a small gap.

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 ordered as purpose, routing guidance, then return shape, with the primary function front-loaded. No filler or restatement of the tool name.

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?

For a single-parameter read-only list tool with full schema coverage, the definition supplies purpose, sibling routing, and the return envelope that would otherwise be missing because there is no output schema. Nothing an agent needs to invoke it correctly is absent.

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?

There is a single optional parameter, targetId, and schema coverage is 100% with the default ('default') already documented in the schema. The description adds no further meaning about how targetId resolves or what happens with an unknown target, so 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 configured MariaDB/MySQL/PostgreSQL database hosts') and ties it to the underlying HestiaCP command v-list-database-hosts. It also explicitly separates itself from hestia_list_databases and hestia_get_db_status, so an agent can pick it without opening other schemas.

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 a concrete use case ('checking which DB servers HestiaCP provisions onto') and names two alternatives with the conditions that select them: per-user databases vs. live engine process state. Nothing about when-not-to-use is left implicit for the realistic confusion cases.

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