langchain - 💡(How to fix) Fix Add Disvr tool discovery integration to langchain-community [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langchain-ai/langchain#36362Fetched 2026-04-08 01:48:39
View on GitHub
Comments
3
Participants
3
Timeline
11
Reactions
0
Timeline (top)
commented ×3mentioned ×3subscribed ×3closed ×1
RAW_BUFFERClick to expand / collapse

Feature Request

Add Disvr integration to langchain-community — a ranking engine for AI agent tools.

Motivation

There are 6,000+ MCP servers but no quality ranking layer. Disvr indexes tools, ranks them by real usage signals, and helps agents find the best tool in one API call.

What it adds

  • DisvrDiscoverTool — find the best tools for a task
  • DisvrToolDetails — get install instructions, env vars, tool functions

Package

Already published on PyPI: langchain-disvr

Zero dependencies beyond httpx + langchain-core.

extent analysis

Fix Plan

To integrate Disvr into langchain-community, we will create a new package, langchain-disvr, and add two main functions: DisvrDiscoverTool and DisvrToolDetails.

Implementation Steps

  • Install the langchain-disvr package using pip: pip install langchain-disvr
  • Import the package in your langchain-community code: import langchain_disvr
  • Use the DisvrDiscoverTool function to find the best tools for a task:
from langchain_disvr import DisvrDiscoverTool

def find_best_tool(task):
    disvr_tool = DisvrDiscoverTool()
    best_tool = disvr_tool.find_best_tool(task)
    return best_tool
  • Use the DisvrToolDetails function to get install instructions, env vars, and tool functions:
from langchain_disvr import DisvrToolDetails

def get_tool_details(tool_id):
    disvr_tool = DisvrToolDetails()
    tool_details = disvr_tool.get_tool_details(tool_id)
    return tool_details

Verification

To verify the integration, you can test the find_best_tool and get_tool_details functions with sample inputs:

task = "text classification"
best_tool = find_best_tool(task)
print(best_tool)

tool_id = best_tool["id"]
tool_details = get_tool_details(tool_id)
print(tool_details)

This should output the best tool for the given task and its details.

Extra Tips

  • Make sure to handle errors and exceptions properly when using the DisvrDiscoverTool and DisvrToolDetails functions.
  • You can customize the DisvrDiscoverTool function to use different ranking algorithms or filters.
  • Refer to the Disvr documentation for more information on how to use the API.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

langchain - 💡(How to fix) Fix Add Disvr tool discovery integration to langchain-community [3 comments, 3 participants]