feat(tools): route social listening questions to query_lfx_lens - #112
Merged
Conversation
The Lens MCP agent gains a social listening semantic model (linuxfoundation/lfx-lens#29, backed by linuxfoundation/lf-dbt#2713) covering Octolens mentions: volume, sentiment, platform share of voice, and author follower reach. The semantic layer has no social listening data, so add it to the 'always use this tool' list in the query_lfx_lens description and to the input field guidance so client LLMs route those questions here. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Joan Reyero <joan@reyero.io>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
There was a problem hiding this comment.
Pull request overview
Routes social-listening questions to query_lfx_lens rather than the semantic-layer tool.
Changes:
- Adds social-listening scenarios to the Lens tool description.
- Updates input schema guidance with mentions, sentiment, and reach.
niravpatel27
approved these changes
Aug 4, 2026
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
The Lens MCP agent is gaining a social listening semantic model (linuxfoundation/lfx-lens#29, backed by linuxfoundation/lf-dbt#2713) covering Octolens mentions: volume, sentiment, platform share of voice, and author follower reach.
The semantic layer has no social listening data, so this adds social listening to the
query_lfx_lenstool description's "always use this tool" list and to theinputfield guidance, so client LLMs route those questions to Lens instead of the semantic layer.Rollout order
Merge after linuxfoundation/lf-dbt#2713 and linuxfoundation/lfx-lens#29 land and the semantic model sync runs — until then the Lens agent will answer social listening questions with "not in my catalog".
Test plan
make buildpassesgo test ./internal/tools/...passesquery_lfx_lenswith "how is Kubernetes trending on social media?")🤖 Generated with Claude Code