lightdash_list_projects
Retrieve a complete list of all projects within your Lightdash organization to manage and navigate analytics workspaces.
Instructions
List all projects in the Lightdash organization
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lightdash_list_projects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp.ts:127-147 (handler)Handler for the lightdash_list_projects tool. Calls GET /api/v1/org/projects on the Lightdash API and returns the results as JSON text.
case 'lightdash_list_projects': { const { data, error } = await lightdashClient.GET( '/api/v1/org/projects', {} ); 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/mcp.ts:49-53 (registration)Registration of the lightdash_list_projects tool in the ListTools handlers, defining its name, description, and input schema.
{ name: 'lightdash_list_projects', description: 'List all projects in the Lightdash organization', inputSchema: zodToJsonSchema(ListProjectsRequestSchema), }, - src/schemas.ts:3-3 (schema)Schema definition for the lightdash_list_projects tool input - an empty object (no required parameters).
export const ListProjectsRequestSchema = z.object({});