# retirer_membre

> For AI agents: the complete documentation index is at [llms.txt](https://stampywallet.com/en/docs/llms.txt), and the whole documentation fits in one file: [llms-full.txt](https://stampywallet.com/en/docs/llms-full.txt). Online page: https://stampywallet.com/en/docs/mcp/tools/retirer_membre/

With account · Writes (confirm) · Owner only.

Removes a member's access to the business and closes their open sessions. The stamps they added stay in the history. Owner only. confirmer=false (default) returns a preview; confirmer=true carries it out, after the person's explicit approval.

## Parameters

- `membre_id` (string, ≤ 36 characters, optional) : The member's identifier, read with lister_equipe.
- `email` (string, ≤ 254 characters, optional) : Or the member's email, instead of membre_id.
- `confirmer` (boolean, optional) : false (default): only returns a preview of what would be done, without changing anything. true: carries it out. Always show the preview to the person and wait for their approval before calling again with true. Default : false.

## Response

A text the assistant reads (`content`), and the same information as structured data (`structuredContent`). When a call is refused (a parameter to fix, plan, role), the response has `isError: true` and a sentence the assistant can rephrase.

> **Warning :** this tool writes. Called with `confirmer: false` (the default), it only returns a preview, without changing anything. The assistant must show it to you and wait for your approval before calling again with `confirmer: true`.

## Example

Prompt : « Julie has left, remove her access. »

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "retirer_membre",
    "arguments": {
      "email": "julie@example.com",
      "confirmer": false
    }
  }
}
```

```bash
curl https://app.stampywallet.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $STAMPY_JETON" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"retirer_membre","arguments":{"email":"julie@example.com","confirmer":false}}}'
```

`$STAMPY_JETON` is the OAuth token the assistant gets when you connect your account ([see Connect](https://stampywallet.com/en/docs/mcp/connect/#connexion)). You don't have to handle it yourself.
