Skip to main content
Glama

code_template

Generate code templates for quantitative research workflows including regression, panel data, difference-in-differences, meta-analysis, and structural equation modeling in R, Stata, or Python.

Instructions

분석 전체 워크플로우 코드 템플릿

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowYes워크플로우 유형
languageYes언어

Implementation Reference

  • The handler function that executes the 'code_template' tool logic. It returns a structured response with the requested workflow and language, providing a placeholder template message directing users to specific code generation tools.
    function handleCodeTemplate(args: Record<string, unknown>) { return { workflow: args.workflow, language: args.language, template: "Full workflow template - use specific code generation tools for detailed code" }; }
  • The input schema defining the parameters for the 'code_template' tool: workflow type (regression_full, panel_full, etc.) and language (r, stata, python).
    inputSchema: { type: "object", properties: { workflow: { type: "string", enum: ["regression_full", "panel_full", "did_full", "meta_full", "sem_full"], description: "워크플로우 유형" }, language: { type: "string", enum: ["r", "stata", "python"], description: "언어" }, }, required: ["workflow", "language"], },
  • The tool registration object in the exported tools array, including name, description, and inputSchema.
    name: "code_template", description: "분석 전체 워크플로우 코드 템플릿", inputSchema: { type: "object", properties: { workflow: { type: "string", enum: ["regression_full", "panel_full", "did_full", "meta_full", "sem_full"], description: "워크플로우 유형" }, language: { type: "string", enum: ["r", "stata", "python"], description: "언어" }, }, required: ["workflow", "language"], }, },
  • The switch case in handleToolCall that maps the 'code_template' tool name to its handler function.
    case "code_template": return handleCodeTemplate(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/seanshin0214/quantmaster-mcp-server'

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