How Tokens Work
GTM Tools meters every paid tool in tokens. The unit decouples price from raw infrastructure cost: billing happens in dollars, but a tool may run multiple SMTP probes or LinkedIn scrapes per call, so a flat token price keeps the agent’s reasoning simple.
The basics
The lifecycle of a paid call
When your agent calls a paid tool:
- Authorize. The auth layer resolves the bearer token to an org.
- Validate. Arguments are checked against the tool’s schema.
- Meter. The tool’s cost is looked up and debited from the wallet in one step. If the balance doesn’t cover it, the call stops here with
402and nothing is charged. Concurrent calls see the reduced balance. - Execute. The tool runs. This is where most of the time is spent.
The debit happens before the work, not after, and there is no automatic refund. That single fact tells you what any given error cost you:
If a tool charged you for something broken on our side, contact support with the tool name and arguments and we’ll credit the balance manually.
What “0 tokens” means
Some tools cost 0, every Billing tool plus a handful elsewhere:
These are intentional; they let your agent orient itself without spending tokens.
Keeping the bill down
Since a call that reaches a provider is charged whether or not the answer is useful, the savings come from calling less, not from recovering charges after the fact:
- Filter before you hydrate. Narrow the list with a cheap tool, then spend the expensive per-record call only on what survives.
- Respect
retry_after_seconds. A tight retry loop ontry_again_latermultiplies the cost of one busy provider. - Cache what doesn’t change. Company IDs, profile URLs, and verified emails are stable for weeks.
See Token Efficiency for the full set of patterns.
Balance changes show up in get_token_balance immediately. list_invoices covers purchases (one-off top-ups and auto-reload charges), not per-call debits.
When you run out
The next paid tool call returns 402 Insufficient Tokens with no work done. Two options:
- One-off top-up. Call
buy_tokens({"amount_usd": 25}for 2,500 tokens). - Auto-reload. Call
set_auto_reloadonce with a threshold and a top-up amount; the saved card is charged automatically when the balance drops.