Skip to main content
Glama
vjouenne76

MCP Server Scaffold

by vjouenne76

get_current_time

Retrieve the current date and time in a standardized format using this tool in the MCP Server Scaffold, designed for secure and controlled interactions within AI systems.

Instructions

Get the current date and time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'get_current_time' tool that returns the current date and time in ISO format using new Date().
    case 'get_current_time': const now = new Date(); return { content: [ { type: 'text', text: `Current time: ${now.toISOString()}`, }, ], };
  • src/index.ts:59-66 (registration)
    Registration of the 'get_current_time' tool in the listTools handler, including name, description, and empty input schema.
    { name: 'get_current_time', description: 'Get the current date and time', inputSchema: { type: 'object', properties: {}, }, } as Tool,

Other Tools

Related 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