current_date
Retrieve today's date in ISO 8601 format for timestamping and date-based operations within Fibery workflows.
Instructions
Get today's date in ISO 8601 format (YYYY-mm-dd.HH:MM:SS.000Z)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The asynchronous handler function that computes and returns the current date in ISO 8601 format as text content.async def handle_current_date() -> List[mcp.types.TextContent]: date = datetime.now().strftime("%Y-%m-%dT%H:%M:%S.000Z") return [mcp.types.TextContent(type="text", text=date)]
- Defines the tool object including name, description, and empty input schema (no parameters required). This is used for tool registration.def current_date_tool() -> mcp.types.Tool: return mcp.types.Tool( name=current_date_tool_name, description="Get today's date in ISO 8601 format (YYYY-mm-dd.HH:MM:SS.000Z)", inputSchema={"type": "object"}, )
- src/fibery_mcp_server/tools/__init__.py:15-16 (registration)Registers the current_date_tool in the list of available tools returned by MCP's list_tools handler.def handle_list_tools(): return [current_date_tool(), schema_tool(), database_tool(), query_tool(), create_entity_tool(), create_entities_batch_tool(), update_entity_tool()]
- src/fibery_mcp_server/tools/__init__.py:26-27 (registration)Dispatches calls to the 'current_date' tool to its handler function in the central tool_call handler.elif name == current_date_tool_name: return await handle_current_date()
- Constant defining the tool name string used in registration and dispatch.current_date_tool_name = "current_date"