fix(pagination): declare page bounds in the schema and clamp instead of refusing (v0.4.4) #15
No reviewers
Labels
No labels
waiting-on-julian
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jlxq0/hevy-mcp!15
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/clamp-pagination"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Vryan's coaching cron asked
list_workoutsforpage_size50 on 8 and 9 Oct and gotpage_size must be between 1 and 10both times. The input schema showed a bare integer, so the limit was only discoverable by failing.pageminimum 1 / default 1 andpage_sizeminimum 1, maximum 10 (100 for the exercise-template tools), default 5 in its JSON schema.pagination_notesaying what was returned and which page comes next.Tests:
every_paged_tool_declares_its_page_size_bounds(schema),oversized_page_size_is_clamped_and_noted_not_refused(wiremock seespageSize=10for a 50 request),in_range_paging_carries_no_note,pagination_clamps_every_bound. fmt, clippy 1.98.0, test (59 passed),cargo +1.93.0 check, deny bans/licenses/sources and cargo audit pass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01BbPgHm7ND8CnztzqxLEn5T