Skip to main content
Glama

Get Balance

balance
Read-only

What the Desearch account behind this API key can still spend, in US dollars: { balance_usd, currency }. Free, and not counted as usage. It already subtracts charges from the last minute and shows top-ups (card, TAO, Gamma) as soon as they are credited. A paid tool the balance cannot cover fails with 'HTTP 402: Insufficient balance'. Check it before starting a large People Search, Company Search, or monitor.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so the description's added context is what counts here. It adds freshness semantics (charges from the last minute are already subtracted, top-ups via card, TAO, or Gamma appear immediately) and the failure mode other tools exhibit: 'HTTP 402: Insufficient balance'. The cost transparency explains the behavior without needing the annotations.

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 sentences, each earning its place: what it returns, then cost and freshness, then the failure mode and when to call it. The main purpose is front-loaded, and there is no filler.

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 zero-parameter read tool with no output schema, the definition covers return fields, freshness, cost, and the downstream error it prevents. Nothing an agent needs in order to call it correctly is missing, though the exact meaning of currency is left implicit.

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?

There are zero input parameters, so the baseline is 4. The description compensates for the absent output schema by naming the response fields balance_usd and currency, which is useful but does not touch parameter semantics.

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?

The description states a specific resource and what it returns: the Desearch account's remaining spendable amount in USD, with the exact fields { balance_usd, currency }. This is unmistakably different from every sibling in the catalog, such as search or monitor-get, so an agent can identify it without opening the schema.

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

Usage Guidelines5/5

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

It gives a concrete trigger: check the balance before starting a large People Search, Company Search, or monitor. It also removes any hesitation about calling it unnecessarily by noting that the call is free and not counted as usage, which is effectively a when-not-to-worry signal.

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.