Skip to main content
Glama
codingthailand

xmcp Application

summarize-sales.ts2.02 kB
import { z } from "zod"; import { InferSchema, type PromptMetadata } from "xmcp"; // Define the schema for prompt parameters export const schema = { includeRecommendation: z.boolean().optional().describe("ต้องการวิเคราะห์และให้คำแนะนำหรือไม่ (default: true)") }; // Define prompt metadata export const metadata: PromptMetadata = { name: "summarize-sales", title: "สรุปยอดขาย", description: "สร้างสรุปยอดขาย พร้อมทั้งวิเคราะห์และให้คำแนะนำ", role: "user", }; // Prompt implementation export default function summarizeSales({ includeRecommendation = true }: InferSchema<typeof schema>) { return { type: "text", text: ` คุณมีหน้าที่สรุปยอดขาย และวิเคราะห์ ให้คำแนะนำ 1. ให้อ่านคู่มือ สรุปยอดขายประจำวัน (docs://sales-report-guide) จาก Resources ก่อนเสมอ เพื่อเข้าใจเกณฑ์การประเมิน 2. ให้เรียกใช้เครื่องมือ get_today_sales เพื่อดึงยอดขาย จำนวน order กำไร 3. ให้แสดงยอดขาย รูปแบบนี้ สรุปยอดขายประจำวันนี้ วันที่: [วัน/เดือน/ปี] จำนวนออเดอร์: xx รายการ รายได้รวม: xx บาท ต้นทุนรวม: xx บาท กำไรสุทธิ: xx บาท อัตรากำไร: xx % ${includeRecommendation ? `4. ให้วิเคราะห์ และให้คำแนะนำ`: ''} `, }; }

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/codingthailand/mcp-server-app'

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