CodePanel
get_auto_reload

get_auto_reload

The CodePanel MCP tool that reads credits auto-reload: its status, threshold, pack and monthly cap, and why it turned itself off.

On this page›

get_auto_reload reads your credits auto-reload: whether CodePanel will charge your saved card for a credit pack when the credit balance runs low, the settings, this month's reloads, and why it turned itself off if it did. Call it when a review is refused for credits, or before you change the setting. It only reads, and it needs the read scope.

When to call it

  • After a credits_required or credits_exhausted refusal: status tells you whether a reload was turned off, and message says what a person has to do.
  • Before set_auto_reload: packOptionsUsd lists the pack sizes you may choose.
  • When credits stop topping up: status: "capped" means this month's cap stopped a reload.

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.

It takes no inputs. It reads the signed-in account's setting.

What it returns

  • enabled and status: off, on, pending (a charge is running), turned_off (a failure turned it off; see offReason) or capped (this month's reloads reached monthlyCapUsd).
  • thresholdUsd, packUsd and monthlyCapUsd: the settings. Before any change they show the values it turns on with: $5, $25 and $100.
  • chargeUsd: what one reload charges now, the pack plus the purchase fee on any part past feeFreeUsd, the fee-free credits your plan has left this month.
  • month and reloadedUsd: the UTC month the cap counts, and the credits its reloads bought, a running one included.
  • offReason and offAt, after a failure: card_declined, authentication_required, no_payment_method, payment_failed, disputed, stalled or billing_error. These do not retry; a person fixes the card, then turns it on again.
  • disputeOpen: a payment to CodePanel is under dispute, so turning it on is refused until it closes.
  • retryAfter: when a Stripe outage has delayed the next attempt, else null.
  • pendingSince, lastReloadAt and capReachedAt: timestamps in milliseconds, or null.
  • message: what to do next, for turned_off, capped and disputeOpen.

Examples

These responses come from a test account on a local backend. The plan, fee-free amount and settings are seed data.

Call
{}
Result
{
  "capReachedAt": null,
  "chargeUsd": 25,
  "disputeOpen": false,
  "enabled": false,
  "feeFreeUsd": 250,
  "lastReloadAt": null,
  "message": null,
  "month": "2026-11",
  "monthlyCapUsd": 100,
  "offAt": null,
  "offReason": null,
  "packOptionsUsd": [
    25,
    50,
    100,
    250
  ],
  "packUsd": 25,
  "pendingSince": null,
  "reloadedUsd": 0,
  "retryAfter": null,
  "status": "off",
  "thresholdUsd": 5
}

This account never turned auto-reload on, so the settings are the defaults and status is off. With chargeUsd equal to packUsd, no fee applies to this seed account's pack.

The same step without MCP

Surface Form
CLI codepanel auto-reload (CLI)
HTTP API GET /auto-reload

What the server tells your agent

The description your agent reads when it lists the tools:

Credits auto-reload: whether CodePanel charges the saved card for a credit pack when the credit balance falls below a threshold. status is off|on|pending (a charge running)|turned_off (by a failure: offReason card_declined|authentication_required|no_payment_method|payment_failed|disputed|stalled)|capped (this month's reloads reached monthlyCapUsd). With thresholdUsd, packUsd, chargeUsd (pack plus the purchase fee), monthlyCapUsd, reloadedUsd this month (UTC), lastReloadAt, and message: what to do next.

Last updated