Skip to main content
Glama

Get User Resource Statistics

hestia_get_user_stats
Read-onlyIdempotent

Read historical disk, bandwidth, web, mail, database, and backup usage snapshots for a HestiaCP user to analyze resource growth over time.

Instructions

Read historical disk, bandwidth, web, mail, database, and backup usage snapshots for a single HestiaCP user via v-list-user-stats. Use when analyzing resource growth over time; prefer hestia_get_user for current account limits and configuration. Returns { ok, targetId, command, data (date-keyed usage records) }.

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_get_user_stats"
  }
}

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 adds the underlying command and a return-shape sketch that the annotations do not supply. Remaining gaps are the historical retention window and whether the snapshot list is paginated or bounded.

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 short sentences, front-loaded with the purpose before the routing guidance and return shape. No filler or restatement of the tool name; every clause carries new information.

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 two-parameter read-only tool with no output schema, the definition covers purpose, scope, alternative routing, and a return-value sketch. Nothing needed to invoke it 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) carry their own descriptions, so the schema does the heavy lifting. The description only reiterates that scoping is to a single user and says 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 (read) and resource (historical usage snapshots) and enumerates the domains covered: disk, bandwidth, web, mail, database, backup. It also names the backing command (v-list-user-stats) and explicitly distinguishes itself from hestia_get_user, so an agent can separate the two without opening a schema.

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 condition ('analyzing resource growth over time') and names the alternative to prefer for the contrasting case ('current account limits and configuration' -> hestia_get_user). The selection rule is complete for the primary ambiguity an agent would face.

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