DataAnalyst resources#7591
Merged
labkey-matthewb merged 7 commits intorelease26.3-SNAPSHOTfrom Apr 17, 2026
Merged
Conversation
|
WARNING: This PR appears to have the default title generated by GitHub. Please use something more descriptive. |
labkey-jeckels
approved these changes
Apr 16, 2026
Contributor
labkey-jeckels
left a comment
There was a problem hiding this comment.
This looks good to me, but it would be nice for @cnathe and @labkey-alan to give it a quick review as the client API owners.
Comment on lines
+29
to
+47
| A LabKey MCP server is configured (see `.mcp.json`). Use these tools to explore the server interactively: | ||
|
|
||
| | Tool | Purpose | | ||
| |---|---| | ||
| | `mcp__labkey__setContainer` | **Must be called first.** Sets the active container (project/folder) for subsequent calls. Path format: `MyProject/MyFolder` (no leading slash). | | ||
| | `mcp__labkey__whereAmIWhoAmITalkingTo` | Shows current user, server info, and active container. | | ||
| | `mcp__labkey__listContainers` | Lists all containers the user has read access to. | | ||
| | `mcp__labkey__listSchemas` | Lists all schemas in the active container. | | ||
| | `mcp__labkey__listTables` | Lists tables/queries within a schema. | | ||
| | `mcp__labkey__listColumns` | Shows column metadata (name, type, description) for a table. Also returns SQL source for saved queries. | | ||
| | `mcp__labkey__getSourceForSavedQuery` | Returns the SQL source of a saved query. | | ||
| | `mcp__labkey__validateSQL` | Validates LabKey SQL syntax without executing it. | | ||
|
|
||
| ### MCP Workflow | ||
|
|
||
| 1. Call `listContainers` to find available containers | ||
| 2. Call `setContainer` with the desired container path | ||
| 3. Use `listSchemas` -> `listTables` -> `listColumns` to explore the data model | ||
| 4. Use `validateSQL` to check queries before running them |
Contributor
There was a problem hiding this comment.
Can we share this or other common blocks? I imagine it'll need updates as we build out MCP.
Co-authored-by: Josh Eckels <jeckels@labkey.com>
labkey-alan
approved these changes
Apr 16, 2026
Contributor
labkey-alan
left a comment
There was a problem hiding this comment.
The Python documentation looks correct. I am not a huge fan that we are adding a third place that has documentation for our Python API, but we can find a better solution for that later.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
Additional resources to support MCP user scenarios, specifically data analysis.
Related Pull Requests
Changes