CodePanel
get_agent_day_cap

get_agent_day_cap

The CodePanel MCP tool that reads the account's day cap: what every agent run together may spend through the model proxy in a UTC day.

On this page›

get_agent_day_cap reads the account's day cap on agent spend: what every agent run together may spend through the model proxy in a UTC day, on CodePanel credits and your own keys alike. It needs the read scope.

When to call it

  • When a model call is refused with day_cap, to see the cap the day's spend reached.
  • When an autopilot rule's event is skipped because the account's day cap is spent.

Inputs

Input Type Required Description

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

What it returns

dayCapUsd, the cap in force; source, default while the account never set one and set once it has; defaultUsd, the cap when none is set ($25); maxUsd, the highest it can be set ($1,000); and ticketCapUsd, what every run of one ticket may spend together, or null for no per-ticket cap. Today's spend against it is stats.spentTodayUsd in get_inbox.

The same step without MCP

Surface Form
HTTP API GET /autopilot/day-cap with the read scope
CLI codepanel autopilot day-cap
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 when a model call is refused with day_cap, or a rule's event is skipped because the account's day cap is spent, to read the cap. Also when one is refused with ticket_cap. Returns dayCapUsd (what every run together may spend through the model proxy in a UTC day, on credits and own keys alike), source (default|set), defaultUsd, maxUsd and ticketCapUsd (what every run of one ticket may spend together, over any number of days; null for none). get_inbox's stats.spentTodayUsd is today's spend against it.

Last updated