Reference
lg_credits_topup: Add credits within the agent allowance
Add credits from the saved card, only within the monthly limit an owner set for agent top-ups. Refused, with the reason, otherwise.
- Changes data: yes, and it can't be undone from here: it needs
confirm: true - Credential scope:
billing:topup(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: an assistant at Full; a lower level is refused
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
body | object (amount_cents) | yes | |
body.amount_cents | integer | yes | |
confirm | boolean | yes | Must be true: this can't be undone from here |
Example MCP call
A tools/call request to https://manage.restolayer.com/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lg_credits_topup",
"arguments": {
"body": {
"amount_cents": 1000
},
"confirm": true
}
}
}Example REST call
The same thing over REST (POST /v1/credits/topups):
curl -s -X POST "https://manage.restolayer.com/v1/credits/topups" \
-H "Authorization: Bearer $LG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount_cents":1000}'All tools: MCP tools. Connecting: connect your assistant.