get_credits_first
The CodePanel MCP tool that says whether review rounds spend your CodePanel credits before your own provider keys.
On this page›
get_credits_first says whether your review rounds spend CodePanel credits before your own provider keys. Call it when you need to know who pays for a reviewer, or why a round used credits. It only reads, and it needs the read scope.
When to call it
- Before reading a bill: with credits first on, a reviewer can run on credits even though you stored a key for its provider.
- Before
set_credits_first: to know the value you would change.
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.
What it returns
creditsFirst: whether the next round spends credits before your own keys.source:defaultuntil the account chooses, thenset. The default is on.
With it on, a reviewer whose provider has both your valid key and CodePanel's runs on credits while your balance covers its reservation, and on your own key once it does not. A model with no known price always runs on your key. Off, your key always wins. Each round decides once, before any model is called, and only for review rounds: questions, disputes and drafts keep your own key. The keys field in the get_review payload says which key paid for each reviewer.
Examples
These responses come from a test account on a local backend.
{}
{ "creditsFirst": true, "source": "default" }
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel credits-first (CLI) |
| HTTP API | GET /credits-first |
What the server tells your agent
The description your agent reads when it lists the tools:
Whether reviews spend CodePanel credits before your own provider keys (creditsFirst; source default|set, default on). With it on, a reviewer whose provider has both your valid key and CodePanel's runs on credits while the balance covers its reservation, and on your own key once it does not; a model with no credits price always uses your key. Off, your own key always wins. get_review's payload.keys says which key paid for each reviewer.
Related
set_credits_first: turn it on, off or back to the default.get_budget: the monthly budget counts own-key calls only.- Billing: which key a call uses: every case.
- MCP server: install, sign-in and every other tool.