Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

send_shop_message

Send a general shop message to a customer for marketing, announcements, or proactive support. The message appears in the customer's conversation and delivers an immediate notification.

Instructions

[WRITE] 發送一般商店對話訊息。

【用途】 對客戶發送非特定訂單的通用訊息,適用於行銷通知、活動公告、客服主動聯繫等場景。

【呼叫的 Shopline API】

  • POST /v1/conversations/shop-messages

【回傳結構】 dict 含 success: bool, resource_id: str, message: str, conversation: dict。

【副作用】

  • 在客戶的對話收件匣中新增一則商店訊息,客戶可即時收到通知

  • 訊息送出後無法撤回或修改

  • 大量發送時請注意 Shopline 的訊息頻率限制,以避免觸發反垃圾機制

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_dataYes訊息資料,例如 {"customer_id": "CUST456", "message": "感謝您的支持,本週特惠活動開始囉!", "sender_type": "merchant"}
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

無 annotations,描述自行承擔行為揭露責任。清楚列出副作用:無法撤回/修改、客戶即時通知、大量發送需注意頻率限制,並附上 API 路徑與回傳結構,提供相當豐富的上下文。

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

以段落式結構呈現,四段各司其職,沒有冗詞。長度稍長但每段都提供實用資訊,適合複雜工具。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

對一個寫操作工具而言,已涵蓋目的、API、回傳結構與副作用,資訊足以讓 agent 正確使用。未提及錯誤處理或權限需求,但考量單一參數的簡單度,完整度已相當高。

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

schema 對唯一的 message_data 參數描述已達 100% 涵蓋,且包含範例。描述中並未進一步補充參數語義,故依規則給出基準分 3。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

明確指出「發送一般商店對話訊息」,以及「非特定訂單的通用訊息」,與兄弟工具 send_order_message 做出區隔。動詞+資源+適用情境清楚,具備明確目的。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

說明適用於行銷通知、活動公告、客服主動聯繫等場景,並強調「非特定訂單」,隱含排除了 order-specific 訊息。但未明確提及「當需要發送訂單相關訊息時請改用 send_order_message」,因此略少一分。

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/tzangms/shoplinemcp'

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