Skip to main content
Glama

What the work came to

get_usage
Read-only

This month's paid work in a workspace, by project: pages, changes and apps that passed, what was paid, what is still to be charged and what a plan covered, the plans in force and any refunds. With it, where the workspace's AI use stands (aiUse, as Settings shows it under AI & usage): the share of today's and this month's AI allowance used, when each starts again, what raises a used-up one, and each site's share of this month's AI use, as percentages; and the workspace's own AI spending limits (spendingLimits): each limit, what its day or month has spent so far, how close it is, what happens at it and when it starts again. With it, what the workspace owes that only its own payment settles (owed: a card payment its bank took back after a dispute, its amount and date, why the last try to pay was declined, and payUrl, the Billing & plan page where the owner pays it; while anything is owed, new work waits and live sites keep running). Owners and admins see amounts, limits and what is owed; other members see the work only. Paying or changing a plan happens in the CodeGene app (never here: give the person payUrl); set_ai_spending_limit sets or removes a limit.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNoOnly this project (list_projects gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond readOnlyHint and destructiveHint=false, it discloses role-based visibility, the operational consequence that owed amounts block new work while live sites keep running, and the behavior around exhausted AI allowances. These are meaningful behavioral details an agent would not get from annotations alone.

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

Conciseness3/5

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

The content is relevant but packed into a dense run-on sentence with repeated 'With it' clauses and parentheticals. It is not front-loaded around the core 'usage report' purpose, making it harder to parse than necessary, though the information itself is not wasteful.

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 a complex return set, the description does a good job explaining the categories of data returned (aiUse, spendingLimits, owed, paid work) and the permissions that apply. It is complete enough for correct use, though the exact structure of each category remains somewhat implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and both project_id and workspace_id are documented there with sourcing hints. The description implies workspace/project scoping through phrases like 'in a workspace, by project' but adds no syntax or omission behavior beyond the schema.

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 specific content: this month's paid work by project, AI usage, spending limits, and owed amounts. It distinguishes one sibling by noting set_ai_spending_limit sets limits and that payment/plan changes happen in the app, though it does not contrast with other read-oriented siblings like get_activity.

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?

It gives explicit exclusions: paying or changing a plan never happens here, and set_ai_spending_limit handles limit changes. It also states role-based visibility (owners/admins see amounts; other members see work only), but does not explicitly say when to choose this over other usage-adjacent read tools.

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