Skip to content

feat(tools): route social listening questions to query_lfx_lens - #112

Merged
joanreyero merged 1 commit into
mainfrom
feature/social-listening-lens-routing
Aug 4, 2026
Merged

feat(tools): route social listening questions to query_lfx_lens#112
joanreyero merged 1 commit into
mainfrom
feature/social-listening-lens-routing

Conversation

@joanreyero

Copy link
Copy Markdown
Contributor

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_lens tool description's "always use this tool" list and to the input field 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 build passes
  • go test ./internal/tools/... passes
  • After the lfx-lens rollout: end-to-end via local MCP server (query_lfx_lens with "how is Kubernetes trending on social media?")

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings August 4, 2026 15:00

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@joanreyero
joanreyero merged commit cb2b141 into main Aug 4, 2026
8 checks passed
@joanreyero
joanreyero deleted the feature/social-listening-lens-routing branch August 4, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants