create_supertag
Create structured tags in Tana workspaces to organize and categorize information effectively using the Tana MCP Server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetNodeId | No | SCHEMA | |
| name | Yes | ||
| description | No |
Implementation Reference
- src/server/tana-mcp-server.ts:469-497 (handler)Handler function that creates a plain Tana node under the target (default 'SCHEMA') with the supertag SYS_T01, effectively creating a new supertag.async ({ targetNodeId, name, description }) => { try { const node: TanaPlainNode = { name, description, supertags: [{ id: 'SYS_T01' }] }; 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 supertag: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; }
- Zod input schema defining parameters for the create_supertag tool.{ targetNodeId: z.string().optional().default('SCHEMA'), name: z.string(), description: z.string().optional()
- src/server/tana-mcp-server.ts:462-498 (registration)Registration of the create_supertag tool on the MCP server using this.server.tool.this.server.tool( 'create_supertag', { targetNodeId: z.string().optional().default('SCHEMA'), name: z.string(), description: z.string().optional() }, async ({ targetNodeId, name, description }) => { try { const node: TanaPlainNode = { name, description, supertags: [{ id: 'SYS_T01' }] }; 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 supertag: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } }