From 3b6f56f93c829a741df4ded189a4b8c98ce7fdff Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 26 Sep 2026 08:24:02 +0200 Subject: Add calc, mail, playing and finance example tools All read-only: each command is fixed in its tool file, so the model fills parameters but can never reach mailctl tag or firefly tx add. qalc reads "17.5% of 240" as a modulo, so the calc hint shows percent as a factor. Co-Authored-By: Claude Opus 5.5 --- examples/tools/calc.toml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/tools/calc.toml (limited to 'examples/tools/calc.toml') diff --git a/examples/tools/calc.toml b/examples/tools/calc.toml new file mode 100644 index 0000000..c97ef04 --- /dev/null +++ b/examples/tools/calc.toml @@ -0,0 +1,7 @@ +description = "Calculator: arithmetic, percentages, unit and currency conversion, date math (days between dates). Use it instead of computing yourself." +command = ["qalc", "-t", "{expression}"] +timeout = 10 + +[params.expression] +type = "string" +description = "A qalc expression. Percent as a factor: 240 * 17.5%, 80 - 15% (not \"17.5% of 240\", qalc reads % there as modulo). Also 70 mph to km/h, 100 EUR to USD, days(today; 2026-12-25)." -- cgit v1.2.3