Added SoSQL query support#28
Merged
Merged
Conversation
added 2 commits
March 10, 2026 11:01
thealphacubicle
added a commit
that referenced
this pull request
Mar 10, 2026
* Removed redundant files * Github action to prevent divergent branching on PR to main * Added Socrata support (#27) * WIP: Socrata support (formatting etc) * Updated README file with right config * Updated Socrata isntructions to be more LLM friendly * Fixed smoke test bug * Updated smoke test bug --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Added SoSQL query support (#28) * Added SoSQL query support * Smoke test bug fix * Removed smoke test --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Updated docs --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
thealphacubicle
added a commit
that referenced
this pull request
Apr 10, 2026
* Removed redundant files * Github action to prevent divergent branching on PR to main * Added Socrata support (#27) * WIP: Socrata support (formatting etc) * Updated README file with right config * Updated Socrata isntructions to be more LLM friendly * Fixed smoke test bug * Updated smoke test bug --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Added SoSQL query support (#28) * Added SoSQL query support * Smoke test bug fix * Removed smoke test --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Updated docs * Feature/arcgis support (#30) * Bug fix * Ruff fix --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Socrata discovery API bug fix (#31) Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Pr/boston changes merge (#34) * Updated config files and deployment scripts (#33) * Deployed prod MCP * Added ACM SSL cert * Updated shell script and staging vars * Staging tf vars files changed --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Generalized boston specific values --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Feature/opencontext cli (#35) * Lint fix * Lint fix * bug fix --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Updated docs * Fixed CLI bugs and added template tfvars * lint fix * Added DX files * lint fix * Feature/security update (#37) * Lint fix * Security update: removed Lambda entrypoint * Added DLQ SQS + tagging * Updated CLI tools for new service additions * Added transparency CLI commands + tests --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Refactor/docs (#61) * lint fix * updated docs * Updated workflows * bug fix * Parallelized container setup * lint fix --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> * Fixed CLI bug --------- Co-authored-by: Srihari Raman <raman.sr@northeastern.edu> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
This pull request adds a new advanced tool,
execute_sql, to the Socrata plugin, enabling users to run raw SoQL queries with robust security validation. The implementation includes a dedicated validator to ensure only safe SELECT queries are executed, and comprehensive tests to verify correct behavior and error handling. The documentation is also updated to reflect the new tool.New tool: Raw SoQL execution
execute_sqltool to the Socrata plugin, allowing users to run raw SoQL SELECT queries for complex data retrieval. The tool is documented indocs/BUILT_IN_PLUGINS.mdand includes schema validation for required parameters. [1] [2]Security and validation
SoQLValidatorclass insoql_validator.pyto enforce security restrictions, blocking non-SELECT statements and forbidden keywords, and integrated it into the plugin's query execution flow. [1] [2]User experience improvements
_format_sql_resultsmethod to format query results for user display, including field names and record counts.Testing and quality assurance
SoQLValidatorto ensure robust query validation. [1] [2] [3] [4]