MCPHerramientas MCP/Clientes/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.

Parámetros
creditsintegerobligatorio
notestringopcional
idempotencyKeystringobligatorio
clientIdstringobligatorio
Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
Solicitud de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_client_credits",
    "arguments": {
      "credits": null,
      "idempotencyKey": "string",
      "clientId": "string"
    }
  }
}
Respuesta de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.