get_current_time
Obtain the current date and time in ISO 8601 format. Use it to add accurate timestamps to logs, synchronize actions, or record events with precise temporal data.
Instructions
Return the current date and time in ISO 8601 format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/friday_mcp_server/tools/system.py:9-14 (registration)The get_current_time tool is registered as an MCP tool via the @mcp.tool() decorator inside the register() function. The registration function is called from tools/__init__.py.
def register(mcp, *, config) -> None: @mcp.tool() def get_current_time() -> str: """Return the current date and time in ISO 8601 format.""" return datetime.datetime.now(datetime.UTC).isoformat() - The actual handler function for get_current_time: returns the current date and time in ISO 8601 format using datetime.datetime.now(datetime.UTC).isoformat().
@mcp.tool() def get_current_time() -> str: """Return the current date and time in ISO 8601 format.""" return datetime.datetime.now(datetime.UTC).isoformat() - src/friday_mcp_server/tools/__init__.py:6-7 (registration)The register_all_tools function calls system.register(mcp, config=config) which triggers the registration of get_current_time.
def register_all_tools(mcp, *, config, skill_store) -> None: system.register(mcp, config=config)