Docs menu
All MCP tools
MCP tools · Agency
agency_set_limits
Set the same caps on many clients at once: client_ids (up to 200) or all_clients true. Each client answers on its own in results. Caps not named stay as they are; null clears one. With an org key this may come back 202 pending_approval: a person approves it in the approvals inbox before it runs.
- Scope needed
- agency:write
- Acts as
- You, the signed-in member, with your role's permissions.
- Changes data
- Yes
- Held for approval
- No
- Available to
- Switched on per organization (agency tools, approved agencies only)
Inputs
| Name | Type | Description |
|---|---|---|
| org_id | string | Organization id. Optional when the user belongs to one organization; otherwise the error lists theirs. |
| client_ids | array of string | The clients (ids from agency_list_clients). |
| all_clients | boolean | true: every client of the agency (instead of client_ids). |
| max_agents | number | Most agents the client may have; null clears the cap. |
| monthly_minutes | number | Most call minutes per month; null clears the cap. |
| monthly_spend_minor | number | Most spend per month in the currency's minor unit (paise for INR); null clears the cap. |