Skip to main content
Glama

get_balance

Check account eligibility, credits and current allowances. Get credits and allowances; optionally request a read-only generation quote. 可附带生成参数查询积分报价,不建任务。

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
quote_requestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does usefully disclose the read-only nature of the quote path and that no task is created, which is the key safety property. It says nothing about authentication or account requirements, rate limits, or what happens when the account is ineligible, so it is only partially adequate.

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 core information is front-loaded in the first sentence, but the second sentence largely restates 'credits and allowances', and the trailing Chinese clause duplicates the quote semantics already given in English. The bilingual repetition adds length without new meaning, though nothing is confusing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only balance/eligibility tool with no output schema, the description should at least characterize what comes back (balance figures, eligibility status, quote estimate). It names the concepts but not their shape or units, and the nested quote parameter's contract is left to inference. Adequate to select the tool, incomplete for calling it with a well-formed quote request.

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 0% for a nested object requiring a 'tool' enum and a free-form 'arguments' object. The description compensates partially by explaining that the parameter is an optional quote request carrying generation parameters, and the Chinese clause reinforces that it is a quote-only path. It never explains that 'tool' must be one of the generation tools or that 'arguments' should mirror that tool's parameters, so the nested structure remains undocumented.

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 a concrete verb and resource set: it checks account eligibility, credits, and current allowances, and can optionally return a read-only generation quote. It also implicitly distinguishes itself from task-creating siblings by stating that it does not create a task ('不建任务'), so an agent can tell it is a read/inspection tool. It does not name a specific sibling alternative, which keeps it short of a 5.

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

Usage Guidelines3/5

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

The phrase 'optionally request a read-only generation quote' plus 'does not create a task' implies the correct usage pattern: call this before generating to check credits or estimate cost. However, the description never explicitly says when to prefer this tool over get_task/get_result, or under what conditions the quote branch should be used. The guidance is implied rather than stated.

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