Granularity of Tools Balance
Too fine-grained — explosion of the number of tools and choice burden for LLM; too coarse-grained — excessive complexity of a single tool. The criterion for merging is similarity of functions and overlap of scenarios: extract_pdf_text, extract_docx_content, and extract_pptx_content are better combined into read_document with a file_type parameter. Do not merge if the parameter sets differ significantly or the function is used extremely frequently. More than ~100 tools — even advanced models make mistakes in selection.
Related: [Tool Design], [Art of Tool Description]