Skip to main content
Glama
MikelA92
by MikelA92

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
NameRequiredDescriptionDefault

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: {}, }, },
  • Registration and dispatch in the executeTool switch statement: maps tool name to the handler method.
    case 'get_current_user': return await this.userHandlers.getCurrentUser();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MikelA92/metabase-mcp-mab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server