From 85bb45b6e786192d8404d9f9899d0fab598940e6 Mon Sep 17 00:00:00 2001 From: Robbie Court Date: Tue, 14 Jul 2026 16:01:43 +0100 Subject: [PATCH] RelatedTools: drop find_stocks/find_combo_publications entries (tools retired) Those MCP tools were removed as duplicates of the FindStocks/FindComboPublications run_query query_types, which are already offered in the Queries array. Drop the now-dangling RelatedTools entries so get_term_info doesn't point the LLM at tools that no longer exist. Bump 1.22.27 -> 1.22.28. --- src/vfbquery/_version.py | 2 +- src/vfbquery/vfb_queries.py | 20 ++++---------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/vfbquery/_version.py b/src/vfbquery/_version.py index 901dd64..4c383a6 100644 --- a/src/vfbquery/_version.py +++ b/src/vfbquery/_version.py @@ -6,4 +6,4 @@ cache's version stamp can never drift apart. """ -__version__ = "1.22.27" +__version__ = "1.22.28" diff --git a/src/vfbquery/vfb_queries.py b/src/vfbquery/vfb_queries.py index 4f4de3a..b9e667a 100644 --- a/src/vfbquery/vfb_queries.py +++ b/src/vfbquery/vfb_queries.py @@ -1317,27 +1317,15 @@ def term_info_parse_object(results, short_form): if sf.startswith(("FBgn", "FBal", "FBti", "FBtp", "FBco", "FBst")): q = FindStocks_to_schema(termInfo["Name"], {"short_form": sf}) queries.append(q) - # Also surface the dedicated find_stocks MCP tool, which exposes - # the optional collection_filter parameter (Bloomington, Kyoto, - # VDRC, etc.) that the run_query/FindStocks path does not. - termInfo["RelatedTools"].append({ - "tool": "find_stocks", - "label": f"Find fly stocks for {termInfo['Name']} (with optional stock-centre filter)", - "default_args": {"feature_id": sf}, - }) + # FindStocks is offered as a run_query query_type above (in Queries); + # the dedicated find_stocks MCP tool was retired, so no RelatedTools entry. # FlyBase combination publications — for FBco terms if sf.startswith("FBco"): q = FindComboPublications_to_schema(termInfo["Name"], {"short_form": sf}) queries.append(q) - # Also surface the dedicated find_combo_publications MCP tool, - # which returns full per-publication metadata (DOI, PMID, miniref, - # year) ready for citation rendering. - termInfo["RelatedTools"].append({ - "tool": "find_combo_publications", - "label": f"Find publications for {termInfo['Name']} (with full citation metadata)", - "default_args": {"fbco_id": sf}, - }) + # FindComboPublications is offered as a run_query query_type above; + # the dedicated find_combo_publications MCP tool was retired. # Bring the parent class's query menu down onto selected Individual # instances, reproducing the legacy term-info builder