Skip to content

rust(feat): lower MCP list defaults to 50 - #702

Merged
evan-sift merged 1 commit into
mainfrom
rust/mcp-lower-list-page-defaults
Jul 31, 2026
Merged

rust(feat): lower MCP list defaults to 50#702
evan-sift merged 1 commit into
mainfrom
rust/mcp-lower-list-page-defaults

Conversation

@evan-sift

@evan-sift evan-sift commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Changes

Tightens the MCP list bounds that ENG-13258 (#694) introduced. DEFAULT_LIMIT drops from 200 to 50 and PAGE_SIZE from 1000 to 200, so a single list_* call cannot flood an agent's context window.

Updates every list_* tool description, the sift_mcp playbook, and both shipped skill assets to state the new bounds.

Adds a test asserting every registered list_* description advertises the starting, maximum, and default limits, so a future bound change cannot silently drift from the documentation agents read.

Verification

  • cargo fmt --check --all, cargo clippy --all-features, cargo test --all-features
  • Red/green checked the new test: reverting tool/runs/mod.rs to main fails it with list_runs does not advertise the starting limit

lineville
lineville previously approved these changes Jul 30, 2026
@evan-sift
evan-sift force-pushed the rust/mcp-lower-list-page-defaults branch from aa0918a to 65ab321 Compare July 31, 2026 17:19
lineville
lineville previously approved these changes Jul 31, 2026
Base automatically changed from rust/cli-remove-mcp-docs to main July 31, 2026 18:08
@evan-sift
evan-sift dismissed lineville’s stale review July 31, 2026 18:08

The merge-base changed after approval.

Reduce DEFAULT_LIMIT from 200 to 50 and PAGE_SIZE from 1000 to 200 so a
list call cannot flood an agent's context window. Update every list_* tool
description, the sift_mcp playbook, and both shipped skill assets to state
the new bounds.

Add a test asserting every registered list_* description advertises the
starting, maximum, and default limits, so a future bound change cannot
silently drift from the documentation agents read.
@evan-sift
evan-sift force-pushed the rust/mcp-lower-list-page-defaults branch from 65ab321 to 6b3d369 Compare July 31, 2026 18:08
@evan-sift
evan-sift requested a review from lineville July 31, 2026 18:19
@evan-sift
evan-sift merged commit e6532f4 into main Jul 31, 2026
22 checks passed
@evan-sift
evan-sift deleted the rust/mcp-lower-list-page-defaults branch July 31, 2026 18:27
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.

2 participants