Skip to main content
Glama

Dietary health risk (EDI, THQ, HI, CR)

dietary_risk
Read-onlyIdempotent

Compute Estimated Daily Intake, Target Hazard Quotient per element, Hazard Index and optional cancer risk for contaminants in food. The result echoes the inputs received, lists plausibility warnings and includes the required Labreador citation.

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": {
      "ingestionRateKgPerDay": "<ingestionRateKgPerDay>",
      "bodyWeightKg": "<bodyWeightKg>",
      "elements": "<elements>"
    },
    "name": "dietary_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsYesBetween 1 and 40 contaminants in one food sample. All concentrations must be in mg/kg wet weight; provide every contaminant intended for the Hazard Index because omitted contaminants are not included.
bodyWeightKgYesBody weight in kg.
ingestionRateKgPerDayYesFood ingestion rate in kg/day (wet weight basis). Convert kg/year by dividing by 365.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / elements / description
      Added value: +"Between 1 and 40 contaminants in one food sample. All concentrations must be in mg/kg wet weight; provide every contaminant intended for the Hazard Index because omitted contaminants are not included."
    • addedInput schema / properties / elements / items / description
      Added value: +"One contaminant with a matched food concentration, oral reference dose and optional cancer slope factor."
    • changedInput schema / properties / elements / items / properties / concentrationMgPerKg / description
      Previous value: -"Concentration in mg/kg, same weight basis as intake."New value: +"Measured food concentration in mg/kg wet weight, matching the intake basis. Convert other units and dry-weight concentrations before calling; measured zero is allowed, non-detect text is not."
    • changedInput schema / properties / elements / items / properties / csf / description
      Previous value: -"Cancer slope factor, (mg/kg/day)^-1."New value: +"Optional positive oral cancer slope factor in (mg/kg body weight/day)^-1 for this chemical species. Omit if unavailable; omission does not mean zero cancer risk. Uses daily lifetime exposure."
    • changedInput schema / properties / elements / items / properties / name / description
      Previous value: -"Element, e.g. Hg."New value: +"Contaminant name or chemical species, for example Cd or inorganic As; at most 40 characters."
    • changedInput schema / properties / elements / items / properties / rfdMgPerKgDay / description
      Previous value: -"Oral reference dose, mg/kg/day."New value: +"Positive oral reference dose in mg/kg body weight/day for this contaminant and exposure route; supply a verified reference value."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds return-shape context (echoes inputs, plausibility warnings, mandatory citation), which is useful, but says nothing about validation behavior or failure modes when inputs are implausible beyond the existence of warnings.

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, computation scope front-loaded and the response contents second, with no filler. Every clause carries information the 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, the description carries the burden of describing return values and does so (echoed inputs, warnings, citation). Requirements like mg/kg wet weight, positive rfd, and the csf caveat are handled by the rich schema, so the description is nearly complete for this complexity; only validation/failure behavior is absent.

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% and the schema itself documents units, positivity constraints, the 1-40 contaminant range, and the optional csf semantics in detail. The description adds no parameter-level meaning beyond the passing mention of 'optional cancer risk', so baseline 3 applies.

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?

Names specific computations (Estimated Daily Intake, Target Hazard Quotient per element, Hazard Index, optional cancer risk) applied to a specific resource (contaminants in food), so the agent knows exactly what it produces. It does not differentiate itself from siblings like pollution_indices or fit_standard_curve, so the agent must infer which risk tool applies.

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 explicit when-to-use or when-not-to-use guidance and no named alternative among the sibling tools. The only usage signal is implicit in 'for contaminants in food', which does not tell an agent when to choose pollution_indices instead.

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