You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e33f079
Browse filesBrowse the repository at this point in the historyBrowse files
description="Get current time in a specific timezone",
135
-
inputSchema={
136
-
"type": "object",
137
-
"properties": {
138
-
"timezone": {
139
-
"type": "string",
140
-
"description": f"IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use '{local_tz}' as local timezone if no timezone provided by the user.",
141
-
}
139
+
returnListToolsResult(
140
+
tools=[
141
+
Tool(
142
+
name=TimeTools.GET_CURRENT_TIME.value,
143
+
description="Get current time in a specific timezone",
144
+
input_schema={
145
+
"type": "object",
146
+
"properties": {
147
+
"timezone": {
148
+
"type": "string",
149
+
"description": f"IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use '{local_tz}' as local timezone if no timezone provided by the user.",
150
+
}
151
+
},
152
+
"required": ["timezone"],
142
153
},
143
-
"required": ["timezone"],
144
-
},
145
-
annotations=ToolAnnotations(
146
-
readOnlyHint=True,
147
-
destructiveHint=False,
148
-
idempotentHint=True,
149
-
openWorldHint=False,
154
+
annotations=ToolAnnotations(
155
+
read_only_hint=True,
156
+
destructive_hint=False,
157
+
idempotent_hint=True,
158
+
open_world_hint=False,
159
+
),
150
160
),
151
-
),
152
-
Tool(
153
-
name=TimeTools.CONVERT_TIME.value,
154
-
description="Convert time between timezones",
155
-
inputSchema={
156
-
"type": "object",
157
-
"properties": {
158
-
"source_timezone": {
159
-
"type": "string",
160
-
"description": f"Source IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use '{local_tz}' as local timezone if no source timezone provided by the user.",
161
-
},
162
-
"time": {
163
-
"type": "string",
164
-
"description": "Time to convert in 24-hour format (HH:MM)",
165
-
},
166
-
"target_timezone": {
167
-
"type": "string",
168
-
"description": f"Target IANA timezone name (e.g., 'Asia/Tokyo', 'America/San_Francisco'). Use '{local_tz}' as local timezone if no target timezone provided by the user.",
161
+
Tool(
162
+
name=TimeTools.CONVERT_TIME.value,
163
+
description="Convert time between timezones",
164
+
input_schema={
165
+
"type": "object",
166
+
"properties": {
167
+
"source_timezone": {
168
+
"type": "string",
169
+
"description": f"Source IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use '{local_tz}' as local timezone if no source timezone provided by the user.",
170
+
},
171
+
"time": {
172
+
"type": "string",
173
+
"description": "Time to convert in 24-hour format (HH:MM)",
174
+
},
175
+
"target_timezone": {
176
+
"type": "string",
177
+
"description": f"Target IANA timezone name (e.g., 'Asia/Tokyo', 'America/San_Francisco'). Use '{local_tz}' as local timezone if no target timezone provided by the user.",
0 commit comments