Skip to main content
Glama

Get AI Chili Credit Wallet Balance

get_credit_balance
Read-onlyIdempotent

Fetch your live credit wallet balance, daily grant status, and PAYG tier state to check available credits before planning or submitting generation jobs.

Instructions

Fetch live credit wallet balance, daily grant status, and PAYG tier state via GET /v1/credits. Requires chili_sk_... API 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_credit_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoOptional AI Chili API key (chili_sk_...). Defaults to AICHILI_API_KEY env var.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, read-only, open-world call, so the bar is lower. The description still adds value by disclosing the authentication requirement (chili_sk_... key) and that the value is 'live', implying no caching or staleness, which annotations do not cover.

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?

A single tight sentence with the resource and returned data front-loaded, followed by the auth constraint. No filler, no repetition of the title.

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?

For a one-optional-parameter, no-output-schema read tool, the description supplies the endpoint, the auth expectation, and a summary of what is returned, which is the right amount of context. It stops short of mentioning rate limits or error behavior, but those are minor for a simple balance read.

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 api_key parameter is fully documented there, including the AICHILI_API_KEY env-var fallback, so the baseline is 3. The description echoes the key prefix but frames it as 'Requires', which sits slightly at odds with the schema's optional/defaulted nature without conveying new syntax or behavior.

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 names a specific verb ('Fetch') and resource ('credit wallet balance') and even enumerates the sub-fields returned (daily grant status, PAYG tier state) plus the backing endpoint GET /v1/credits. It is unmistakable against the video-generation siblings, though it does not explicitly contrast itself with any of them.

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?

Usage is implied rather than stated: an agent can infer this is the tool to call when it needs balance or tier information, but there is no explicit when-to-use, when-not-to-use, or precondition such as 'call before starting a generation to confirm funds.' The auth note is the only practical guidance offered.

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