Skip to main content
Glama
vjouenne76

MCP Server Scaffold

by vjouenne76

get_current_time

Retrieve the current date and time for timestamping, scheduling, or time-sensitive operations in AI workflows.

Instructions

Get the current date and time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for 'get_current_time' tool that creates a new Date object and returns the current time in ISO string format wrapped in the MCP response structure.
    case 'get_current_time':
      const now = new Date();
      return {
        content: [
          {
            type: 'text',
            text: `Current time: ${now.toISOString()}`,
          },
        ],
      };
  • The schema definition for the 'get_current_time' tool, registered in the listTools response. It has no required input properties.
    {
      name: 'get_current_time',
      description: 'Get the current date and time',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    } as Tool,
  • src/index.ts:44-69 (registration)
    The registration of available tools in the ListToolsRequestSchema handler, including 'get_current_time'.
        tools: [
          {
            name: 'echo',
            description: 'Echo back the provided message',
            inputSchema: {
              type: 'object',
              properties: {
                message: {
                  type: 'string',
                  description: 'The message to echo back',
                },
              },
              required: ['message'],
            },
          } as Tool,
          {
            name: 'get_current_time',
            description: 'Get the current date and time',
            inputSchema: {
              type: 'object',
              properties: {},
            },
          } as Tool,
        ],
      };
    });
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes the action ('Get') but lacks details such as timezone handling, format of the returned date/time, whether it's real-time or cached, or any rate limits. This leaves significant gaps for an agent to understand how the tool behaves.

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 a single, clear sentence with no wasted words. It's front-loaded with the core purpose, making it highly efficient and easy to parse for an agent.

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 output schema, no annotations), the description is minimally adequate. However, it lacks details on the return format (e.g., ISO string, timestamp) and behavioral aspects like timezone, which are important for completeness even in simple tools.

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 input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, and it adds value by specifying what is retrieved ('current date and time'), which aligns well with the lack of inputs.

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 clearly states the tool's purpose with a specific verb ('Get') and resource ('current date and time'), making it immediately understandable. It doesn't distinguish from its sibling tool 'echo', but the purpose is unambiguous and not tautological with the name.

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 'echo' or other time-related tools that might exist. It states what it does but offers no context about appropriate use cases or exclusions.

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/vjouenne76/mcp-server-scaffold'

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