Skip to main content
Glama

help

Get detailed command help with examples for Mnemonica Strategy's MCP, RPC, or RUN contexts to understand specific functionality.

Instructions

Get detailed help for a specific command including examples

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYesCommand context
commandYesCommand name to get help for

Implementation Reference

  • The 'help' tool implementation is inside the CallToolRequestSchema request handler in src/server.ts, which delegates to getCommandHelp imported from command-loader.ts.
    case 'help': {
    	const { context, command } = args as {
    		context: CommandContext;
    		command: string;
    	};
    
    	if (!context || !command) {
    		return {
    			content: [{ type: 'text', text: 'Error: context and command are required' }],
    			isError: true,
    		};
    	}
    
    	const help = getCommandHelp(context, command);
    
    	if (!help) {
    		return {
    			content: [{ type: 'text', text: `No help found for command '${command}' in context '${context}'` }],
    			isError: true,
    		};
    	}
    
    	// Format help nicely
    	let text = `# ${help.name}\n\n`;
    	text += `${help.description}\n\n`;
    
    	if (help.inputSchema && help.inputSchema.properties) {
    		text += `## Parameters\n\n`;
    		const props = help.inputSchema.properties as Record<string, { type: string; description?: string; enum?: string[] }>;
    		Object.entries(props).forEach(([key, val]) => {
    			text += `- **${key}** (${val.type}${val.enum ? `, enum: [${val.enum.join(', ')}]` : ''}): ${val.description || ''}\n`;
    		});
    		text += '\n';
    	}
    
    	if (help.examples && help.examples.length > 0) {
    		text += `## Examples\n\n`;
    		help.examples.forEach((ex, i) => {
    			text += `${i + 1}. **${ex.description}**\n`;
    			text += `   \`\`\`json\n   ${JSON.stringify(ex.execute.args, null, 2)}\n   \`\`\`\n\n`;
    		});
    	}
    
    	return {
    		content: [{ type: 'text', text }],
    	};
    }
  • src/server.ts:163-180 (registration)
    The 'help' tool is registered in the ListToolsRequestSchema handler within src/server.ts.
    	name: 'help',
    	description: 'Get detailed help for a specific command including examples',
    	inputSchema: {
    		type: 'object',
    		properties: {
    			context: {
    				type: 'string',
    				enum: ['MCP', 'RPC', 'RUN'],
    				description: 'Command context',
    			},
    			command: {
    				type: 'string',
    				description: 'Command name to get help for',
    			},
    		},
    		required: ['context', 'command'],
    	},
    },
Install Server

Other Tools

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/mythographica/strategy'

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