← ClaudeAtlas

mcp-paginationlisted

Internal guardrail invoked by mcp-builder only. Audits MCP tool definitions that contain list_*, search_*, find_*, get_all_*, or SQL-executing operations for missing pagination/limit parameters. NOT triggered by general MCP questions, single-item getters, or mutation tools. mcp-builder calls this at Phase 1.3 (after cataloging endpoints), Phase 3.0 (before writing each list/search tool schema), Phase 4.1 (post-Inspector checklist), and Phase 5 (eval design). Skip invocation when all tools are single-item getters or mutations only.
Tamircohen28/tamirs-superpowers · ★ 2 · AI & Automation · score 74
Install: claude install-skill Tamircohen28/tamirs-superpowers
# MCP Pagination Guardrails (Internal) ## Why this skill exists MCP tools that return lists or search results have no built-in safety net against unbounded responses. Calling `list_issues`, `search_code`, or any similar tool without a limit parameter can return hundreds or thousands of items, consuming 10-100x more tokens than needed, slowing responses, and inflating API costs. Naive implementations skip pagination because the tool "works" without it — this guardrail enforces limits before that mistake reaches production. This skill is invoked by `mcp-builder` via `Skill("mcp-pagination")` when list/search operations appear in an MCP server design. It is not user-facing — users should run `mcp-builder` instead. ## When mcp-builder invokes this skill | mcp-builder phase | Why | |-------------------|-----| | **Phase 1.3** — after cataloging collection endpoints | Set pagination strategy before any tool schemas | | **Phase 3.0** — before each `list_*` / `search_*` / SQL tool | Apply limits and cursor mapping per tool | | **Phase 4.1** — after Inspector testing | Run quick-reference checklist against implemented tools | | **Phase 5** — eval design | Confirm evals use caller-driven pagination, not full scans | If `mcp-builder` passes planned tool names or API pagination params, use them as input for Steps 1–3 below. ## Workflow **Step 1 — Identify list/search operations in the MCP server design.** Any tool whose name matches these patterns needs a limit strategy: - `list_