Skip to main content
Glama
syucream

Lightdash MCP Server

by syucream

lightdash_get_user_attributes

Retrieve user attributes from the Lightdash organization to customize analytics access and permissions.

Instructions

Get organization user attributes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler case for 'lightdash_get_user_attributes' that fetches organization user attributes from the Lightdash API endpoint '/api/v1/org/attributes' and returns the JSON-formatted results.
    case 'lightdash_get_user_attributes': { const { data, error } = await lightdashClient.GET( '/api/v1/org/attributes', {} ); if (error) { throw new Error( `Lightdash API error: ${error.error.name}, ${ error.error.message ?? 'no message' }` ); } return { content: [ { type: 'text', text: JSON.stringify(data.results, null, 2), }, ], }; }
  • Zod schema defining the input for the tool, which requires no parameters (empty object).
    export const GetUserAttributesRequestSchema = z.object({});
  • src/mcp.ts:109-113 (registration)
    Registration of the tool in the ListTools response, specifying name, description, and input schema.
    { name: 'lightdash_get_user_attributes', description: 'Get organization user attributes', inputSchema: zodToJsonSchema(GetUserAttributesRequestSchema), },

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/syucream/lightdash-mcp-server'

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