Skip to main content
Glama
currentspace

Bootstrap MCP Server

by currentspace

get_time

Retrieve the current time for applications requiring accurate timestamp data in development workflows.

Instructions

Get the current time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_time' tool. It retrieves the current date and time using new Date() and formats it as an ISO string in the MCP tool response format.
    private handleGetTime() { const now = new Date() return { content: [ { type: 'text', text: `Current time: ${now.toISOString()}`, }, ], } }
  • The tool schema definition including name, description, and empty input schema (no parameters required). This is part of the TOOLS array used for tool listing.
    { name: 'get_time', description: 'Get the current time', inputSchema: { type: 'object', properties: {}, }, },
  • src/server.ts:86-87 (registration)
    Registration of the tool handler in the switch statement within the CallToolRequestSchema request handler, dispatching calls to 'get_time' to the handleGetTime method.
    case 'get_time': return this.handleGetTime()
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/currentspace/bootstrap_mcp'

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