Skip to main content
Glama

Get action usage

get_action_usage
Read-only

This billing period's action usage (for the plan's Stripe billing line items use get_subscription): actions used against the plan allowance plus the extra actions top-ups and grants add (limit, left; extra-granted is the part of extra stub granted free, and only the rest was bought, so never call a grant purchased), when the allowance resets, the prepaid balance in cents and actions, whether the plan allowance is spent or the business is out, usage by kind of work, days (this period's counted actions by SAST day, split into askstub, workflows and other; days with none are left out), and the hours saved. When sponsored is true the business is not metered, so limit, left and out? are not a real cap; when trial is true it has no paid plan yet. billedby names who bills the business: "stripe", or a partner such as "shopify" that takes the payment itself, so stub asks it for no card. trialends is the day its trial ends while it is on one, the partner's own date for a partner trial. plan-label is the plan by the name the customer sees; legacy true means a grandfathered plan whose allowance differs from the pricing page. period-topups lists this period's top-ups oldest first: at (SAST date and time), actions (what it adds at today's rate, rounded down, so they can sum to less than extra), credit-cents (what it added to the balance, not the price paid) and kind (purchase, or a grant from stub, which counts in extra but not as bought). A top-up bought after a low-balance warning does not make that warning wrong: compare the top-up's at with the time of the warning before you say a count was wrong.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, yet the description adds substantial context beyond annotations: sponsored businesses are not metered so 'limit'/'left'/'out?' are not a real cap, trial accounts have no paid plan, and 'billedby' may be a partner like Shopify that takes payment itself. It also flags an interpretive trap worth knowing (a top-up bought after a low-balance warning does not invalidate the warning; compare timestamps before calling a count wrong).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one enormous run-on sentence/paragraph with no breaks or grouping, mixing the tool's purpose with a dozen field explanations. Key routing information competes with low-level detail, and garbled tokens ('askstub') waste attention. Content is defensible given there is no output schema, but the structure is close to unusable for scanning.

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?

With no output schema and no parameters, the description must carry the entire return-value burden, and it does so thoroughly: caps, top-ups, grants, billing party, trial state, per-day action breakdown, and hours saved are all covered. Auth/rate-limit behavior is not mentioned, but for a read-only usage report that is a minor omission.

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 4. Nothing in the description could add parameter meaning, and it correctly adds none.

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 opening phrase names a specific resource and scope ('This billing period's action usage') and explicitly routes the sibling case away ('for the plan's Stripe billing line items use get_subscription'). However, the purpose statement is fused into a single run-on sentence with return-field detail, and garbled fragments ('askstub', 'the part of `extra` stub granted free') blur what is being described.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

There is one explicit routing rule: use get_subscription for Stripe billing line items. Beyond that, no guidance on when an agent should call this versus other reporting tools, and no prerequisites or exclusions. Usage is left largely implied by the resource name.

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