Skip to main content
Glama

decode_batch_code

Decode cosmetic, skincare, K-Beauty, and perfume batch or lot codes to get manufacturing dates, product age, unopened shelf life, freshness, and counterfeit signals.

Instructions

Decode a cosmetic, skincare, K-Beauty, or perfume batch/lot code across 2,375 brands. Returns manufacturing date, age in months, unopened shelf life, freshness status, and counterfeit clone signal.

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": {
      "brand": "<brand>",
      "code": "<code>"
    },
    "name": "decode_batch_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesAlphanumeric batch / lot code engraved or printed on the bottle or box (e.g. "4B01", "38Z401").
langNoOptional output language for human-readable labels (defaults to "en").en
brandYesBrand slug (e.g. "dior", "chanel", "cerave", "guerlain") or exact brand name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 the full behavioral burden. It does disclose the return payload well (manufacturing date, age in months, shelf life, freshness status, counterfeit signal), but it omits failure behavior for unrecognized brands/codes, whether the lookup is read-only in practice, and any cost or rate limits.

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?

Two sentences, zero filler, and the capability plus the returned fields are front-loaded. Every clause ('2,375 brands', the field list) carries information an agent needs.

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?

With no output schema present, the description usefully enumerates the returned fields, which is exactly the right compensation. It falls short only on edge-case behavior for invalid or unsupported codes, which matters for a lookup tool with required inputs.

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 description coverage is 100%, with brand, code, and lang all documented including examples and a default, so the schema does the heavy lifting. The description adds no extra meaning about parameter formats, brand-slug resolution, or how lang affects output beyond what the schema states.

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?

States a specific verb ('Decode'), a specific resource ('cosmetic, skincare, K-Beauty, or perfume batch/lot code'), and a concrete coverage scope ('2,375 brands'). This is unmistakably distinct from the sibling tools get_brand_info and search_brands, which deal in brand metadata rather than code decoding.

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?

Usage is implied rather than stated: an agent can infer it should call this when it holds a lot code and a brand and wants a date. There is no explicit when-not-to-use, no guidance for unknown brands or unparseable codes, and no routing advice relative to get_brand_info/search_brands.

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

Deploy Server

Other Tools