Skip to main content
Glama

Impurity thresholds (ICH Q3A/Q3B)

cmc_impurity_thresholds
Read-onlyIdempotent

Calculates ICH Q3A/Q3B reporting, identification, and qualification thresholds for organic impurities by maximum daily dose and classifies results crossing them for specifications or unknown peaks.

Instructions

Reporting, identification and qualification thresholds for organic impurities at a given maximum daily dose, and which impurities cross them.

Applies the guideline's own rounding convention (half-up; compare at the threshold's decimals; TDI from the reported result; 'exceeded' means strictly greater) and states whether the % or the TDI limb of 'whichever is lower' applies. Use for: setting specifications, deciding whether an unknown peak must be identified or qualified. Not for mutagenic impurities (ICH M7), residual solvents or metals.

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_type": "<product_type>",
      "max_daily_dose": "<max_daily_dose>",
      "dose_unit": "<dose_unit>"
    },
    "name": "cmc_impurity_thresholds"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo'concise' drops impurities that need no action.full
dose_unitYesUnit of max_daily_dose. Never guessed.
impuritiesNoOptional batch results to classify against the thresholds.
product_typeYesdrug_substance -> ICH Q3A(R2); drug_product (degradation products) -> ICH Q3B(R2).
max_daily_doseYesMaximum daily dose of drug substance (Q3A/Q3B).

Output Schema

NameRequiredDescriptionDefault
summaryYesOne or two sentence plain-language answer.
findingsNo
citationsYes
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
impuritiesNo
provenanceYes
thresholdsYes
assumptionsNo
product_typeYes
max_daily_dose_mgYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, closed-world read, but the description goes well beyond them by disclosing the computational conventions: half-up rounding, comparison at the threshold's decimals, TDI derived from the reported result, and 'exceeded' meaning strictly greater. It also explains how the '% vs TDI, whichever is lower' rule is resolved, which materially affects interpretation of the output. It stops short of describing output shape, but an output schema exists so that is a minor omission.

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 tight paragraphs: the first leads with the resource and the outcome, the second carries the conventions and the routing exclusions. Every clause is load-bearing regulatory detail rather than filler.

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?

For a regulatory-threshold calculator with five parameters, an output schema, and full annotation coverage, the description supplies the domain conventions and scope boundaries an agent needs to call and interpret it correctly. Nothing material is missing.

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%, so every parameter including the product_type-to-Q3A/Q3B mapping and the degradation-product flag is already documented in structured form. The description reinforces dose-based thresholds but adds no per-parameter syntax or format detail beyond the schema, so the baseline of 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 resource (reporting, identification and qualification thresholds for organic impurities) plus the driving input (maximum daily dose) and the classification output ('which impurities cross them'). The scope exclusions at the end separate it from the elemental-impurity and residual-solvent siblings without requiring the agent to open 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?

Gives explicit when-to-use cases ('setting specifications', 'deciding whether an unknown peak must be identified or qualified') and explicit when-not cases ('mutagenic impurities (ICH M7), residual solvents or metals'). The boundary conditions that would send an agent elsewhere are named, not inferred.

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