Skip to content

Return all result sets from db_execute_query#126

Merged
nathanjcochran merged 1 commit intomainfrom
nathan/multiple-result-sets
Dec 12, 2025
Merged

Return all result sets from db_execute_query#126
nathanjcochran merged 1 commit intomainfrom
nathan/multiple-result-sets

Conversation

@nathanjcochran
Copy link
Member

This is a follow-up to #123. In particular, see this comment thread.

Updates the db_execute_query tool to return an array of result sets, instead of only the last result set. This makes it possible for the LLM to see the results of each statement in a multi-statement query, which can be useful in certain scenarios. Also includes the Postgres command tag with each result set, which should make it easier for LLMs to correlate the result sets with the individual SQL statements.

I also made some small edits to some of the tool and field descriptions - mostly just making things more concise to avoid wasted tokens.

@nathanjcochran nathanjcochran self-assigned this Dec 11, 2025
@nathanjcochran nathanjcochran merged commit 4ed6666 into main Dec 12, 2025
2 checks passed
@nathanjcochran nathanjcochran deleted the nathan/multiple-result-sets branch December 12, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments