update_my_password
Change your Umami Analytics account password by providing your current and new passwords for security updates.
Instructions
Update the current user's password
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentPassword | Yes | Current password | |
| newPassword | Yes | New password |
Implementation Reference
- src/tools/account.ts:52-66 (handler)The tool "update_my_password" is defined and implemented directly in `src/tools/account.ts`. The handler uses the `client.call` method to send a POST request to `/api/me/password`.
server.tool( "update_my_password", "Update the current user's password", { currentPassword: z.string().describe("Current password"), newPassword: z.string().describe("New password"), }, async ({ currentPassword, newPassword }) => { await client.call("POST", "/api/me/password", { currentPassword, newPassword, }); return { content: [{ type: "text", text: "Password updated successfully." }] }; } );