41 "name" =>
"ask_for_clarification",
42 "description" =>
"Asks the user for more information needed to complete a Dolibarr ERP-related task. The client-side JavaScript will append the user's response at the end of the original query to maintain context. Only use this when the question is clearly about Dolibarr ERP.",
49 "description" =>
"The specific question to ask the user about Dolibarr ERP."
52 "required" => [
"question"]
56 "name" =>
"respond_to_user",
57 "description" =>
"Sends a one-way informational message to the user about Dolibarr ERP objects and functions ONLY. This tool is strictly restricted to displaying information or errors related to Dolibarr ERP. Do NOT use this tool for general knowledge questions, personal advice, or topics unrelated to Dolibarr ERP.",
63 "description" =>
"The informational message to display to the user."
66 "required" => [
"message"]
70 "name" =>
"ask_for_confirmation",
71 "description" =>
"Asks the user to confirm a destructive or critical action before proceeding. The client-side JavaScript will store the original intent and re-execute it if the user confirms.",
77 "description" =>
"A short, verb-based description of the action (e.g., 'delete invoice')."
81 "description" =>
"A clear, human-readable summary of what will be affected."
84 "required" => [
"action",
"details"]
88 "name" =>
"reject_general_question",
89 "description" =>
"Use this tool when the user asks a question that is not related to Dolibarr ERP objects and functions. This tool should not be used for any general knowledge questions, personal advice, or topics outside the scope of Dolibarr ERP.",
95 "description" =>
"A polite message explaining that you can only answer questions about Dolibarr ERP."
98 "required" => [
"message"]
143 public function execute(
string $name, array $args): ?array
149 case 'ask_for_clarification':
150 case 'respond_to_user':
151 case 'ask_for_confirmation':
152 case 'reject_general_question':