Skip to main content
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

NameTypeDescription
org_idstringOrganization id. Optional when the user belongs to one organization; otherwise the error lists theirs.
client_idsarray of stringThe clients (ids from agency_list_clients).
all_clientsbooleantrue: every client of the agency (instead of client_ids).
max_agentsnumberMost agents the client may have; null clears the cap.
monthly_minutesnumberMost call minutes per month; null clears the cap.
monthly_spend_minornumberMost spend per month in the currency's minor unit (paise for INR); null clears the cap.