Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
IBM
GitHub Repository: IBM/watson-machine-learning-samples
Path: blob/master/cloud/data/SDG/seed_data/tool_calling/base_tools.yaml
3909 views
1
# (c) Copyright IBM Corp. 2025
2
3
autobot:
4
calculate_bmi:
5
description: Calculate the Body Mass Index (BMI)
6
name: calculate_bmi
7
parameters:
8
properties:
9
height:
10
description: The height in meters
11
type: number
12
weight:
13
description: The weight in kilograms
14
type: number
15
required:
16
- weight
17
- height
18
type: object
19
is_healthy_by_bmi:
20
description: Determine whether a person with given BMI is healthy or not
21
name: is_healthy_by_bmi
22
parameters:
23
properties:
24
bmi:
25
description: The BMI (body mass index) of a person
26
type: number
27
required:
28
- bmi
29
type: object
30
calculate_fahrenheit_to_celsius:
31
description: Convert given temperature from Fahrenheit to Celsius
32
name: calculate_fahrenheit_to_celsius
33
parameters:
34
properties:
35
temperature:
36
description: The temperature in Fahrenheit
37
type: number
38
required:
39
- temperature
40
type: object
41
calculate_circle_area:
42
description: Calculate the area of a circle
43
name: calculate_circle_area
44
parameters:
45
properties:
46
radius:
47
description: The radius of the circle
48
type: number
49
required:
50
- radius
51
type: object
52
calculate_circle_circumference:
53
description: Calculate the circumference of a circle
54
name: calculate_circle_circumference
55
parameters:
56
properties:
57
radius:
58
description: The radius of the circle
59
type: number
60
required:
61
- radius
62
type: object
63
calculate_discount:
64
description: Calculate the discounted price of an item
65
name: calculate_discount
66
parameters:
67
properties:
68
discount_percentage:
69
description: The percentage of discount
70
type: number
71
maximum_retail_price:
72
description: The maximum retail price of the product (i.e the original price)
73
type: number
74
required:
75
- maximum_retail_price
76
- discount_percentage
77
type: object
78
calculate_loan_payment:
79
description: Calculate the monthly loan payment
80
name: calculate_loan_payment
81
parameters:
82
properties:
83
interest_rate:
84
description: The annual interest rate of the loan
85
type: number
86
term:
87
description: The loan term in years
88
type: integer
89
principal:
90
description: The principal amount of the loan
91
type: number
92
required:
93
- principal
94
- interest_rate
95
- term
96
type: object
97
calculate_repayment_schedule:
98
description: Calculate the loan repayment schedule for a given loan
99
name: calculate_repayment_schedule
100
parameters:
101
properties:
102
interest_rate:
103
description: The annual interest rate
104
type: number
105
loan_amount:
106
description: The amount of the loan
107
type: number
108
loan_term:
109
description: The loan term in years
110
type: number
111
required:
112
- loan_amount
113
- interest_rate
114
- loan_term
115
type: object
116
find_books:
117
description: Search books based on given attributes
118
name: find_books
119
parameters:
120
properties:
121
author:
122
description: The author of the book
123
type: string
124
genre:
125
description: The genre of the book
126
type: string
127
title:
128
description: The title of the book
129
type: string
130
type: object
131
132