Skip to main content
Glama

get_balance

Check remaining scan credits or quota for your SCANNER_API_KEY before running scans. Read-only lookup that never charges, so you can monitor available usage.

Instructions

Return remaining scan credits/quota for SCANNER_API_KEY. Read-only: never charges.

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

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does state the two behaviors that matter for a billing-adjacent tool: it is read-only and never charges. It stops short of noting anything about caching, rate limits, or whether the balance is cached/stale.

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 short sentences with zero waste, the purpose front-loaded and the safety guarantee immediately after it. Every clause earns its place.

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?

A zero-parameter tool with an output schema, so return values need no explanation, and the description covers purpose plus the read-only guarantee. The only unaddressed element is guidance on acting on a depleted balance, which is minor at this complexity.

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 zero parameters, so there is no parameter meaning to convey; the description correctly spends no words on inputs. The only input-adjacent detail, the key the balance is scoped to, is already covered.

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?

States a specific verb and resource ('Return remaining scan credits/quota') and scopes it to SCANNER_API_KEY, so an agent knows exactly what is retrieved. It does not explicitly differentiate itself from the sibling get_pricing, which a reader could conceivably confuse with quota/credit information.

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 only implied: a reader infers this is a pre-scan check on remaining quota. There is no explicit statement of when to call it versus get_pricing or scan_store, and no mention of what to do when the balance is zero.

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

Deploy Server

Other Tools