Skip to main content
Glama

Get Runzumi compute usage and costs

get_usage
Read-onlyIdempotent

Use this to get Runzumi compute usage and cost for the complete authorized workspace. Omit repositoryId for all accessible repositories, or supply it for one repository. One workspace call covers every accessible repository; dashboard previews are partial. Returns one row for each of the last 31 days: day, vcpuSeconds (billed vCPU-seconds, 18 per wall second on a 16 vCPU runner), costUnits and jobs. costUnits: 3000000 units = 1 USD. Per-job cost is not included in this daily usage response.

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

Input Schema

NameRequiredDescriptionDefault
workspaceIdYesRunzumi workspace ID from list_workspaces.
repositoryIdNoOmit for all repositories you can access in the workspace; supply an ID to narrow to one repository.

Output Schema

NameRequiredDescriptionDefault
dataYes
demoNo
appUrlYes
observedAtYes
completenessYes
compatibilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / compatibility / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contractVersion": {
      -        "const": "legacy",
      -        "type": "string"
      -      },
      -      "diagnosticsAvailable": {
      -        "const": false,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "contractVersion",
      -      "diagnosticsAvailable"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "contractVersion": {
      -        "const": "0.1.4",
      -        "type": "string"
      -      },
      -      "diagnosticsAvailable": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "contractVersion",
      -      "diagnosticsAvailable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contractVersion": {
      +        "const": "legacy",
      +        "type": "string"
      +      },
      +      "diagnosticsAvailable": {
      +        "const": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "contractVersion",
      +      "diagnosticsAvailable"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "contractVersion": {
      +        "enum": [
      +          "0.1.6",
      +          "0.1.4"
      +        ],
      +        "type": "string"
      +      },
      +      "diagnosticsAvailable": {
      +        "const": true,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "contractVersion",
      +      "diagnosticsAvailable"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare this as a read-only, idempotent, closed-world call, and the description adds the operational facts an agent actually needs: a fixed 31-day row-per-day window, the vCPU-seconds billing multiplier (18 per wall second on a 16 vCPU runner), the costUnits-to-USD conversion, and the explicit gap that per-job cost is not included.

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?

Front-loads purpose and the repositoryId decision, then spends remaining sentences only on unit semantics and output shape. Every clause carries information an agent would otherwise have to guess; nothing is redundant padding.

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 tool with annotations and an output schema, this covers all decision-relevant ground: scope, alternative routing, time window, units, billing math, and a stated exclusion. The only moderately redundant part is the row-field list, which the output schema already carries.

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?

The schema is fully documented (100% coverage), so the baseline is 3; the description goes slightly further by framing repositoryId as an aggregation scope where omission yields workspace-wide totals in a single call rather than a per-repository fan-out. It adds little on workspaceId beyond restating provenance from list_workspaces, keeping it short of a 5.

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 ("get Runzumi compute usage and cost") and pins the scope to the complete authorized workspace. It also differentiates itself from the partial dashboard preview, so an agent can pick it over get_dashboard 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 decision rule for the only real choice available: omit repositoryId for all accessible repositories, or supply it to narrow to one. It further warns that "One workspace call covers every accessible repository; dashboard previews are partial," routing the agent away from the dashboard for authoritative numbers.

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