ponymail-mcp: add limit/offset pagination to search_list (#12)

The search_list tool previously rendered the first 30 email summaries
unconditionally, then printed "... and N more emails" with no way to
reach those N entries without re-querying the backend (and getting the
same first 30 back). For LLM clients doing list-wide analysis, the
remainder was effectively invisible.

This change adds two optional parameters:

  - limit  (int, 1..200, default 30) — caps the rendered window
  - offset (int, >= 0,  default 0)   — skips the first N entries

The backend call is unchanged; both parameters only affect which slice
of the already-fetched result set is formatted into the response. The
default behaviour (no params) is identical to before.

The trailing summary is upgraded from a static "... and N more" to an
explicit "Showing X-Y of Z" plus the exact next-page offset when more
results remain, so the caller can page deterministically.

Signed-off-by: André Ahlert <andre@aex.partners>
1 file changed
tree: 7b3c508baa2c8a465549841b17f262a2112dadd1
  1. .github/
  2. asf-highlights/
  3. mcp/
  4. project-activity/
  5. .asf.yaml
  6. .gitignore
  7. LICENSE
  8. README.md
  9. SECURITY.md
README.md

ASF Comdev tools

ASF Community Development (ComDev) project partners with other groups across the ASF to provide resources, tools, programs, and advice in order to attract, retain, educate, and grow key communities around the Apache Software Foundation, in support of sustainability producing software for the public good.

Other repositories:

Contents of this repository:

  • asf-highlights - tools for finding foundation-wide activity
  • project-activities - tools for project-specific activity