CodePanel
set_agent_day_cap

set_agent_day_cap

The CodePanel MCP tool that sets the account's day cap on agent spend, up to $1,000, or puts it back to the $25 default.

On this page›

set_agent_day_cap sets the account's day cap on agent spend, or puts it back to the default, and the optional per-ticket cap. The model proxy refuses a call that would take the day's spend and live holds past it, and autopilot rules start no task once it is spent. It needs the budget:write scope, which no other scope implies.

When to call it

  • Only when your user asked for an amount. It raises or lowers what the account's agents may spend.
  • After a day_cap or ticket_cap refusal, if the user wants the work to go on.

It applies to the next model call. Spend already made stays counted.

Inputs

Input Type Required Description
usd number or null no Dollars a day, or null for the default
ticketUsd number or null no Dollars per ticket over all its runs, or null for none

It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

Pass usd, ticketUsd or both. usd: dollars a UTC day, more than 0 and at most maxUsd ($1,000), or null for the default ($25). ticketUsd: dollars every run of one ticket (a task's ticket) may spend together, over any number of days, up to the same maximum, or null for no per-ticket cap.

What it returns

before and after, each as in get_agent_day_cap.

The same step without MCP

Surface Form
HTTP API POST /autopilot/day-cap with { "usd": 50 } and the budget:write scope
CLI codepanel autopilot day-cap 50, or default; codepanel autopilot ticket-cap 5, or off
Desktop app Settings → Budgets, or Autopilot under Guardrails

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to raise or lower what the account's agents may spend in a UTC day, or on one ticket, only when the owner asked for that amount. usd: dollars a day, more than 0 and at most maxUsd, or null for the default; ticketUsd: dollars per ticket (a task's ticket, over all its runs), or null for none; pass one or both. Applies to the next model call; spend already made stays. Needs the budget:write scope, which no other scope implies. Returns { before, after }, each as get_agent_day_cap.

Last updated