lightdash_get_project
Retrieve detailed information about a specific Lightdash analytics project using its unique identifier to access configuration, settings, and metadata.
Instructions
Get details of a specific project
Input Schema
TableJSON 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:148-175 (handler)Handler for 'lightdash_get_project' tool: parses input args using GetProjectRequestSchema, calls Lightdash API to GET /api/v1/projects/{projectUuid}, handles errors, and returns JSON stringified response.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 input for lightdash_get_project: requires 'projectUuid' as a UUID string with description.export const GetProjectRequestSchema = z.object({ projectUuid: z .string() .uuid() .describe( 'The UUID of the project. You can obtain it from the project list.' ), });
- src/mcp.ts:54-58 (registration)Tool registration in listTools handler: specifies name, description, and converts GetProjectRequestSchema to JSON schema for input.{ name: 'lightdash_get_project', description: 'Get details of a specific project', inputSchema: zodToJsonSchema(GetProjectRequestSchema), },