Skip to main content
Glama

create_date_node

Add date-based nodes to Tana workspaces by specifying dates, descriptions, and tags to organize time-sensitive information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNodeIdNo
dateYes
descriptionNo
supertagsNo

Implementation Reference

  • Complete tool definition including registration, input schema (Zod), and handler logic for creating a Tana date node.
    this.server.tool( 'create_date_node', { targetNodeId: z.string().optional(), date: z.string(), description: z.string().optional(), supertags: z.array(SupertagSchema).optional() }, async ({ targetNodeId, date, description, supertags }) => { try { const node: TanaDateNode = { dataType: 'date', name: date, description, supertags }; const result = await this.tanaClient.createNode(targetNodeId, node); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ], isError: false }; } catch (error) { return { content: [ { type: 'text', text: `Error creating date node: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } } );
  • TypeScript interface defining the structure of a TanaDateNode used by the tool handler.
    export interface TanaDateNode extends TanaBaseNode { dataType: 'date'; name: string; // ISO 8601 format }
  • Zod schema for supertags used in the create_date_node input schema.
    const SupertagSchema = z.object({ id: z.string(), fields: z.record(z.string()).optional() });
  • Documentation reference for the tool in the API docs resource.
    - \`create_date_node\`: Create a date node

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/tim-mcdonnell/tana-mcp'

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