Skip to main content
Glama

get_customer_tier_history

Retrieve a customer's membership tier change history including upgrades, downgrades, and reasons. Use with list_membership_tiers to map tier names.

Instructions

取得指定客戶的會員等級變動歷程。

【用途】 追蹤客戶會員等級升降紀錄,了解是升等還是降級、原因為何。 搭配 list_membership_tiers 對照等級名稱。

【呼叫的 Shopline API】

  • GET /v1/customers/{customer_id}/membership-tier-history

【回傳結構】 dict 含 customer_id, total_changes, history[]。 每筆含 from_tier, to_tier, reason, created_at。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idYes客戶內部 ID
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the underlying API call (GET /v1/customers/{customer_id}/membership-tier-history) and the return structure (dict with customer_id, total_changes, history[]), which adds significant behavioral context beyond just the action.

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 sections: purpose, companion tool, API call, and return structure. Every sentence serves a purpose and is front-loaded with the core action.

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?

For a simple tool with one parameter and no output schema, the description covers the return structure, API endpoint, and usage hint. It is complete and sufficient for an agent to understand what the tool does and how to interpret results.

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?

The only parameter (customer_id) has a schema description ('客戶內部 ID'), and the description merely says '指定客戶' (specified customer), adding little semantic value. With 100% schema coverage, the baseline is 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?

The description clearly states the tool retrieves membership tier change history for a specific customer, including tracking upgrades and downgrades with reasons. This is a specific verb+resource combination and distinguishes from siblings like get_customer_profile and list_membership_tiers.

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 suggests pairing with list_membership_tiers to map tier names and implies use for tracking tier changes. It provides clear context but does not explicitly state when not to use or mention alternatives, though the use case is well-defined.

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