Skip to main content
Glama

Get boat usage

get_sandbox_usage
Read-onlyIdempotent

Retrieve a sandbox's billable machine time and cost so you can bill users per sandbox. Use since and until to calculate usage for a specific billing period.

Instructions

Get boat usage. Machine time one sandbox consumed, and what it costs, so you can bill your own users per sandbox. Same meter as GET /limits: billable seconds with the sandbox type's multiplier applied, paused past a refused stop, never counting time stopped. Narrow it to a billing period with since and until; a period boundary that falls inside a running stretch splits that stretch pro rata. Works while the sandbox runs and after it stops.

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "get_sandbox_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoCount from this time, ISO 8601 or Unix epoch seconds. Default is the sandbox's creation.
untilNoCount up to this time, ISO 8601 or Unix epoch seconds. Default is now.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the meter's semantics in detail: billable seconds with the sandbox type's multiplier applied, time paused past a refused stop counted, time stopped never counted, and pro-rata splitting at period boundaries. These are non-obvious behavioral traits an agent could not derive from annotations or schema.

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?

Four dense sentences, front-loaded with the core purpose before the meter semantics and period-narrowing guidance. The opening 'Get boat usage' mildly restates the title and the 'boat' wording is odd, but otherwise there is little waste.

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 read-only, three-parameter tool with full schema coverage and annotations covering safety, the description supplies the essential semantics plus what the result represents (time consumed and cost). It does not detail the response structure or whether cost is a total or per-unit figure, a minor gap given no output schema.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: `since`/`until` define a billing period and a boundary falling inside a running stretch splits it pro rata. That pro-rata behavior is not in the schema and directly affects how the agent should interpret and set the parameters.

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 states a specific verb and resource: machine time consumed by one sandbox plus its cost. It clarifies the billing intent ('so you can bill your own users per sandbox') and relates the meter to `GET /limits`, but it never explicitly contrasts with sibling tools like get_sandbox or get_limits, so the differentiation is implicit rather than spelled out.

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?

The use case is clearly stated (per-sandbox billing for your own users), and the description tells the agent how to narrow the measurement to a billing period via `since` and `until`, plus that it works both while running and after stopping. There is no explicit when-not guidance or named alternative tool, which keeps it below a 5.

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