get_current_user
Retrieve details about the currently authenticated Metabase user, including identity and permissions, for secure access control and personalized data interaction.
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 get_current_user tool logic by fetching the current user from Metabase API and formatting the response.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}`, }, ], }; }
- The tool schema definition specifying the 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/dispatch point in the main server switch statement that routes tool calls to the userHandlers.getCurrentUser method.case 'get_current_user': return await this.userHandlers.getCurrentUser();