Context
Identified during review of PR #924 (feat(mcp): catalog/search-tools deterministic lexical search).
Problem
parse_search_tools_opts/1 (catalog_builtins.ex:382-390) and parse_list_tools_opts/1 (catalog_builtins.ex:412-420) are character-for-character identical. As more catalog builtins with options are added, this duplication will grow.
Suggested Fix
Extract a shared parse_catalog_opts/1 private function and call it from both parse_search_tools_opts/1 and parse_list_tools_opts/1. Mechanical rename/extract with no behavior change.
Benefit
Removes duplication and makes adding future catalog builtins with options simpler.
Context
Identified during review of PR #924 (feat(mcp): catalog/search-tools deterministic lexical search).
Problem
parse_search_tools_opts/1(catalog_builtins.ex:382-390) andparse_list_tools_opts/1(catalog_builtins.ex:412-420) are character-for-character identical. As more catalog builtins with options are added, this duplication will grow.Suggested Fix
Extract a shared
parse_catalog_opts/1private function and call it from bothparse_search_tools_opts/1andparse_list_tools_opts/1. Mechanical rename/extract with no behavior change.Benefit
Removes duplication and makes adding future catalog builtins with options simpler.