Skip to main content
Glama

Get Usage This Billing Period

getWorkspaceUsageThisPeriod
Read-onlyIdempotent

Usage in the current billing period, per bucket: seconds of standard testing, load testing, mapping, AI voice experience, mission testing and compliance testing; AI tokens (all, and the Quinn, digital testing and voice analysis parts); survey SMS segments; calls. periodStart and periodEnd are the billing period, which is not the calendar month. Figures are usage, never money. Use when: someone asks how much they have used this period. Owner or billing admin only; other roles get 403. Only a person signed in to the nopaque web app can call this (the in-app assistant); an API key is refused.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getWorkspaceUsageThisPeriod"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
bucketsYes
periodEndYesEnd of the billing period (when it renews).
periodStartYesStart of the billing period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "Workspace identifier. Must be the caller's current workspace.",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "workspaceId"
      -]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With readOnly/idempotent/non-destructive already declared by annotations, the description still adds substantial context: authorization is owner or billing admin only with other roles receiving 403, and the tool is callable only from a signed-in web app session — an API key is refused. It also clarifies that the returned periodStart/periodEnd are the billing period rather than the calendar month, and that figures are usage, never money.

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?

Front-loaded with the resource and its breakdown, then the period caveat, then the use-case trigger and access constraints. The bucket enumeration is long but each item is load-bearing; the only mild weakness is that the enumeration runs as a single dense clause rather than being grouped.

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?

An output schema exists, so return values need no explanation here. The description covers what an agent needs to select and invoke it safely: scope, the period caveat, the unit of the numbers, the authorization failure mode, and the fact that API-key authentication will be rejected.

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 tool takes zero parameters, so the baseline is high. The description still earns credit by explaining the meaning of the periodStart/periodEnd values the caller will encounter (billing period, not calendar month) and by defining the semantics of each usage bucket that the response will report.

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 resource and scope: usage in the current billing period, broken out per bucket, with the buckets enumerated (standard/load/mapping/AI voice/mission/compliance testing, AI tokens and their parts, survey SMS segments, calls). It also pre-empts the most likely confusion by saying the period is the billing period, not the calendar month. It stops short of naming how it differs from getWorkspaceUsage or getUsageBySource, so sibling disambiguation is left to inference.

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?

"Use when: someone asks how much they have used this period" gives an explicit trigger condition, and the 403/caller restrictions tell the agent when the call will fail. There is no when-not guidance and no named alternative for related questions (e.g. plan limits or usage by source), so routing between siblings is only partly covered.

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.