An agent's ticket-search tool needs to describe its search rules, accepted inputs, and result limits.
The Java example returns five summaries and says when more match. I describe context retrieval separately, keeping comment histories out of search.
Read the walkthrough and subscribe on The Main Thread.