Skip to main content
Glama

Credit balance

trendsfast_credit_balance
Read-onlyIdempotent

Free: the REST/MCP credit balance. available = free (sign-up) + monthly (the month's free and plan credits) + prepaid + granted (added by hand); each lot names its figure. Reservations and pause.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / properties / data / properties / accountId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedOutput schema / properties / data / properties / lots / items / properties / bucket
      Added value: +{
      +  "enum": [
      +    "free",
      +    "monthly",
      +    "prepaid",
      +    "granted"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / properties / lots / items / properties / expiresAt / anyOf
      Previous value: -[
      -  {
      -    "format": "date-time",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date-time",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / data / properties / lots / items / properties / id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / properties / data / properties / lots / items / required
      Previous value: -[
      -  "id",
      -  "kind",
      -  "total",
      -  "consumed",
      -  "reserved",
      -  "revoked",
      -  "available",
      -  "expiresAt"
      -]New value: +[
      +  "id",
      +  "kind",
      +  "bucket",
      +  "total",
      +  "consumed",
      +  "reserved",
      +  "revoked",
      +  "available",
      +  "expiresAt"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / granted
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "version",
      -  "accountId",
      -  "available",
      -  "free",
      -  "monthly",
      -  "prepaid",
      -  "reserved",
      -  "consumed",
      -  "debt",
      -  "paused",
      -  "lots"
      -]New value: +[
      +  "version",
      +  "accountId",
      +  "available",
      +  "granted",
      +  "free",
      +  "monthly",
      +  "prepaid",
      +  "reserved",
      +  "consumed",
      +  "debt",
      +  "paused",
      +  "lots"
      +]
  3. Changed3 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / data / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / data / properties / lots / items / additionalProperties
      Removed value: -false
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful structure about how 'available' is composed and that each lot is named, which annotation data does not provide. However, 'Reservations and pause.' is an unresolved fragment – it never says whether reserved or paused credits are excluded from 'available' or merely reported separately, which is precisely the behavioral detail an agent needs.

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?

It is short and the balance formula is front-loaded, which is good. But the telegraphic style – 'Free:' as a sentence opener and 'Reservations and pause.' as a trailing noun phrase – costs clarity without saving meaningful space; both fragments would need one more clause to be actionable.

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?

An output schema exists, so return-shape explanation is not owed, and the description helpfully explains the semantics of the 'available' figure. Missing, for a tool whose whole output is monetary state: whether the balance is account- or key-scoped, whether it is live or cached, and what 'reservations' and 'pause' do to the numbers. Adequate but with clear gaps.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The schema is correspondingly empty with additionalProperties=false.

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 resource – the REST/MCP credit balance – and decomposes it into free, monthly, prepaid, and granted lots, so an agent knows exactly what figure it retrieves. It does not name or differentiate against siblings, but none of the listed siblings (trend-discovery tools) overlap with a balance read, so the risk of confusion is low. The leading fragment 'Free:' is awkward, but the intent is still recoverable.

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?

Use is only implied: an agent reasons that this is the tool to call before or after spending credits. There is no explicit when-to-use statement, no prerequisites (e.g., authentication or account scope), and no mention of any alternative for credit-related questions. The dangling phrase 'Reservations and pause.' gestures at a usage nuance without explaining it.

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