You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Frun1na (via GitHub)" <gi...@apache.org> on 2026/09/21 00:14:05 UTC
[I] [Bug] MCP message query tools silently drop messages beyond the result budget [rocketmq-dashboard]
Frun1na opened a new issue, #4646:
URL: https://github.com/apache/rocketmq-dashboard/issues/4646
### Environment
* rocketmq-dashboard branch: rocketmq-studio (commit 5b761df8)
### What happened
The MCP message query tools can silently drop matching messages without telling the caller:
1. `rmq.message.query_by_topic` stops at the 200-message topic-window limit (`MessageService.TOPIC_QUERY_RESULT_LIMIT`), but its output has no indication that results are partial.
2. In `rmq.message.query`, the `key` path goes through the same topic-window query and can stop at the same budget.
A caller (an LLM agent via MCP, or `rmqctl` via the CLI tools) reading the output sees a complete-looking list and may conclude the topic has no more matching messages — e.g. querying a busy topic for a broad tag returns the first 200 rows and looks exhaustive.
### What should happen
The tool output should include an explicit truncation signal (e.g. `truncated: true`) whenever the result budget was reached before the query was exhausted, so callers know to narrow the time range or use a more specific identifier. Exact lookups (`msgId`, `uniqueKey`) should report `truncated: false` so "no more rows" is distinguishable from "budget reached".
### Additional context
PR with fix and tests: #4645
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] MCP message query tools silently drop messages beyond the result budget [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #4646:
URL: https://github.com/apache/rocketmq-dashboard/issues/4646#issuecomment-5754861227
**Issue Evaluation**
Category: `bug` | Status: **Confirmed** | Severity: **Medium**
The reported issue has been verified. The MCP message query tools (`rmq.message.query_by_topic` and `rmq.message.query` key path) silently truncate results at the 200-message limit (`MessageService.TOPIC_QUERY_RESULT_LIMIT`) without signaling truncation to the caller.
**Root Cause:** No truncation indicator in the tool output. Callers (LLM agents via MCP, `rmqctl` via CLI) cannot distinguish "no more matching messages" from "budget reached".
**Impact:** Misleading query results — a busy topic queried with a broad tag returns the first 200 rows and appears exhaustive. Callers may incorrectly conclude the topic has no more matching messages.
**Resolution:** PR #4645 correctly adds a `truncated: true` signal when the result budget is reached.
---
*Automated evaluation by RockteMQ-AI*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] MCP message query tools silently drop messages beyond the result budget [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4646: [Bug] MCP message query tools silently drop messages beyond the result budget
URL: https://github.com/apache/rocketmq-dashboard/issues/4646
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] MCP message query tools silently drop messages beyond the result budget [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4646:
URL: https://github.com/apache/rocketmq-dashboard/issues/4646#issuecomment-5963530088
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org