Skip to main content
Glama

get_learning_stats

Retrieve daily learning statistics to analyze question type distribution and calculate learning depth scores for metacognitive progress tracking.

Instructions

특정 날짜의 학습 통계를 조회합니다. 질문 타입별 분포, 학습 깊이 점수를 확인할 수 있습니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNo조회할 날짜 (YYYY-MM-DD 형식, 기본값: 오늘)

Implementation Reference

  • The handler implementation for the get_learning_stats tool which retrieves prompts for a given date and calculates a daily summary including total questions, depth score, and type distribution.
        async ({ date }) => {
          const targetDate = date || getToday();
          const prompts = loadPrompts(targetDate);
    
          if (prompts.length === 0) {
            return {
              content: [{ type: "text", text: `${targetDate}에 저장된 질문이 없습니다.` }],
            };
          }
    
          const summary = calculateDailySummary(prompts);
    
          const typeList = Object.entries(summary.byType)
            .filter(([_, count]) => count > 0)
            .map(([type, count]) => {
              const desc = TYPE_DESCRIPTIONS[type as QuestionType];
              return `  - ${desc}: ${count}개`;
            })
            .join("\n");
    
          const result = `📊 학습 통계 (${targetDate})
    
    총 질문 수: ${summary.total}개
    학습 깊이 점수: ${summary.depthScore}점
    
    질문 유형별 분포:
    ${typeList}
    
    💡 학습 깊이 점수는 질문 유형별 가중치를 기반으로 계산됩니다.
       - 사실/정의 질문: 1점
       - 비교/적용 질문: 2점
       - 원리/연결 질문: 3점`;
    
          return {
            content: [{ type: "text", text: result }],
  • src/server.ts:235-240 (registration)
    The tool registration for 'get_learning_stats' using the server.tool method.
    server.tool(
      "get_learning_stats",
      "특정 날짜의 학습 통계를 조회합니다. 질문 타입별 분포, 학습 깊이 점수를 확인할 수 있습니다.",
      {
        date: z.string().optional().describe("조회할 날짜 (YYYY-MM-DD 형식, 기본값: 오늘)"),
      },

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/YUJAEYUN/learnlog-mcp'

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