Skip to main content
Glama

get_current_date

Retrieve today's date in YYYY-MM-DD format for legal document analysis and accurate date calculations within legal research workflows.

Instructions

Get the current date in YYYY-MM-DD format. Useful for legal document analysis and date calculations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • app.py:80-110 (handler)
    The handler function get_actual_date() that executes the tool logic, returning the current date in YYYY-MM-DD format using datetime.now().
    def get_actual_date() -> str: """Returns the current date in YYYY-MM-DD format for legal research and document analysis. This function provides the current system date, which is essential for legal document analysis, calculating effective dates, and determining document validity periods in legal research contexts. Returns: str: Current date string in YYYY-MM-DD format, or empty string if an error occurs. Examples: User asks: "What is today's date?": Returns: "2025-01-17" User asks: "Show me the current date for legal document analysis": Returns: "2025-01-17" User asks: "Give me today's date in YYYY-MM-DD format": Returns: "2025-01-17" User asks: "What date is it right now?": Returns: "2025-01-17" User asks: "I need the current date for my legal report": Returns: "2025-01-17" """ logger.debug("get_actual_date called") try: result = datetime.now().strftime("%Y-%m-%d") logger.info(f"get_actual_date returned: {result}") return result except Exception as e: logger.error(f"Error: {e}") return ""
  • app.py:75-79 (registration)
    The @app.tool decorator that registers the 'get_current_date' tool with FastMCP, including description and tags.
    @app.tool( name="get_current_date", description="Get the current date in YYYY-MM-DD format. Useful for legal document analysis and date calculations.", tags={"dates", "utility"} )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/numikel/law-scrapper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server