Skip to navigation

get_wallets_credits

Read credit types, wallet types, wallets, balances, grants and auto top-ups

Live server: available on mcp.solvimon.com as well as on the test server.

Read-only access to prepaid credit models and balances.

Actions: list, get, balance, customer_balances

Resource types: wallets, wallet_types, credit_types, wallet_grants, auto_top_up_configs

  • balance puts open_balance first: what the customer can still spend. Then reserved usage and the accounting balance.
  • A grant’s active_now ignores consumption, so a fully spent grant can still read true.
  • An auto top-up shows threshold_matches_wallet; a threshold in the wrong unit never fires.
List wallet types
{"action": "list", "resource_type": "wallet_types"}

Example prompts

  • “How many credits does Acme Inc. have left?”
  • “Why did Acme Inc.’s credit balance drop this week?”
  • “Show the grants on Acme Inc.’s prepaid wallet and when each one expires.”
  • “Is auto top-up set up for Acme Inc., and will it actually fire?”
  • “What was Acme Inc.’s wallet balance at the end of last month?”

Example output

Prompt: “How many credits does Docs Example B.V. have left?”

Tool call:

{
"action": "customer_balances",
"resource_type": "wallets",
"customer_id": "cust_BwDpzo0vA1cb03CA8t1f"
}

Response (trimmed):

{
"wallet_balances": [
{
"wallet_id": "wall_SwDpzo0vA1ccA3CB861z",
"wallet_balance": {
"open_balance": {"credits": {"quantity": "0", "credit_type_id": "ctyp_FwDsM40vxDPmylCXia1F"}},
"reserved_balance": {"credits": {"quantity": "0", "credit_type_id": "ctyp_FwDsM40vxDPmylCXia1F"}},
"balance": {"credits": {"quantity": "0", "credit_type_id": "ctyp_FwDsM40vxDPmylCXia1F"}}
}
}
]
}

Claude’s answer: Docs Example B.V. has one prepaid credits wallet with 0 credits left to spend. Nothing is reserved for usage that hasn’t been invoiced yet, so no credits have been granted to this wallet so far.