Skip to main content
Glama
currentspace

Bootstrap MCP Server

by currentspace

get_time

Retrieve the current system time using this tool from the Bootstrap MCP Server. Ideal for applications requiring accurate time synchronization or logging.

Instructions

Get the current time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the 'get_time' tool. It fetches the current date and time using new Date() and returns it in ISO string format as text content.
    private handleGetTime() { const now = new Date() return { content: [ { type: 'text', text: `Current time: ${now.toISOString()}`, }, ], } }
  • The schema definition for the 'get_time' tool, specifying its name, description, and an empty input schema (no parameters required).
    { name: 'get_time', description: 'Get the current time', inputSchema: { type: 'object', properties: {}, }, },
  • src/server.ts:86-87 (registration)
    Registration of the 'get_time' tool handler in the switch statement for tool execution dispatching.
    case 'get_time': return this.handleGetTime()

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/currentspace/bootstrap_mcp'

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