Skip to main content
Glama

get_usage

Read-only

Retrieves actual CPU and memory usage for a project's app, with a live sample plus hourly averages and peaks for up to 14 days, so you can monitor resource consumption.

Instructions

CPU and memory the project's app actually used: live sample, then hourly averages and peaks (up to 14 days). Billing is based on the allocated size, not on this: use get_wallet for costs.

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": {
      "project_id": "<project_id>"
    },
    "name": "get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a read-only, non-open-world call, so the bar is lower; the description still adds real value by disclosing the sampling model (one live sample, then hourly aggregates) and the 14-day retention window. The billing caveat prevents a costly misreading of the numbers. It stops short of describing pagination or response shape, but an output schema exists to carry that.

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, zero filler, and the most decision-relevant fact (what is measured, at what granularity) is front-loaded before the alternative-tool pointer. The colon-based structure makes the sampling sequence easy to parse.

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

Completeness4/5

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

For a two-parameter read tool with an output schema, the description covers what the agent most needs: what is measured, the aggregation model, the retention ceiling, and the cost pitfall. The only gap is not tying 'hours' explicitly to the 14-day cap, which is a minor omission given the schema supplies the default.

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 0% for two parameters, so the description must compensate. The phrase 'up to 14 days' implicitly bounds the 'hours' parameter (max 336) and clarifies that large windows are aggregated hourly, which is genuine added meaning. However, neither 'hours' nor 'project_id' is named or explained directly, leaving the default-24 behavior undocumented in prose.

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+resource pair ('CPU and memory the project's app actually used') and adds the granularity contract: live sample, then hourly averages and peaks over up to 14 days. It also explicitly separates itself from get_wallet, so an agent can distinguish it from the cost-related sibling 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 Guidelines4/5

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

Provides clear routing guidance by naming the alternative and the condition that selects it ('Billing is based on the allocated size, not on this: use get_wallet for costs'). It does not spell out a full when-not scenario (e.g. what to use for per-deployment or historical raw metrics), but the primary cost-vs-usage confusion is pre-empted.

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