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.
Summary
Most of the original work for this was done by @iskakaushik in #34. However, in trying to resolve several month's worth of conflict on main I accidentally got it into a funky state (sorry!). So, I decided to rebuild pagination for
list_tables
on top of current main rather than merging main. Note that I also added a metadata trimming switchinclude_detailed_columns
to reduce payload size when needed.Key Changes
list_tables
now returns adict
with the keystables
,next_page_token
, andtotal_tables
. It was a list previouslypage_size
(default 50) andpage_token
(one‑time tokens, 1‑hour TTL via cache)include_detailed_columns
(defaults toTrue
) to preserve previous behavior but can be set toFalse
to omit column metadata which will create lighter responses while preserving the fullcreate_table_query
cachetools
for TTL cachetests/test_pagination.py
tests/test_tool.py
,tests/test_mcp_server.py
has been updated to reflect the new response shape and edge casesLLM Usage
list_tables
withinclude_detailed_columns=false
and/or a smallerpage_size
.next_page_token
is returned, the assistant paginates by passing it back until the user narrows scope or coverage is sufficient.Closes #25