Skip to main content
Glama

Get usage

get_usage
Read-onlyIdempotent

This connection’s ColorCraft activity for the last N days (default 7): calls by tool, errors, and pages spent through assistants, plus the pages credited to the account, by source and with when each was added (purchases, plan grants, a trial, one-time bonuses such as a first book or first cover, and pages added by ColorCraft), so a balance change can be reconciled. Use it to stay inside a budget before running another loop. Free.

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
daysNoHow many days back (default 7, max 90).

Output Schema

NameRequiredDescriptionDefault
daysYes
callsYesEvery tool call this connection made in the window, however many.
errorsYesCalls that did not work (any outcome but ok, accepted or replayed), every unknown_tool call included.
by_toolYes
creditsYesEach credit in these days, newest first (at most 50; pages_credited and credits_by_source count them all).
pages_spentYesPages of balance charged through this connection.
pages_creditedYesPages added to the whole account’s balance in these days, from every source in credits_by_source. Not pages handed back when a hold on the balance was not used up (a failed cover render, say), which were never in pages_spent. A balance can fall by less than pages_spent because of these credits.
credits_by_sourceYespages_credited split by where the pages came from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds genuinely new behavioral context: the call is 'Free' (consumes no credits, which matters before a metered loop) and the payload is designed so a balance change can be reconciled. Return shape details are left to the output schema, appropriately.

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 resource is front-loaded, but the middle of the sentence collapses into a long chain of qualifiers — 'by source and with when each was added (purchases, plan grants, a trial, one-time bonuses such as a first book or first cover, and pages added by ColorCraft)'. That enumeration is heavier than an agent needs to decide whether to call the tool.

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 one fully documented parameter, rich annotations, and an output schema covering the return shape, the definition supplies what an agent needs: what it reports, when to reach for it, and that it is free. Only the absence of any pagination or volume expectation keeps it from full marks, and that is minor for a fixed-window usage report.

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 coverage is 100% for the single optional 'days' parameter (default 7, max 90), so the schema already carries the semantics. The description restates 'last N days (default 7)' without adding format or interpretation beyond it. Baseline 3 applies when the schema does the work.

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 names a specific resource (this connection's ColorCraft usage activity) and enumerates its contents — tool calls, errors, pages spent through assistants, and page credits by source. It is immediately distinguishable from account/plan/job readers. It stops short of naming a sibling such as get_plan or get_account, so the separation is inferred rather than stated.

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 it to stay inside a budget before running another loop' gives a concrete triggering situation rather than a vague hint. There is no explicit when-not guidance or named alternative for cost-vs-quota questions, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources