Skip to main content
Glama

create_gift

Add a new gift record to the Shopline store for use with promotional campaigns. Specify gift name, SKU, and quantity to enable rule-based automatic distribution.

Instructions

[WRITE] 建立新贈品。

【用途】 在 Shopline 商店中建立一個新的贈品記錄,可搭配促銷活動使用。

【呼叫的 Shopline API】

  • POST /v1/gifts

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

【副作用】

  • 在商店贈品列表中新增一筆記錄

  • 贈品建立後可透過促銷規則設定觸發條件

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gift_dataYes贈品資料,例如 {name, sku, quantity, ...}
Behavior4/5

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

With no annotations provided, the description discloses the side effect of adding a record to the gift list and the ability to set conditions via promotion rules. It also describes the return structure, providing good behavioral context beyond bare creation.

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, well-structured with clear sections (WRITE, purpose, API, return, side effects), front-loading the key information. Every section adds value without 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?

Despite no output schema, the description describes the return structure and side effects. It covers the API endpoint, purpose, and how it integrates with promotions, making it sufficiently complete for a create tool.

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% as the single parameter 'gift_data' has a description with examples. The main description does not add additional parameter semantics beyond the schema, so it meets the baseline.

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 it creates a new gift record in the Shopline store, explicitly marked as [WRITE] and provides the purpose. It differentiates from similar tools like update_gift and list_gifts by focusing on creation.

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

Usage Guidelines3/5

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

The description mentions it can be used with promotions but does not explicitly state when to use it versus alternatives like update_gift or when not to use it. Implied by context but lacks explicit guidance.

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