Skip to main content
Glama
EUDR Compliance & TRACES-NT Agent

EUDR Compliance & TRACES-NT Agent

eudr_inspect_payload_security

Scan inbound EUDR supplier payloads for prompt injection, malicious Python execution, and crop-yield anomalies before ingestion.

Instructions

Read-only pre-flight security firewall that scans inbound EUDR trade text and shipment metrics for prompt injections, malicious Python AST execution patterns (eval/exec/subprocess), and biological crop-yield inflation anomalies. Call before ingesting untrusted supplier payloads. Returns is_safe, threat_score, threats, and agronomic_verdict.

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": {
      "text": "<text>"
    },
    "name": "eudr_inspect_payload_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesInbound text, supplier note, or system instructions to scan for prompt injection or code exploits.
hs_codeNoOptional 6-digit Harmonized System tariff code.
commodityNoOptional commodity name for biological yield sanity check (e.g. 'coffee', 'cocoa', 'wood', 'oil_palm').
total_area_haNoOptional total cultivation area in hectares across production plots.
declared_net_mass_kgNoOptional declared harvest or shipment net mass in kilograms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.6
    • changedInput schema / properties / commodity / description
      Previous value: -"Target commodity name (e.g. 'coffee', 'cocoa', 'wood', 'oil_palm')."New value: +"Optional commodity name for biological yield sanity check (e.g. 'coffee', 'cocoa', 'wood', 'oil_palm')."
    • changedInput schema / properties / declared_net_mass_kg / description
      Previous value: -"Declared total harvest/trade net mass in kilograms."New value: +"Optional declared harvest or shipment net mass in kilograms."
    • addedInput schema / properties / declared_net_mass_kg / minimum
      Added value: +0
    • changedInput schema / properties / hs_code / description
      Previous value: -"6-digit Harmonized System tariff code."New value: +"Optional 6-digit Harmonized System tariff code."
    • changedInput schema / properties / text / description
      Previous value: -"Inbound text or system instructions to scan for jailbreak / prompt injection attacks."New value: +"Inbound text, supplier note, or system instructions to scan for prompt injection or code exploits."
    • changedInput schema / properties / total_area_ha / description
      Previous value: -"Total cultivation area in hectares across production plots."New value: +"Optional total cultivation area in hectares across production plots."
    • addedInput schema / properties / total_area_ha / minimum
      Added value: +0
    • addedInput schema / required
      Added value: +[
      +  "text"
      +]
  2. Addedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly succeeds: it declares read-only/non-destructive behavior and names the four return fields (is_safe, threat_score, threats, agronomic_verdict). It stops short of explaining thresholds, whether it merely reports versus blocks, or how severity is graded.

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?

Three dense sentences: what it is, what it detects, when to call it, what it returns. No filler, and the core identity is front-loaded.

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?

For a five-parameter scanner with no output schema and no annotations, the definition covers identity, trigger, detection surface, and return keys. The main residual gap is that named return fields are not explained (scale of threat_score, meaning of agronomic_verdict).

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 the baseline is 3. The description's mention of 'shipment metrics' and 'biological crop-yield inflation anomalies' loosely explains why the commodity/area/mass parameters exist, but the schema already spells that out per-field, so little new meaning is added.

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 verb and resource: a read-only pre-flight scanner over inbound EUDR trade text and shipment metrics, and enumerates exactly what it detects (prompt injection, eval/exec/subprocess AST patterns, crop-yield inflation). No sibling tool in the catalog performs security scanning, so this is easy to place.

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

Usage Guidelines4/5

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

Gives an explicit trigger condition: 'Call before ingesting untrusted supplier payloads.' That is clear when-to-use guidance. It does not name an alternative or state when-not to use it, but no plausible competing security tool exists among the siblings.

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