Skip to main content
Glama

Build routine with products

build_routine
Read-onlyIdempotent

Generates a complete skincare routine from a 4-letter skin type code, with per-step product recommendations and budget-aware cost summaries in per-product or total mode.

Instructions

Build a complete skincare routine for a 4-letter skin type code with product recommendations per step. Returns routine steps annotated with candidate products and a cost summary. Supports two budget modes: 'per-product' (each step is independently filtered to ≤ budget) and 'total' (greedy allocation across mandatory steps first, then optional, staying under the total budget). Each product includes a "link" to a retailer page (usually Amazon), which may be an affiliate link. If you share product links, state once: Product links go to retailers such as Amazon, and SkinGuide may earn a commission on purchases made through 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": {
      "skinType": "<skinType>"
    },
    "name": "build_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many candidate products to return per step (1–5). Defaults to 3.
budgetNoBudget cap in local currency. Interpretation depends on budgetMode.
genderNoRestrict the routine to gendered steps. Omit to include all.
sortByNoCandidate sort order within each step. Omit for the fast default (lowest price first). 'rating' is slow (about 10s per step) and few products are rated.
countryNoCountry code for the product market. Defaults to 'US'. Aliases accepted: UAE → AE, USA → US.
skinTypeYes4-letter skin type code such as OSPT (Oily/Sensitive/Pigmented/Tight). Letters: O/D oily or dry, S/R sensitive or resistant, P/N pigmented or non-pigmented, W/T wrinkled or tight. One of: ORNT, ORNW, ORPT, ORPW, OSNT, OSNW, OSPT, OSPW, DRNT, DRNW, DRPT, DRPW, DSNT, DSNW, DSPT, DSPW. Do NOT use natural language like "sensitive" or "oily".
timeOfDayNo'AM' for morning routine, 'PM' for evening. Omit for both.
budgetModeNoHow 'budget' is applied. 'per-product' caps each step individually (default). 'total' caps the sum across the routine.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower, and the description adds genuinely new behavior: the greedy allocation strategy in 'total' mode (mandatory steps first, then optional) and the affiliate-link disclosure obligation. However it omits what happens when the budget cannot cover mandatory steps and does not describe failure or empty-result behavior.

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 and return shape, then budget-mode semantics, then the affiliate disclosure, which is a verbatim instruction the agent needs. The affiliate sentence is long but serves a compliance purpose rather than padding; only minor tightening is possible.

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 carries the burden of describing returns and does so ('routine steps annotated with candidate products and a cost summary'). For an 8-parameter composition tool it is nearly complete, missing only edge-case behavior when the budget is infeasible or a step has no candidates.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3, and the description earns above that by explaining the interaction between budget and budgetMode ('per-product' caps each step independently vs 'total' caps the sum with greedy allocation) in more operational detail than the schema's one-line enum descriptions. It does not add anything about limit, gender, or country, but the schema already handles those fully.

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 a specific verb and resource ('Build a complete skincare routine') plus the exact input form ('4-letter skin type code') and what is returned ('routine steps annotated with candidate products and a cost summary'). It does not explicitly contrast itself with the sibling get_routine or search_products, so an agent must infer that this composes a new routine rather than fetching a saved one.

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

Usage Guidelines2/5

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

There is no when-to-use / when-not-to-use guidance and no mention of alternatives such as get_routine, compare_products, or search_products. The agent can infer the purpose from the verb, but nothing tells it when this tool is the right choice over those siblings.

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