Skip to main content
Glama

getNow

Retrieve the current timestamp for time-sensitive calculations or data logging in mathematical expressions.

Instructions

Get the current timestamp

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • index.ts:55-64 (registration)
    Registration of the "getNow" tool, including schema and inline execute handler.
    server.addTool({
        name: "getNow",
        description: "Get the current timestamp",
        parameters: z.object({
    
        }),
        execute: async (args) => {
            return String(getNow());
        },
    });
  • Input schema for "getNow" tool: empty object (no parameters).
    parameters: z.object({
    
    }),
  • index.ts:61-63 (handler)
    Handler (execute function) for "getNow" tool: calls getNow() and returns as string.
    execute: async (args) => {
        return String(getNow());
    },
  • Core implementation of getNow(): returns current timestamp via Date.now().
    function getNow() {
        return Date.now();
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Get the current timestamp' implies a read-only operation that returns time data, but it doesn't specify format (e.g., ISO 8601, Unix timestamp), timezone behavior, or whether it's real-time vs. cached. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

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 'Get the current timestamp' is a single, efficient sentence that front-loads the core functionality with zero wasted words. Every word earns its place by clearly conveying what the tool does without unnecessary elaboration.

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

Completeness2/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 minimally adequate but incomplete. It doesn't explain what format the timestamp is returned in, which is critical context for a time-related tool. Without annotations or output schema, the description should provide more behavioral detail to be truly complete.

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 schema already fully documents the lack of inputs. The description doesn't need to add parameter information, and it correctly implies no parameters are required by not mentioning any. This meets the baseline expectation for parameterless tools.

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

Purpose4/5

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

The description 'Get the current timestamp' clearly states the verb 'Get' and the resource 'current timestamp', making the purpose immediately understandable. It distinguishes from siblings like 'getDateByTimestamp' which requires input parameters. However, it doesn't explicitly differentiate from 'cal' or 'batchGetDateByTimestamp', keeping it from a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'getDateByTimestamp' or 'batchGetDateByTimestamp'. It doesn't mention that this tool is for getting the current time without input, while siblings require timestamps as input. No explicit when/when-not or alternative recommendations are included.

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/pwh-pwh/cal-mcp'

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