CAMEL-23473: camel-jbang-mcp - drop verbose description from catalog list responses and lower default limit#23414
Merged
Merged
Conversation
…list responses and lower default limit The list-style catalog tools return up to 50 records, each carrying a multi-sentence description. The LLM almost never needs the description to decide what to drill into; name + title are enough, and the matching *_doc tool already carries the description. * Remove `description` from `ComponentInfo`, `DataFormatInfo`, `LanguageInfo`, `EipInfo`. * Lower the default `limit` from 50 to 20 for `camel_catalog_components` and `camel_catalog_dataformats`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
Croway
approved these changes
May 21, 2026
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
davsclaus
approved these changes
May 21, 2026
Contributor
|
🧪 CI tested the following changed modules:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slims down the four catalog list tools (CAMEL-23473). Each list response previously
included a multi-sentence
descriptionper item and could return up to 50 items. The LLM rarelyneeds the description in a list —
name+titleare enough to decide what to drill into, andthe matching
*_doctool already carries the description.Changes
ComponentInfo,DataFormatInfo,LanguageInfo,EipInforecords: removed thedescriptionfield. Mapping methods updated accordingly.
camel_catalog_componentsandcamel_catalog_dataformatsdefaultlimitlowered from 50 to 20.camel_catalog_languagesandcamel_catalog_eipsdid not previously expose alimitargumentand are left as-is.
camel_catalog_componentstool description updated to reflect the new payload shape and topoint at
camel_catalog_component_docfor descriptions.camel-jbang-mcpincamel-4x-upgrade-guide-4_21.adoc.Test plan
mvn -DskipTests installindsl/camel-jbang/camel-jbang-mcp(formats + builds)mvn testindsl/camel-jbang/camel-jbang-mcp— 255 tests pass, including 2 new ones:listInfoRecordsCarryNoDescription(reflective check across all four list records)defaultLimitCapsResultsAtTwenty(asserts defaultlimitreturns ≤ 20 items)componentInfoNullFieldsAreOmittedFromJsonupdated for the newComponentInfoaritymvn clean install -DskipTestsfrom repo root — full reactor build green, no uncommittedregenerated artifacts
Claude Code on behalf of Andrea Cosentino