Skip to main content
Glama

get_customer_group_members

Retrieves a list of customer IDs belonging to a specified customer group. Use with get_customer_profile to get detailed customer info.

Instructions

取得指定客戶群組中的所有客戶 ID 列表。

【用途】 查詢特定群組包含哪些客戶。回傳客戶 ID 列表,可搭配 get_customer_profile 取得個別客戶詳情。

【呼叫的 Shopline API】

  • GET /v1/customer-groups/{group_id}/customers

【回傳結構】 dict 含 group_id, total_members, customer_ids[]。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYes客戶群組 ID(由 list_customer_groups 回傳)
Behavior3/5

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

No annotations exist, so the description carries the burden. It describes the HTTP GET call and return structure, implying a read-only operation. However, it does not explicitly state side effects, permissions, or rate limits, which are common for such calls.

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 and well-structured with clear sections for purpose, API endpoint, and return format. No unnecessary words; every sentence adds value.

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?

For a simple list tool with one parameter and no output schema, the description provides sufficient information: API path, return structure, and a usage hint. It could mention pagination if the list may be large, but it is not a critical gap.

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% (only one parameter with a clear description). The tool description adds no new parameter details beyond what the schema already provides, so it meets the baseline but does not exceed it.

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 retrieves a list of customer IDs in a given group (verb 'get', resource 'customer group members'), and it explicitly differentiates from sibling tools like list_customer_groups and get_customer_profile by suggesting chaining.

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 '用途' section explains the use case: querying which customers belong to a specific group. It also recommends combining with get_customer_profile. However, it does not provide explicit when-not-to-use scenarios or compare with other customer-listing tools.

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