Skip to main content
Glama

Get product ingredients

get_product_ingredients
Read-onlyIdempotent

Retrieves a product's INCI ingredient list using its product ID from search results, so you can inspect skincare ingredients and look up their functions and safety ratings.

Instructions

Get the ingredient list (INCI names) for a specific product. Use the product id returned by search_products. Call get_ingredient_info for an ingredient's functions and safety ratings. If an entry carries a detail object, it holds structured fields only, and _data_credit says they come from Incidecoder (INKEEDecoder); repeat that credit when presenting them.

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": {
      "product_id": "<product_id>"
    },
    "name": "get_product_ingredients"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesThe product ID as returned by search_products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, and the description adds real value on top: the presence and meaning of a `detail` object and the obligation to repeat the Incidecoder `_data_credit` when presenting those fields. It does not say what happens for products with no ingredient data or partial results, which is the remaining gap.

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?

Front-loaded with purpose, then chaining guidance, then output-shape and attribution caveats; every sentence carries information. The final sentence is long, bundling the `detail` object and credit requirement, but it remains readable and earns its place.

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, the description properly covers the return value (INCI names, plus a `detail` object of structured fields and its credit source) and the onward tool for enrichment. Only error/empty-result behavior is unaddressed, which is minor for a simple read 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?

Only one parameter at 100% schema description coverage, so the schema already documents product_id including its origin in search_products. The description restates that provenance without adding format or edge-case detail, so baseline 3 applies.

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 and resource (get the ingredient list of INCI names for a product) and distinguishes itself from get_ingredient_info, which handles per-ingredient functions and safety. An agent knows exactly what this returns versus siblings.

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

Usage Guidelines5/5

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

Gives the prerequisite for the one argument ('product id returned by search_products') and names the follow-up alternative with its selection condition ('Call get_ingredient_info for an ingredient's functions and safety ratings'). The chaining path search_products -> this -> get_ingredient_info is fully explicit.

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