Skip to content

feat: Add list_schema_recommendations tool with pagination support#9

Closed
lorcan wants to merge 1 commit intoplanetscale:mainfrom
lorcan:lorcan/recommendations-pagination
Closed

feat: Add list_schema_recommendations tool with pagination support#9
lorcan wants to merge 1 commit intoplanetscale:mainfrom
lorcan:lorcan/recommendations-pagination

Conversation

@lorcan
Copy link
Copy Markdown

@lorcan lorcan commented Mar 10, 2026

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_recommendations tool 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.

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>
@lorcan
Copy link
Copy Markdown
Author

lorcan commented Mar 11, 2026

The page params are now shared in the schema recs tool. This PR is unnecessary 🎉

@lorcan lorcan closed this Mar 11, 2026
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.

1 participant