margint_check_budget
Validate a customer's budget before triggering an LLM call. Returns whether the call is allowed, with any warnings or breaches. Cached server-side for 60 seconds.
Instructions
Check whether a customer is still within their configured monthly budgets. Agents can call this before making an LLM call to self-gate. Returns { allowed: true | false } with any warnings or breaches. Cached 60s server-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | The customer's external ID. | |
| feature | No | Optional feature for feature-scoped budgets. |