MCPMCP-Tools/Kunden/add_client_credits
add_client_credits
Writeclient-credits:write
Add positive whole credits to one client's wallet, matching the Clients Add credits action. credits must be 1–1,000,000,000; note is optional (up to 200 characters). Supply a unique idempotencyKey (8–200 characters) for each intended grant; reuse exactly that key and payload on retries, including across API and MCP, to avoid adding twice. Reusing a key for a different amount/note is refused. Returns the current customer-visible credits and history. Cannot subtract credits or change hidden allocation, package or billing settings. Requires an identified agency user with Clients page access and access to this client.
Parameter
creditsintegererforderlich
notestringoptional
idempotencyKeystringerforderlich
clientIdstringerforderlich
Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
Beispielanfrage
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "add_client_credits",
"arguments": {
"credits": null,
"idempotencyKey": "string",
"clientId": "string"
}
}
}Beispielantwort
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.