Skip to main content
Glama

Get database usage

helix_get_database_usage
Read-onlyIdempotent

Get hourly or daily read and write counts for one database over a time window.

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": {
      "database": "<database>"
    },
    "name": "helix_get_database_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoExclusive RFC3339 end time. Supply together with start instead of period.
startNoInclusive RFC3339 start time. Supply together with end instead of period.
bucketNohourly (the default) or daily.
periodNoA period ending now. Or give start and end instead.
databaseYesDatabase reference in cluster:<id> or tenant:<id> form.

Output Schema

NameRequiredDescriptionDefault
windowYes
bucketsYes
databaseYes
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/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 that both read and write counts are returned and that granularity is hourly or daily. It omits retention limits, default time window, and behavior for long or oversized windows, which matter for a metrics query.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no filler; the metric type (read and write counts) and granularity come first. It is arguably too terse given the parameter interplay, but nothing is wasted.

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?

An output schema exists, and all five parameters are documented in the schema, so the description does not need to explain returns. However, for a time-series metrics tool it leaves unstated the default window, maximum range, and error behavior, which are the remaining facts an agent would want before calling.

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%, so the schema already defines start/end/period/bucket/database including the period-vs-start/end exclusivity. The description restates the hourly/daily bucket and time window without adding format details, so baseline 3 applies.

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?

States a specific verb (Get) plus the exact resource (hourly/daily read and write counts) and scope (one database, a time window). That distinguishes it from aggregate siblings like helix_get_query_latency or helix_get_query_insights, though it never names an alternative explicitly.

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 statement of when to use this tool versus latency/insights/health siblings, nor any prerequisites or exclusions. The phrase 'for one database' only weakly implies a per-database scope versus multi-database reporting.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources