lightdash_get_project
Retrieve detailed information about a specific Lightdash project by providing its UUID.
Instructions
Get details of a specific project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectUuid | Yes | The UUID of the project. You can obtain it from the project list. |
Implementation Reference
- src/mcp.ts:54-58 (registration)Tool registration with name, description, and inputSchema for the 'lightdash_get_project' tool in the ListTools handler
{ name: 'lightdash_get_project', description: 'Get details of a specific project', inputSchema: zodToJsonSchema(GetProjectRequestSchema), }, - src/mcp.ts:148-175 (handler)Handler implementation within the CallToolRequest handler. Parses arguments via GetProjectRequestSchema, calls GET /api/v1/projects/{projectUuid} on the Lightdash API, and returns results as JSON text.
case 'lightdash_get_project': { const args = GetProjectRequestSchema.parse(request.params.arguments); const { data, error } = await lightdashClient.GET( '/api/v1/projects/{projectUuid}', { params: { path: { projectUuid: args.projectUuid, }, }, } ); 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), }, ], }; } - src/schemas.ts:5-12 (schema)Zod schema defining the input for lightdash_get_project: a required projectUuid string (UUID format) describing that it can be obtained from the project list.
export const GetProjectRequestSchema = z.object({ projectUuid: z .string() .uuid() .describe( 'The UUID of the project. You can obtain it from the project list.' ), });