Skip to main content
Glama

Qumge: Agent Capabilities & Skills

Get balance

get_balance
Read-only

The user's Qumge balance, plus what each Cap has spent this month against its monthly limit. Call this before a paid call when the user asks whether they can afford it, and after a 402 that says the balance or a limit stopped the call — it returns the top-up link to hand to the user. Needs the user's qumge key.

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

Input Schema

NameRequiredDescriptionDefault
qumge_keyNoOptional: your Qumge API key, for clients that cannot set an Authorization header. Takes precedence over the header. Never echoed back.

Output Schema

NameRequiredDescriptionDefault
capsNo
topup_urlNo
frozen_micro_usdNo
balance_micro_usdYes
available_micro_usdYes
withdrawable_micro_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "available_micro_usd": {
      +      "type": "integer"
      +    },
      +    "balance_micro_usd": {
      +      "type": "integer"
      +    },
      +    "caps": {
      +      "items": {
      +        "properties": {
      +          "monthly_limit_micro_usd": {
      +            "type": "integer"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "spent_this_month_micro_usd": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "slug",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "frozen_micro_usd": {
      +      "type": "integer"
      +    },
      +    "topup_url": {
      +      "type": "string"
      +    },
      +    "withdrawable_micro_usd": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "balance_micro_usd",
      +    "available_micro_usd",
      +    "withdrawable_micro_usd"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the description's job is context and it delivers: it discloses the auth requirement (qumge key) and that the response carries a top-up link on limit/balance failures. It stops short of pacing, caching, or freshness details, but nothing misleading is present.

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?

Two tight sentences: the first front-loads what the tool returns, the second front-loads when to call it. Every clause (affordability question, 402 trigger, top-up link) carries actionable information.

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 so return values needn't be enumerated, yet the description still names the two payload elements an agent must act on. Auth, trigger conditions, and follow-up action are all covered for a simple single-parameter read tool.

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 qumge_key parameter is fully documented in the schema, including precedence over the Authorization header and that it is never echoed. The description only restates that the key is needed, adding no syntax or precedence 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 precisely what is returned: the user's Qumge balance plus per-Cap month-to-date spend against each Cap's monthly limit. That is a specific resource with a specific composed scope, and it is clearly distinct from siblings like get_earnings or get_cap without needing to name them.

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 two concrete triggers: before a paid call when the user asks about affordability, and after a 402 indicating balance or a limit blocked the call. It also says what to do with the result (hand the top-up link to the user), so the agent knows both when to call and what to do next.

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