Skip to main content
Glama

create_customer

Add a new customer to your Shopline store. Provide required name and optional details like email, phone, gender, birthday, and tags to create a customer record.

Instructions

[WRITE] 建立新客戶。

【用途】 在 Shopline 商店中建立新的客戶記錄。適合客服手動建檔或批次匯入場景。

【呼叫的 Shopline API】

  • POST /v1/customers

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

【副作用】

  • 在商店客戶列表中新增一筆客戶

  • 如果 email 或 phone 已存在,可能會失敗(Shopline 可能不允許重複)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes客戶姓名
emailNoEmail
phoneNo電話
genderNo性別 (male/female/other)
birthdayNo生日 YYYY-MM-DD
tagsNo標籤列表
Behavior5/5

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

With no annotations, the description fully covers behavioral traits: it's a write operation, adds a customer record, may fail on duplicate email/phone, and returns a structured response including success flag and resource ID.

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

Conciseness5/5

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

The description is concise with clear sections for purpose, usage, API details, return structure, and side effects. No redundancy.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, no output schema, no annotations), the description provides purpose, side effects, return format, and constraints, making it sufficiently complete for an 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 coverage is 100%, so baseline is 3. The description does not add new information about parameters beyond the schema, although it hints at duplication constraints related to email and phone.

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?

The description clearly states the tool creates a new customer in Shopline, using a specific verb '建立' and resource '客戶記錄'. It distinguishes from sibling tools like update_customer or delete_customer.

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?

The description mentions suitable scenarios (manual creation, batch import) and warns about potential duplicate failure. However, it does not explicitly advise when not to use it or suggest alternatives like update_customer for existing records.

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/asgard-ai-platform/mcp-shopline'

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