Skip to main content
Glama
suhitanantula

LLV Helix Framework

create_line

Create connections or paths between points to build strategic flows, manage energy states, and support creative workflows within the LLV Helix Framework.

Instructions

Create a line - a connection or path between points

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the line
fromYesStarting point
toYesEnding point
rhythmNoRhythm of the line

Implementation Reference

  • The primary handler function for the 'create_line' tool. It validates inputs (name, from, to, optional rhythm), checks for duplicates, creates and stores a line object in the 'lines' Map, generates a rhythm generator, and returns a formatted success response with visualization.
    createLine(args) {
      const { name, from, to, rhythm = 'steady' } = args;
    
      if (!name || name.trim().length === 0) {
        return {
          content: [
            {
              type: 'text',
              text: `❌ Line name is required. Please provide a name for the line.`,
            },
          ],
        };
      }
    
      if (!from || from.trim().length === 0) {
        return {
          content: [
            {
              type: 'text',
              text: `❌ Starting point (from) is required. Please specify where the line starts.`,
            },
          ],
        };
      }
    
      if (!to || to.trim().length === 0) {
        return {
          content: [
            {
              type: 'text',
              text: `❌ Ending point (to) is required. Please specify where the line ends.`,
            },
          ],
        };
      }
    
      if (this.lines.has(name)) {
        return {
          content: [
            {
              type: 'text',
              text: `⚠️ Line "${name}" already exists. Use a different name or trace the existing line.`,
            },
          ],
        };
      }
    
      const line = {
        name,
        from,
        to,
        rhythm,
        created_at: new Date().toISOString(),
        traces: [],
      };
    
      this.lines.set(name, line);
      this.rhythms.set(`line_${name}`, this.generateRhythm(rhythm));
    
      return {
        content: [
          {
            type: 'text',
            text: `〰️ Line "${name}" created!\n\nFrom: ${from} → To: ${to}\nRhythm: ${rhythm}\n\n${this.visualizeLineRhythm(rhythm)}\n\nThe line is ready to carry messages with ${rhythm} rhythm.`,
          },
        ],
      };
    }
  • The input schema defining the parameters for the 'create_line' tool, including required fields name, from, to and optional rhythm with enum values.
    inputSchema: {
      type: 'object',
      properties: {
        name: {
          type: 'string',
          description: 'Name of the line',
        },
        from: {
          type: 'string',
          description: 'Starting point',
        },
        to: {
          type: 'string',
          description: 'Ending point',
        },
        rhythm: {
          type: 'string',
          enum: ['steady', 'accelerating', 'pulsing', 'syncopated', 'flowing'],
          description: 'Rhythm of the line',
        },
      },
      required: ['name', 'from', 'to'],
    },
  • index.js:45-71 (registration)
    The tool registration object returned in ListToolsRequestSchema handler, specifying name, description, and inputSchema for 'create_line'.
    {
      name: 'create_line',
      description: 'Create a line - a connection or path between points',
      inputSchema: {
        type: 'object',
        properties: {
          name: {
            type: 'string',
            description: 'Name of the line',
          },
          from: {
            type: 'string',
            description: 'Starting point',
          },
          to: {
            type: 'string',
            description: 'Ending point',
          },
          rhythm: {
            type: 'string',
            enum: ['steady', 'accelerating', 'pulsing', 'syncopated', 'flowing'],
            description: 'Rhythm of the line',
          },
        },
        required: ['name', 'from', 'to'],
      },
    },
  • index.js:331-332 (registration)
    The switch case in CallToolRequestSchema handler that dispatches 'create_line' calls to the createLine method.
    case 'create_line':
      return this.createLine(args);

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/suhitanantula/llv-helix'

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