Skip to main content
Glama

Get Workspace Usage

getWorkspaceUsage
Read-onlyIdempotent

Get the current usage and entitlement snapshot for your workspace: subscription tier, when the billing period ends (currentPeriodEnd), free-minute pool balances (testing/loadTesting/mapping/s2s/s2stest/compliance), purchased-pack balances, current-period consumption, and remaining LLM-enrichment tokens. Takes no arguments: the workspace is always the API key's own. Use when: someone asks how many minutes are left, what tier they are on, or whether there is enough capacity before kicking off an expensive job. Figures are seconds and tokens, never money. Read-only.

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": "getWorkspaceUsage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
poolsYes
tokensYes
workspaceIdYes
currentPeriodEndNoISO8601 timestamp when the current billing period ends. Free-tier pools reset at this time.
subscriptionTierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "Workspace identifier. Must match the workspace the api-key was issued for.",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "workspaceId"
      -]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world scope, so the description's remaining job is context, and it delivers: implicit scoping ('the workspace is always the API key's own') and units ('Figures are seconds and tokens, never money'). It does not cover snapshot freshness or caching, which for a usage/billing snapshot would be the one genuinely useful addition.

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?

Single front-loaded paragraph: identity of the resource first, enumerated contents second, usage triggers third, unit caveat and safety last. No sentence is redundant and none could be dropped without losing information.

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 prose explanation, and the tool takes no arguments, leaving little surface area to document. The description still spells out the returned categories and the unit convention, which is more than sufficient for a read-only zero-arg snapshot tool.

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?

Zero parameters, so the baseline is 4. The description proactively confirms 'Takes no arguments' and explains why (workspace derived from the API key), which prevents an agent from hunting for a workspace ID.

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?

Names a specific verb and resource ('Get the current usage and entitlement snapshot for your workspace') and then enumerates exactly what the snapshot contains: tier, currentPeriodEnd, free-minute pool balances by category, purchased packs, current-period consumption, and remaining LLM-enrichment tokens. An agent can tell this apart from narrow siblings like getWorkspacePlan or getUsageBySource without opening the 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?

The 'Use when:' clause gives three concrete triggers (minutes left, tier, capacity before an expensive job), which is well above the norm. It stops short of naming alternatives or stating when-not to use it, so it does not reach the top of the scale.

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.