get_current_time
Retrieve the current time to timestamp interactions and manage knowledge graph entries within the Memory Custom MCP server.
Instructions
Get the current time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:55-57 (handler)Core handler function that executes the tool logic: returns the current time in ISO string format.async getCurrentTime() { return new Date().toISOString(); }
- index.ts:591-596 (handler)MCP CallToolRequestSchema handler that invokes the getCurrentTime method and formats the response.case "get_current_time": return { content: [ { type: "text", text: await knowledgeGraphManager.getCurrentTime() }, ], };
- index.ts:303-310 (registration)Tool registration in ListToolsRequestSchema, including name, description, and empty input schema.{ name: "get_current_time", description: "Get the current time", inputSchema: { type: "object", properties: {}, }, },