Prerequisites
What are you trying to do that currently feels hard or impossible?
We want to add a new MCP tool to create a Lookml view file in a project from a source table; this would enable a LookML editing agent to create new table views from scratch based on user prompts via the toolbox.
Suggested Solution(s)
We can implement this tool by invoking the LookML generator API (currently an undocumented endpoint), to trigger LookML project generation for specified database tables. This accepts input params projectId for the existing project, connection to specify the database schema and sets a null value for file_type_for_explores to prevent model and explore creation and only adding the required view(s).
Alternatives Considered
No simpler workarounds as this is the only available API endpoint implement view creation functionality.
Additional Details
No response
Prerequisites
What are you trying to do that currently feels hard or impossible?
We want to add a new MCP tool to create a Lookml view file in a project from a source table; this would enable a LookML editing agent to create new table views from scratch based on user prompts via the toolbox.
Suggested Solution(s)
We can implement this tool by invoking the LookML generator API (currently an undocumented endpoint), to trigger LookML project generation for specified database tables. This accepts input params
projectIdfor the existing project,connectionto specify the database schema and sets anullvalue forfile_type_for_exploresto prevent model and explore creation and only adding the required view(s).Alternatives Considered
No simpler workarounds as this is the only available API endpoint implement view creation functionality.
Additional Details
No response