You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/05/12 07:48:00 UTC
[jira] [Updated] (CAMEL-23474) camel-jbang-mcp: stop echoing input route in camel_route_context response
[ https://issues.apache.org/jira/browse/CAMEL-23474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrea Cosentino updated CAMEL-23474:
-------------------------------------
Fix Version/s: 4.21.0
> camel-jbang-mcp: stop echoing input route in camel_route_context response
> -------------------------------------------------------------------------
>
> Key: CAMEL-23474
> URL: https://issues.apache.org/jira/browse/CAMEL-23474
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Affects Versions: 4.21.0
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.21.0
>
>
> h3. Context
> Part of an effort to reduce token consumption of the {{camel-jbang-mcp}} MCP server. The module exposes 31 tools, 6 resources, and 3 prompts; both tool schemas (loaded once per session) and tool results (per call) contribute to LLM context-window pressure for every user of the server.
> Related tickets in this effort are linked via "Relates to".
> {{ExplainTools.java:93}} returns the verbatim input route inside {{RouteContextResult}} (record at line 158). The LLM just sent the route as input — sending it back in the response is pure waste, especially for multi-line YAML routes.
> h3. Proposed change
> * Remove {{String route}} from {{RouteContextResult}} ({{ExplainTools.java:158-161}}).
> * Update the constructor call at {{ExplainTools.java:93}} accordingly.
> h3. Acceptance
> {{camel_route_context}} response size no longer scales with input route size.
> ----
> _Filed by Claude Code on behalf of Andrea Cosentino_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)