feat: Add list_schema_recommendations tool with pagination support#9
Closed
lorcan wants to merge 1 commit intoplanetscale:mainfrom
Closed
feat: Add list_schema_recommendations tool with pagination support#9lorcan wants to merge 1 commit intoplanetscale:mainfrom
lorcan wants to merge 1 commit intoplanetscale:mainfrom
Conversation
The auto-generated tool blocks page/per_page query parameters due to additionalProperties: false. This hand-written replacement exposes page, per_page, and state params, matching the pagination pattern used by other list endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
The page params are now shared in the schema recs tool. This PR is unnecessary 🎉 |
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.
Hi folks, when using the planetscale MCP I was unable to retrieve more than the first page of schema recommendations (25 recommendations).
It looks like the
planetscale_list_schema_recommendationstool is missing page and per_page query parameters in its schema. The underlying PlanetScale REST API (GET /v1/organizations/{org}/databases/{db}/schema-recommendations) supports pagination, However, the MCP tool’s JSON Schema for queryParameters only allows state and sets additionalProperties: false, so passing page or per_page causes a validation error.The auto-generated tool blocks page/per_page query parameters due to additionalProperties: false. This hand-written replacement exposes page, per_page, and state params, matching the pagination pattern used by other list endpoints.