agentlens_cost_budgets
Create and manage spending limits for agents, check budget utilization, and configure cost anomaly detection to prevent overspending.
Instructions
Manage cost budgets and anomaly detection.
When to use: To create/manage spending limits, check budget utilization, or configure cost anomaly detection.
Actions:
list: List all cost budgetscreate: Create a new budgetupdate: Update an existing budgetdelete: Delete a budgetstatus: Check spend vs limit for a budgetanomaly_config: Get anomaly detection configurationanomaly_update: Update anomaly detection settings
Example: agentlens_cost_budgets({ action: "create", scope: "global", period: "daily", limitUsd: 10, onBreach: "alert" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| budgetId | No | Budget ID (required for update/delete/status) | |
| scope | No | Budget scope | |
| agentId | No | Agent ID (for agent-scoped budgets) | |
| period | No | Budget period | |
| limitUsd | No | Spending limit in USD | |
| onBreach | No | Action on budget breach | |
| downgradeTargetModel | No | Target model for downgrade action | |
| enabled | No | Enable/disable budget | |
| zScoreThreshold | No | Z-score threshold for anomaly detection | |
| lookbackDays | No | Lookback period in days for anomaly detection |