Skip to main content
Glama

Check a formula (IFRA and EU allergens)

check_formula
Read-onlyIdempotent

Use this when the user has a perfume or accord formula, pasted or drafted earlier in this conversation, and wants to know whether it is IFRA compliant, how much of the finished product it may be, which line to reduce, or which EU allergens the label must declare. Checks IFRA Category 4 (fine fragrance) at the concentration the user chooses, finds the highest safe concentration and says how far to reduce a line that is over a limit. Give the formula as pasted text (one material per line with an amount) or as structured lines, every line in grams or every line in percent. Amounts are weights: a line in ml or drops cannot be weighed (no density is on file). Whatever is not counted (such a line, a name the catalog does not have, a natural with no breakdown, a dilution's carrier that the catalog does not recognise) is listed in notCounted with its reason; complete is then false, the verdict is never "within limits" and no highest safe concentration is given, while a limit that is exceeded is still reported as exceeded. Does not save anything and does not change the amounts. Returns a link that opens the formula in PerfuMate. For one material's limit use get_material; for a starting recipe use find_starting_formula.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo
formulaNoThe formula as text, one line per material, e.g. "Hedione 4 g" or "Ambroxan 10% in DPG 2 g".
concentrationPctNoHow much of the finished product the formula is, e.g. 20 for an eau de parfum.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lines / items / properties / solvent
      Added value: +{
      +  "description": "The dilution's carrier, e.g. DPG, IPM, ethanol, benzyl benzoate. Give it when known: a restricted carrier is checked against its own limit.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe read-only, idempotent, non-destructive operation, and the description still adds substantial behavior: nothing is saved, amounts are unchanged, a link is returned, and — most importantly — the notCounted/complete=false semantics that suppress the verdict and highest safe concentration while still reporting exceeded limits. It also discloses a real input constraint not obvious from annotations: ml or drops lines cannot be weighed because no density is on file.

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 the trigger, then the capabilities, then input format, then failure semantics, then exclusions — a logical order with no filler sentences. It is dense and long, but nearly every clause (unit consistency, notCounted reasons, verdict suppression) carries decision-relevant information, so the length is largely earned.

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?

With no output schema, the description still tells the agent what comes back: a verdict, a highest safe concentration, reduction guidance per over-limit line, a notCounted list with reasons, a complete flag, and an openable link. For a read-only analysis tool with three simple parameters, nothing an agent needs in order to call it or interpret results is missing.

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 67%, and the description fills the meaningful gaps: formula text is one material per line with an amount, and lines must be consistently in grams or consistently in percent — a mixing rule the schema's per-line unit enum does not state. It also ties concentration to the IFRA Category 4 check. Dilution strength (dilutionPct) is only touched indirectly via the unrecognised-carrier case, so a small gap remains.

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?

Specific verb (checks) on a specific resource (a pasted or drafted formula) with the exact questions answered: IFRA Category 4 compliance, max finished-product concentration, which line to reduce, and EU allergen declaration. It also names the two siblings it is not — get_material for a single material's limit and find_starting_formula for a starting recipe — so an agent can route correctly without opening another schema.

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?

Opens with an explicit trigger ('when the user has a perfume or accord formula, pasted or drafted earlier in this conversation') and closes with explicit alternatives plus the conditions that select them (get_material for one material's limit, find_starting_formula for a starting recipe). The two accepted input shapes are also stated, which removes ambiguity about when this tool will work at all.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources