get_current_time
Retrieve the current local date and time formatted as YYYY-MM-DD HH:MM:SS for timestamping or scheduling purposes within the MUSTer campus system.
Instructions
Get current local datetime as YYYY-MM-DD HH:MM:SS.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:185-188 (handler)Handler function that executes the tool logic: returns the current local datetime formatted as YYYY-MM-DD HH:MM:SS.def tool_get_current_time() -> str: current_time = datetime.now() return current_time.strftime("%Y-%m-%d %H:%M:%S")
- main.py:82-86 (schema)Tool schema definition: name, description, and empty input schema (no parameters required).Tool( name="get_current_time", description="Get current local datetime as YYYY-MM-DD HH:MM:SS.", inputSchema={"type": "object", "properties": {}, "required": []}, ),
- main.py:217-218 (registration)Tool dispatch/registration in the call_tool handler: checks name and calls the tool_get_current_time function.if name == "get_current_time": return _wrap_json(tool_get_current_time())