Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/mcptools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var OpTools = []OpTool{
{"channels", "channels", "One page of channels on the served vhosts."},
{"stream", "stream", "One stream: its queue data and, with the stream protocol, first and last offsets."},
{"stream-offset", "stream-offset", "Stored offset of a named stream consumer and its lag behind the stream's end (stream protocol)."},
{"read", "read", "Read messages of a stream from first, last, an offset or an RFC 3339 timestamp, masked. Moves nothing (no offset stored). The human approves every read."},
{"read", "read", "Read messages of a stream from first, last, an offset or an RFC 3339 timestamp, masked. Moves nothing (no offset stored). Asked of the human only when the profile sets auto.read to ask; auto by default."},
{"peek", "peek", "NOT READ-ONLY: take up to count ready messages from the head of a classic or quorum queue and requeue them (redelivered=true; a quorum queue's delivery count grows). Only on a profile with tier peek; the human approves every peek unless the profile sets auto.peek = \"auto\"."},
}

Expand Down
3 changes: 3 additions & 0 deletions internal/mcptools/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ func TestToolsAreExactlyTheNames(t *testing.T) {
if tl.Description == "" {
t.Errorf("%s has no description", tl.Name)
}
if tl.Name == "lockmq_read" && !strings.Contains(tl.Description, "Asked of the human only when the profile sets auto.read to ask; auto by default.") {
t.Errorf("lockmq_read description should explain the auto.read approval rule: %s", tl.Description)
}
}
want := Names()
slices.Sort(got)
Expand Down