Skip to main content
Glama

shopee_affiliate_offer

Generates Shopee affiliate tracking offer metadata and checks the commission rate for a product using its URL and country, so you can evaluate earnings before promoting it.

Instructions

Check Shopee affiliate commission rate and generate tracking offer metadata for a product.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "country": "<country>",
      "url": "<url>"
    },
    "name": "shopee_affiliate_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesShopee product URL
countryYesvn

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries full burden. 'Generate tracking offer metadata' leaves it unclear whether anything is persisted server-side, what the returned offer metadata contains, whether tracking IDs must pre-exist, or what auth/affiliate credentials are required. The word 'Check' suggests a read but is not confirmed.

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?

A single front-loaded sentence with no padding. It is efficient, though the dual-verb phrasing could be split to make the two outcomes more scannable.

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

Completeness2/5

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

With no annotations and no output schema, the description must explain what offer metadata is returned, whether the call has side effects, and what credentials are needed. None of that is present, leaving an agent unable to predict the result or the side effects of calling it.

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

Parameters2/5

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

Schema coverage is only 50%: 'url' is documented as a Shopee product URL, but 'country' has only a default of 'vn' and no description. The tool description adds no parameter meaning at all — no format for country codes, no note on which locales are supported, no URL constraints beyond what the schema says.

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

Purpose4/5

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

States specific verbs and resource: 'Check Shopee affiliate commission rate' and 'generate tracking offer metadata', tied to a product. This is clearly distinct from sibling tools like product_detail or search_keywords. Slight ambiguity remains because two operations are bundled and it's unclear whether both always execute.

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?

Affiliate commission context implies when to use it (affiliate monetization for a specific product), but there is no explicit when-to-use/when-not guidance, no prerequisite mention (e.g., affiliate program enrollment), and no named alternative for plain product data (shopee_product_detail).

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