Skip to main content
Glama
autoexecbatman

Enhanced Architecture MCP

token_efficient_reasoning

Delegate complex reasoning tasks to local AI models to reduce cloud token usage while maintaining processing capabilities.

Instructions

Delegate heavy reasoning to local AI to conserve cloud tokens

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasoning_taskYesComplex reasoning task to delegate
contextNoAdditional context for reasoning
modelNoLocal model for reasoningarchitecture-reasoning:latest

Implementation Reference

  • The main handler function that constructs a structured, token-efficient reasoning prompt and delegates execution to the local AI via queryLocalAI.
    async tokenEfficientReasoning(reasoningTask, context = '', model = 'architecture-reasoning:latest') { const efficientPrompt = `REASONING DELEGATION TASK: Task: ${reasoningTask} ${context ? `Context: ${context}` : ''} Please provide comprehensive reasoning analysis including: 1. PROBLEM DECOMPOSITION - Break down the task into components - Identify key variables and relationships 2. REASONING CHAIN - Step-by-step logical progression - Evidence and justification for each step 3. ALTERNATIVE APPROACHES - Consider different methodologies - Compare pros/cons of approaches 4. SYNTHESIS - Integrate findings into coherent solution - Address potential counterarguments 5. CONCLUSION - Clear final reasoning result - Confidence level and limitations Optimize for thorough reasoning while being concise in presentation.`; return await this.queryLocalAI(efficientPrompt, model, 0.6); }
  • Input schema definition and tool metadata for token_efficient_reasoning, including properties for reasoning_task, context, and model.
    { name: 'token_efficient_reasoning', description: 'Delegate heavy reasoning to local AI to conserve cloud tokens', inputSchema: { type: 'object', properties: { reasoning_task: { type: 'string', description: 'Complex reasoning task to delegate' }, context: { type: 'string', description: 'Additional context for reasoning' }, model: { type: 'string', description: 'Local model for reasoning', default: 'architecture-reasoning:latest' } }, required: ['reasoning_task'] } }
  • Tool dispatch registration in the CallToolRequestSchema handler switch statement.
    case 'token_efficient_reasoning': return await this.tokenEfficientReasoning(args.reasoning_task, args.context, args.model);

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/autoexecbatman/arch-mcp'

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