Skip to main content
Glama

List Databases

hestia_list_databases
Read-onlyIdempotent

Lists databases owned by a HestiaCP user, showing engine type, host, charset, and disk usage. Use it to enumerate a user's databases when you need a quick inventory of what exists and how large each one is.

Instructions

List databases owned by a HestiaCP user with engine type, host, charset, and disk usage via v-list-databases. Use when enumerating a user databases; prefer hestia_list_database_hosts for configured DB servers, hestia_get_db_status for live DB process status, or hestia_db_size_breakdown (serverops) for per-table size/fragmentation analysis over SSH. Returns { ok, targetId, command, data (map keyed by database 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>"
    },
    "name": "hestia_list_databases"
  }
}

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 readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds value beyond them by naming the backing command and disclosing the return envelope, including that data is a map keyed by database name. It stops short of covering failure modes (e.g. unknown user, missing target) or result ordering.

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 sentences, zero waste: scope and payload first, then routing to alternatives, then the return shape. Each sentence carries distinct and necessary information with no 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?

There is no output schema, so the explicit return-shape sentence (ok, targetId, command, data map) fills that gap. Parameters are fully documented in the schema, so nothing an agent needs to call this correctly is missing.

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% and both parameters (user, targetId) are documented in the schema itself, so the baseline of 3 applies. The description adds only an implicit notion of ownership scoping and nothing about the targetId default behavior beyond what the schema states.

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 databases owned by a HestiaCP user'), enumerates the fields returned (engine type, host, charset, disk usage), and names the underlying command v-list-databases. It is immediately distinguishable from the sibling list tools by scope and payload.

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 clause ('enumerating a user databases') and routes three named alternatives to their own conditions: hosts for configured DB servers, get_db_status for live process state, db_size_breakdown for per-table size/fragmentation over SSH. That is exactly the when/when-not/alternative structure an agent needs.

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