Skip to content

[mcp] Streaming response for batch jobs > 1000 emails #1

Description

@Davison-Francis

Currently deliveriq_batch_download returns the full CSV in one tool result. For large jobs this either blows up the LLM context or truncates silently.

Proposed: switch to a paginated tool — deliveriq_batch_download_page(jobId, cursor) — that yields ~500 rows per call, with a continuation cursor in the response. Claude can then loop until the cursor is null.

Why this matters: the most useful batch flow is 'verify 5,000 emails from this CSV, then summarize the bad ones' — currently this fails silently when the CSV is too big.

Happy to take a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions