Skip to main content
Glama

Database statistics

ws_db_stats
Read-onlyIdempotent

Retrieve usage statistics for a database by selecting the size (storage used) or cpu (query load) series.

Instructions

Usage statistics for one database. kind selects the series: size (storage used) or cpu (query load).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesWhich statistics series to return.
userIdNoAccount id, or the literal "self" for the authenticated account. Defaults to "self".self
hostingIdYesHosting id or uuid the database belongs to.
databaseIdYesDatabase id, as returned by ws_db_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful context by defining size as 'storage used' and cpu as 'query load,' but it does not disclose response shape, units, or time range.

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?

Two sentences with no filler. The core scope is front-loaded, and the `kind` explanation is concise and directly useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only stats tool, required parameters and series options are clear. However, with no output schema, the description does not mention what the returned statistics look like (units, format, or time window), leaving a moderate gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds genuine value for `kind` by clarifying that size means storage used and cpu means query load, which the schema's generic 'Which statistics series to return' does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the resource ('one database') and the data category ('usage statistics'), and it explains that `kind` selects the size or cpu series. It is distinguishable from sibling stats tools by the 'one database' scope, though it does not explicitly name alternatives.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives like ws_db_get, ws_hosting_stats, or ws_vps_stats. The phrase 'for one database' implies scope, but no exclusions, prerequisites, or alternative routing are provided.

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