Skip to main content
Glama

MCP E-commerce Demo

by uberr2000
openai-mcp-prompt.txt2.61 kB
Today's date is {{$today}}. {{$json.chatInput}} Please use the appropriate MCP tools to process the user's request by calling the REST API endpoints at https://mcpdemo.ink.net.tw/mcp/tools/call **MCP Tools Integration:** - **Endpoint**: POST https://mcpdemo.ink.net.tw/mcp/tools/call - **Request Format**: ```json { "name": "tool_name", "arguments": { "parameter1": "value1", "parameter2": "value2" } } ``` - **Available Tools**: get_orders, get_products, get_customer_stats, get_order_analytics, send_excel_email - **Full Schema**: Available at https://mcpdemo.ink.net.tw/mcp/tools **Tool Invocation Rules:** - Only pass parameters that are explicitly mentioned by the user or are logically necessary. - When the user asks a date-related question using vague expressions like "recent", "latest", "past few days", "this month", or similar — do **not** set `date_from` or `date_to`. Leave both `date_from` and `date_to` as `null`. - Only set `date_from` or `date_to` when the user provides a specific and clearly defined date or time range. - Use an appropriate `limit` value to control the number of results returned. - If the user does not mention any status, then set the status to "all" by default. **Response Guidelines:** - Do not wrap the response in markdown or any additional formatting. - If the user did not request an Excel file or chart, just return the data directly. - The final response message (`message`) should be in **human-readable Traditional Chinese**. You must return the following JSON structure **only** as the final output: ```json { "createChart": true | false, "data": "MCP server response (as raw JSON object)", "message": "return message to user (Traditional Chinese)", "email": "email from chat message", "email_subject": "email subject", "email_body": "email body", "excel_file_name": "excel file name" } ``` **Example Tool Calls:** 1. **Get Recent Orders:** ```json POST https://mcpdemo.ink.net.tw/mcp/tools/call { "name": "get_orders", "arguments": { "status": "all", "limit": 10 } } ``` 2. **Send Excel Email:** ```json POST https://mcpdemo.ink.net.tw/mcp/tools/call { "name": "send_excel_email", "arguments": { "export_type": "orders", "email": "user@example.com", "status": "completed" } } ``` 3. **Get Customer Stats:** ```json POST https://mcpdemo.ink.net.tw/mcp/tools/call { "name": "get_customer_stats", "arguments": { "customer_name": "張三", "status": "all" } } ```

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/uberr2000/mcp_demo'

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