Skip to main content
Glama

Hi-AI

by su-record
createThinkingChain.ts1.66 kB
// Sequential thinking tool - completely independent interface ToolResult { content: Array<{ type: 'text'; text: string; }>; } interface ToolDefinition { name: string; description: string; inputSchema: { type: 'object'; properties: Record<string, any>; required: string[]; }; } export const createThinkingChainDefinition: ToolDefinition = { name: 'create_thinking_chain', description: 'IMPORTANT: This tool should be automatically called when users say "생각 과정", "사고 흐름", "연쇄적으로", "thinking process", "chain of thought", "reasoning chain" or similar keywords. Create sequential thinking chain', inputSchema: { type: 'object', properties: { topic: { type: 'string', description: 'Topic to think about' }, steps: { type: 'number', description: 'Number of thinking steps' } }, required: ['topic'] } }; export async function createThinkingChain(args: { topic: string; steps?: number }): Promise<ToolResult> { const { topic, steps = 5 } = args; const thinkingChain = { action: 'create_thinking_chain', topic, steps, chain: Array.from({ length: steps }, (_, i) => ({ step: i + 1, title: `Step ${i + 1}: Analyze ${topic}`, content: `Think about ${topic} from perspective ${i + 1}`, questions: [ `What are the key aspects of ${topic}?`, `How does this relate to the overall problem?`, `What are the potential implications?` ] })), status: 'success' }; return { content: [{ type: 'text', text: `Thinking Chain Created:\n${JSON.stringify(thinkingChain, null, 2)}` }] }; }

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/su-record/hi-ai'

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