feat: add pagination and schema introspection to GetTableContents#37
Open
kts982 wants to merge 1 commit intooisee:mainfrom
Open
feat: add pagination and schema introspection to GetTableContents#37kts982 wants to merge 1 commit intooisee:mainfrom
kts982 wants to merge 1 commit intooisee:mainfrom
Conversation
Adds two new parameters to GetTableContents: - offset: skip first N rows for pagination (e.g., offset=100, max_rows=100 for page 2) - columns_only: return only column metadata (name, type, description, length, key) without data rows, for schema introspection Internally adds GetTableContentsWithOptions for the extended API while preserving backward compatibility through the existing GetTableContents signature. Refs oisee#34
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.
Summary
Adds two new parameters to
GetTableContents:offset: skip first N rows for pagination (e.g.,offset=100, max_rows=100for page 2)columns_only: return only column metadata (name, type, description, length, key) without data rows — for schema introspectionChanges
pkg/adt/client.go— newGetTableContentsWithOptionsmethod withGetTableContentsOptionsstruct; existingGetTableContentsdelegates to it (backward compatible)internal/mcp/handlers_read.go— parseoffsetandcolumns_onlyparametersinternal/mcp/server.go— register new parameters on GetTableContents toolTest plan
go build ./pkg/adt/— compiles cleanlycolumns_only=trueon T000: returned 17 columns with full metadata, no data rowsoffset=0, max_rows=2: returned first 2 rows (clients 000, 001)offset=2, max_rows=2: returned next 2 rows (clients 070, 100) — different data, pagination worksRefs #34