Skip to content

feat(mcp): improve bulk_load for JSON seeding + collect_results flag#888

Merged
joshrotenberg merged 2 commits intomainfrom
feat/json-mset
Mar 17, 2026
Merged

feat(mcp): improve bulk_load for JSON seeding + collect_results flag#888
joshrotenberg merged 2 commits intomainfrom
feat/json-mset

Conversation

@joshrotenberg
Copy link
Collaborator

@joshrotenberg joshrotenberg commented Mar 17, 2026

Summary

Rather than adding a dedicated json_mset tool, this solves the root problems — discoverability and lack of per-result feedback — directly in redis_bulk_load:

  • Description update: explicitly calls out JSON document seeding as a primary use case with a concrete example, including how to append NX/XX to args
  • collect_results flag (default false): opt-in per-command result collection instead of fire-and-forget; returns index, command, key, and result for each command — useful for small batches where you need to verify NX/XX outcomes
  • Reverts the json_mset additions from json.rs

Why not a dedicated tool?

redis_bulk_load already handled batch JSON.SET — the gap was that agents didn't know to use it for that, and there was no way to see per-command results. Fixing those in the existing tool keeps the surface area smaller.

Closes #885

Adds redis_json_mset which pipelines multiple JSON.SET calls in a single
tool invocation, eliminating the N-tool-calls-for-N-docs friction during
interactive prototyping sessions.

Supports nx/xx flags (applied to all documents), returns per-document
OK/skipped results plus a summary count. Closes #885.
Instead of a dedicated json_mset tool, solve the discoverability and
per-result feedback problems in redis_bulk_load directly:

- Description now explicitly calls out JSON.SET seeding as a primary
  use case with a concrete example, and documents NX/XX arg appending
- collect_results=true (default false) opts out of fire-and-forget and
  returns per-command output (index, command, key, result), useful for
  small batches where NX/XX outcomes need to be verified

Reverts the json_mset additions from json.rs. Closes #885.
@joshrotenberg joshrotenberg changed the title feat(mcp): add redis_json_mset tool for batch JSON document insertion feat(mcp): improve bulk_load for JSON seeding + collect_results flag Mar 17, 2026
@joshrotenberg joshrotenberg merged commit 55f3598 into main Mar 17, 2026
16 checks passed
@joshrotenberg joshrotenberg deleted the feat/json-mset branch March 17, 2026 21:08
This was referenced Mar 17, 2026
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.

feat(mcp): add JSON.MSET tool for batch JSON document insertion

1 participant