Skip to main content
Glama

usage

Check Token Factory quotas and consumption before bulk calls: RPM limits, daily points used/remaining, Beijing 00:00 reset, and today/30-day/all-time/by-model breakdowns.

Instructions

查询 Token Factory 配额与用量:rpm_limit、每日 pts 上限/已用/剩余、重置时间 (北京时间 00:00)、today/last_30_days/all_time/by_model。字段名带 _usd 但实为 pts 点数,非货币、与 GPU credits 无关。大批量调用前先查剩余配额。

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": "usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_recentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does well: it reveals the rpm_limit rate cap, the daily reset at Beijing time 00:00, and warns about a misleading unit trap (_usd fields are actually pts, not currency). It does not state whether the call is read-only or how large the response is, but for a quota-read tool these gaps are minor.

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 sentences, front-loaded with the purpose, then the returned fields, then the unit caveat and the usage trigger. Every sentence adds information with no padding.

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?

Covers what the tool returns, how to interpret the units, the reset semantics, and when to call it – enough to invoke correctly for a quota-read tool with no output schema. The only hole is the undocumented include_recent parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter include_recent is never mentioned in the description, so an agent has no guidance on what it does or when to set it. The mention of 'today' is unrelated to that flag and does not compensate.

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 concrete verb and resource ('查询 Token Factory 配额与用量') and enumerates the specific values returned: rpm_limit, daily pts cap/used/remaining, reset time, and the today/last_30_days/all_time/by_model breakdowns. It also explicitly separates itself from credits_status by noting '字段名带 _usd 但实为 pts 点数,非货币、与 GPU credits 无关'.

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?

Gives a clear trigger condition: '大批量调用前先查剩余配额'. Combined with the explicit disambiguation from GPU credits, an agent knows when to reach for this tool rather than credits_status, though there are no stated exclusions or failure conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.