Reference
lg_credits_quote: Price a top-up
Get a top-up's price before starting it: the credits, the fee and the total charged, by card or bank.
- Changes data: no (read only)
- Credential scope: any signed-in key
- Assistant level: any connected assistant (Read only and up)
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
query | object (amount_cents, method) | no | |
query.amount_cents | integer | yes | |
query.method | "card" | "bank" | no |
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_quote",
"arguments": {
"query": {
"amount_cents": 2000,
"method": "card"
}
}
}
}Example REST call
The same thing over REST (GET /v1/credits/quote):
curl -s -X GET "https://manage.restolayer.com/v1/credits/quote?amount_cents=2000&method=card" \
-H "Authorization: Bearer $LG_API_KEY"All tools: MCP tools. Connecting: connect your assistant.