Skip to main content
Glama
CupOfOwls

Kroger MCP Server

get_current_datetime

Retrieve the current system date and time for comparing with cart checkout dates, order history, and time-sensitive operations.

Instructions

    Get the current system date and time.
    
    This tool is useful for comparing with cart checkout dates, order history,
    or any other time-sensitive operations.
    
    Returns:
        Dictionary containing current date and time information
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The asynchronous handler function that executes the tool logic, fetching and formatting the current datetime in various formats including ISO, date, time, timestamp, and human-readable string.
    async def get_current_datetime(ctx: Context = None) -> Dict[str, Any]:
        """
        Get the current system date and time.
        
        This tool is useful for comparing with cart checkout dates, order history,
        or any other time-sensitive operations.
        
        Returns:
            Dictionary containing current date and time information
        """
        now = datetime.now()
        
        return {
            "success": True,
            "datetime": now.isoformat(),
            "date": now.date().isoformat(),
            "time": now.time().isoformat(),
            "timestamp": int(now.timestamp()),
            "formatted": now.strftime("%A, %B %d, %Y at %I:%M:%S %p")
        }
  • The register_tools function in the utility_tools module where the get_current_datetime tool is defined and registered using the @mcp.tool() decorator.
    def register_tools(mcp):
        """Register utility tools with the FastMCP server"""
        
        @mcp.tool()
  • The invocation of utility_tools.register_tools(mcp) in the create_server function, which triggers the registration of the get_current_datetime tool.
    utility_tools.register_tools(mcp)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does and provides usage context, but doesn't disclose important behavioral traits like whether this returns local or UTC time, the specific format of the returned dictionary, or any rate limits. The description adds value but leaves significant behavioral questions unanswered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured with three concise paragraphs: purpose statement, usage context, and return information. Every sentence earns its place, there's no redundancy, and the information is front-loaded with the core purpose stated first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no annotations, no output schema), the description is reasonably complete for the core functionality. However, it doesn't specify the format of the returned dictionary or timezone considerations, which would be helpful for an agent to properly interpret the results. The description covers the basics but leaves some implementation details unclear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't waste space discussing parameters that don't exist, which is efficient and correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('current system date and time'), distinguishing it from all sibling tools which focus on e-commerce operations like cart management, product search, and authentication. It provides a concrete function that is immediately understandable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool ('comparing with cart checkout dates, order history, or any other time-sensitive operations'), giving practical examples. However, it doesn't explicitly state when NOT to use it or name specific alternatives, which prevents a perfect score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/CupOfOwls/kroger-mcp'

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