Skip to main content
Glama
TOXTRUST-MCP

TOXTRUST-MCP

Official
by phi-grib

toxtrust_compare_substances

Compare candidate substances with a target for one hazard endpoint by integrating evidence into belief/plausibility intervals and flagging lower, higher, or indistinguishable hazard.

Instructions

Substitution helper for ONE endpoint: integrate evidence per substance (target + candidates) and compare each candidate with the target by belief/plausibility interval separation on the POSITIVE (hazard) class. 'lower_hazard_supported' requires Pl_dst(pos|candidate) < Bel(pos|target) AND a 'negative' candidate decision (separation without a decisive candidate is 'lower_hazard_indicated_weak'); 'higher_hazard_supported' requires Bel(pos|candidate) > Pl_dst(pos|target); otherwise 'not_distinguishable'. Never aggregates across endpoints.

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": {
      "endpoint": "<endpoint>",
      "question": "<question>",
      "substances": "<substances>"
    },
    "name": "toxtrust_compare_substances"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoauto
endpointYes
questionYes
min_beliefNo
substancesYes
inagaki_scaleNo
upstream_checkNo
max_uncertaintyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations, so the description carries the burden. It discloses the core behavior—Dempster-style belief/plausibility interval separation, no cross-endpoint aggregation, and the decision categories—which is genuinely useful and non-obvious. But it never states value ranges, preprocessing rules (e.g. how 'both' is handled or what happens with empty evidence beyond UNKNOWN), or what happens if multiple targets are supplied. 'Exactly one target' is a schema description detail but the description doesn't repeat it.

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?

Dense but front-loaded: the first clause sets the scope, the second defines the comparison, and the third (after the semicolon) enumerates the decision classes. No fluff. Could break the logic into clearer structure but it's efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists and explains return values, but the description doesn't cover the tuning parameters, error behavior, or the lack of cross-endpoint aggregation consequences (has to be inferred from 'never aggregates'). Given 8 parameters, no annotations, and 0% schema description coverage, the description leaves important operational gaps.

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?

Keyword params max_uncertainty, min_belief, inagaki_scale, rule semantics are not explained in the description. Given 0% schema description coverage, this is a gap—the description explains the output logic but not the tuning knobs. Nested schema 'EvidenceIn' fields are well-documented for the evidence structure, and given the small number of descriptive fields, 3 is fair.

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?

Specific verb (integrate, compare) and scope (ONE endpoint, per substance) clearly stated; the 'Substitution helper' framing plus the role of target vs candidates makes the purpose clear. It doesn't name or differentiate from siblings like toxtrust_assess_evidence or toxtrust_combine_evidence, though it does distinguish itself by explicit 'ONE endpoint... Never aggregates across endpoints'.

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

Usage Guidelines3/5

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

Omitting sibling differentiation means the agent must infer when to call this versus assess_evidence or combine_evidence. However, it does supply decision thresholds—'lower_hazard_supported' vs 'lower_hazard_indicated_weak' vs 'not_distinguishable'—which is at least implied guidance on interpretation, though not on tool selection.

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