Skip to main content
Glama
This connector has been deprecated

This connector is a duplicate. Use Hubris instead — same endpoint (https://api.hubris.pw/mcp), but with ownership verified, OAuth, all five tools inspected and a quality score.

Get spending for a period

usage_get
Read-onlyIdempotent

What this connection has spent over a period: requests, tokens, cache savings and the total in rubles. Same as GET /v1/usage. With an API key that is the key's spending; connected through OAuth, it is the spending of the whole app connection over the period, not just of the current hourly token.

Use it to report what a run cost, to check spending against a budget, or to see the charge of tools that do not return their own price (image_generate, speech_create). balance_get shows what is left on the account.

Free to call: it only reads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoPeriod: "today", "24h" (default), "7d", "30d" or "mtd" — month to date. All times in UTC.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
by_keyNo
objectYes
periodYes
totalsYes
bucketsYes
by_modelNo
granularityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real value beyond that: the scoping semantics under API-key vs OAuth auth (key spend vs whole app-connection spend, not just the current hourly token) and the fact that calls are free. It stops short of rate limits or result shape, but the output schema exists.

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?

Three short paragraphs, front-loaded with what is returned, then when to use it, then the cost/safety note. Every sentence carries distinct information (return shape, auth scoping, use cases, sibling routing, free to call) with no repetition.

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?

With an output schema present, return values need no description, and the remaining gaps an agent would care about (auth-dependent spending scope, cost of the call, budget/account alternatives) are all covered. Nothing needed to call it correctly is missing.

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% and the single period enum is fully documented in the schema, including the '24h' default and UTC note. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource (what this connection has spent over a period) and enumerates the returned components: requests, tokens, cache savings, total in rubles. It also names the sibling it is not by pointing to balance_get for remaining balance, so the agent can distinguish it without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit use cases (report what a run cost, check against a budget, price tools that do not return their own cost such as image_generate and speech_create) and routes the balance question to balance_get. Nothing about when to select this tool is left to inference.

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.