get_current_user
Retrieve information about the currently authenticated user in Metabase to access personal account details and permissions.
Instructions
👤 [SAFE] Get information about the currently authenticated user (you). Risk: None - read-only operation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function that executes the tool: fetches current user info from Metabase API (/api/user/current) and returns formatted text content.async getCurrentUser() { this.logger.debug('Getting current user'); const user = await this.apiClient.makeRequest('/api/user/current'); return { content: [ { type: 'text', text: `Current User: ID: ${user.id} Name: ${user.common_name} Email: ${user.email} Is Admin: ${user.is_superuser}`, }, ], }; }
- Tool definition including name, description, and empty input schema (no parameters required). Used for tool listing and validation.{ name: 'get_current_user', description: '👤 [SAFE] Get information about the currently authenticated user (you). Risk: None - read-only operation.', inputSchema: { type: 'object', properties: {}, }, },
- src/server/MetabaseMCPServer.js:224-225 (registration)Registration and dispatch in the executeTool switch statement: maps tool name to the handler method.case 'get_current_user': return await this.userHandlers.getCurrentUser();