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 account balance

balance_get
Read-onlyIdempotent

Current balance of the Hubris account the API key belongs to, in rubles.

Worth checking before a long or expensive run: requests are refused once the balance is spent. The balance can go slightly negative — one operation is allowed to overdraw it, and the next one is refused.

Two representations of the same number come back. Use balanceKopecks for arithmetic and comparisons — it is an exact integer string. Use balanceRub for display.

A key that does not show account money answers differently: moneyView is "own", balanceRub/balanceKopecks are null, and the key is instead stopped by its own spend limit — use limitRemainingKopecks (exact integer string) for arithmetic and limitRemainingRub for display; both are null when the key has no 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": "balance_get"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
moneyViewNoPresent only on a key that does not show account money: "own" — the key sees only its own limit, never the account balance.
balanceRubYesAccount balance in rubles as a decimal string, e.g. "1240.55". Negative when overdrawn. null when moneyView is "own".
balanceKopecksYesThe same balance in kopecks as an integer string; use it for arithmetic. null when moneyView is "own".
limitRemainingRubNoOnly when moneyView is "own": how much this key may still spend in its limit window, rubles; null when the key has no limit.
limitRemainingKopecksNoOnly when moneyView is "own": the same remaining limit in kopecks as an integer string; null when the key has no limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedOutput schema / properties / balanceKopecks / description
      Previous value: -"The same balance in kopecks as an integer string. Use this one for arithmetic: it is exact, while the ruble string is for display."New value: +"The same balance in kopecks as an integer string; use it for arithmetic. null when moneyView is \"own\"."
    • changedOutput schema / properties / balanceKopecks / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / balanceRub / description
      Previous value: -"Balance in rubles as a decimal string, e.g. \"1240.55\". Negative when the account is overdrawn."New value: +"Account balance in rubles as a decimal string, e.g. \"1240.55\". Negative when overdrawn. null when moneyView is \"own\"."
    • changedOutput schema / properties / balanceRub / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / limitRemainingKopecks
      Added value: +{
      +  "description": "Only when moneyView is \"own\": the same remaining limit in kopecks as an integer string; null when the key has no limit.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / limitRemainingRub
      Added value: +{
      +  "description": "Only when moneyView is \"own\": how much this key may still spend in its limit window, rubles; null when the key has no limit.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / moneyView
      Added value: +{
      +  "const": "own",
      +  "description": "Present only on a key that does not show account money: \"own\" — the key sees only its own limit, never the account balance.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "balanceKopecks": {
      +      "description": "The same balance in kopecks as an integer string. Use this one for arithmetic: it is exact, while the ruble string is for display.",
      +      "type": "string"
      +    },
      +    "balanceRub": {
      +      "description": "Balance in rubles as a decimal string, e.g. \"1240.55\". Negative when the account is overdrawn.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "balanceRub",
      +    "balanceKopecks"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing the refusal-on-empty-balance behaviour, that a single operation may overdraw into a slightly negative balance, and the divergent response shape for keys that don't show account money (moneyView='own', null balance fields, limit-based cutoff). These are exactly the runtime traits an agent cannot infer 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.

Conciseness5/5

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

Front-loads the one-line answer, then adds the pre-run warning, then the numeric-representation rule, then the edge case. Every sentence carries an operational fact; nothing repeats the annotations or the output schema.

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, yet the description still supplies the interpretation rules an agent needs (which field to compute with, which to display, and the alternate shape for limited keys). Combined with the overdraft/refusal behaviour, nothing required to call or interpret this tool is missing.

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?

There are zero input parameters, so the baseline is 4; nothing about argument meaning needs explaining. The description instead spends its detail on return-field semantics (balanceKopecks vs balanceRub, limitRemainingKopecks), which is helpful but not parameter guidance.

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?

Opens with a specific verb+resource+scope: 'Current balance of the Hubris account the API key belongs to, in rubles.' That is clearly distinguishable from siblings like usage_get (consumption history) or models_get_pricing (per-model prices), so an agent can pick it 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?

'Worth checking before a long or expensive run: requests are refused once the balance is spent' gives an explicit when-to-use trigger tied to cost. It stops short of naming an alternative tool or stating when-not-to-call, but for a zero-param read there is little else to route between.

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.