Query credit balance, usage history, and spending limits — read-only, role-gated by membership level.
|
|
https://api.charmiq.ai/mcp/usageget_usage_snapshot sees their own usage; an Owner sees the Organization's. Same tool, different shape, by role.get_usage_snapshot | |
list_usage_records | |
get_usage_record | |
get_usage_limits |
get_usage_snapshot returns each balance separately so your application can show them with the right framing. A user on a paid plan with PAYG top-up sees three meaningful numbers, not one.list_usage_records, get_usage_record) — the immutable, write-once event log. One row per chargeable action, with the cost broken down. Best for itemized history, audits, and exports.get_usage_snapshot) — pre-aggregated, real-time totals for the current day and month. Best for dashboards and "do I have enough credits to do this" checks.get_usage_limits returns the configured spending limits:get_usage_snapshot and get_usage_limits first.get_usage_snapshot before kicking off a large run.