Skip to main content
Glama

get_prompts_by_date

Retrieve user prompts from LLM sessions for a specific date to review study history and track learning progress.

Instructions

특정 날짜에 했던 질문들을 조회합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes조회할 날짜 (YYYY-MM-DD 형식)

Implementation Reference

  • The handler for the 'get_prompts_by_date' tool in src/server.ts. It takes a date string, loads prompts using 'loadPrompts', and formats them for the MCP response.
    server.tool(
      "get_prompts_by_date",
      "특정 날짜에 했던 질문들을 조회합니다.",
      {
        date: z.string().describe("조회할 날짜 (YYYY-MM-DD 형식)"),
      },
      async ({ date }) => {
        const prompts = loadPrompts(date);
    
        if (prompts.length === 0) {
          return {
            content: [{ type: "text", text: `${date}에 저장된 질문이 없습니다.` }],
          };
        }
    
        const list = prompts
          .map((p, i) => {
            const time = new Date(p.timestamp).toLocaleTimeString("ko-KR", { hour: "2-digit", minute: "2-digit" });
            const typeEmoji = p.type ? getTypeEmoji(p.type) : "📝";
            return `${i + 1}. [${time}] ${typeEmoji} ${p.prompt}`;
          })
          .join("\n");
    
        return {
          content: [{ type: "text", text: `${date}의 질문 (${prompts.length}개)\n\n${list}` }],
        };
      }
    );

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