Skip to main content
Glama
suhitanantula

LLV Helix Framework

set_context

Configure creative contexts to influence rhythms in the LLV Helix Framework, specifying context type and what it affects for strategic workflows.

Instructions

Set the context that influences rhythms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesContext name
typeYesType of context
influencesNoWhat this context influences (lines/loops/vibes names)

Implementation Reference

  • The handler function for the 'set_context' tool. It creates and stores a context object, applies rhythm modifiers to specified influences, and returns a formatted response.
    setContext(args) { const { name, type, influences = [] } = args; const context = { name, type, influences, created_at: new Date().toISOString(), }; this.contexts.set(name, context); const rhythmModifier = this.getContextRhythmModifier(type); influences.forEach(element => { if (this.rhythms.has(`line_${element}`) || this.rhythms.has(`loop_${element}`) || this.rhythms.has(`vibe_${element}`)) { this.applyContextToRhythm(element, rhythmModifier); } }); return { content: [ { type: 'text', text: `🎭 Context "${name}" set!\n\nType: ${type}\nInfluences: ${influences.join(', ') || 'None'}\n\n${this.visualizeContext(type)}\n\nThe ${type} context will modify rhythms of influenced elements.`, }, ], }; }
  • The input schema and metadata for the 'set_context' tool, defined in the ListToolsRequest handler.
    { name: 'set_context', description: 'Set the context that influences rhythms', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Context name', }, type: { type: 'string', enum: ['creative', 'analytical', 'meditative', 'collaborative', 'experimental'], description: 'Type of context', }, influences: { type: 'array', items: { type: 'string' }, description: 'What this context influences (lines/loops/vibes names)', }, }, required: ['name', 'type'], }, },
  • index.js:337-338 (registration)
    Registration/dispatch case in the CallToolRequest handler that invokes the setContext handler.
    case 'set_context': return this.setContext(args);
  • Helper function used by setContext to get the rhythm multiplier based on context type.
    getContextRhythmModifier(contextType) { const modifiers = { creative: 1.5, analytical: 0.8, meditative: 0.5, collaborative: 1.2, experimental: 2.0, }; return modifiers[contextType] || 1.0; }
  • Helper function used by setContext to generate a visual representation of the context type.
    visualizeContext(type) { const contexts = { creative: '🎨 🎭 πŸŽͺ 🎨', analytical: 'πŸ“Š πŸ“ˆ πŸ“‰ πŸ“Š', meditative: '☯️ ☯️ ☯️ ☯️', collaborative: '🀝 🀝 🀝 🀝', experimental: 'πŸ§ͺ πŸ”¬ βš—οΈ 🧬', }; return contexts[type] || 'β—†β—†β—†β—†'; }

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