Skip to main content
Glama

AGOS European Compliance & Operations

EU EUDR / TRACES NT Plantation GeoJSON Validator, Auto-Repair & DDS Pre-Check

validate_eudr_geojson
Read-onlyIdempotent

Validates and auto-repairs farm and plantation GeoJSON plot polygons/points for Regulation (EU) 2023/1115 (EUDR) TRACES NT submission: WGS84 CRS & 6-decimal precision, spherical geodesic area in hectares, 4-hectare Point-vs-Polygon rule (with cattle exemption), RFC 7946 ring closure/winding/self-intersection (bowtie) checks, Null Island & coordinate-swap detection, Annex I HS/commodity lookup, and optional TRACES NT DDS pre-check packet. Technical geometry pre-check only; does not perform satellite deforestation verification.

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": {
      "geojson": "<geojson>"
    },
    "name": "validate_eudr_geojson"
  }
}

Input Schema

NameRequiredDescriptionDefault
hsCodeNoOptional 4–8 digit HS/CN tariff code to resolve EUDR Annex I scope and commodity.
geojsonYesGeoJSON FeatureCollection, Feature, or Geometry (Point/Polygon/MultiPolygon) as a JSON object or JSON string.
defaultsNoOptional fallback TRACES NT plot properties applied during autoRepair when missing on individual features.
operatorNoOptional EU operator metadata embedded in TRACES NT DDS pre-check packet when includeDdsPayload=true.
commodityNoOptional EUDR Annex I commodity: cattle, cocoa, coffee, oil_palm, rubber, soya, or wood.
autoRepairNoIf true, emits deterministically repaired TRACES-ready GeoJSON in autoRepair.repairedGeojson.
operatorSizeNoOperator size category for statutory EUDR application deadline (default: "large_or_medium").large_or_medium
includeDdsPayloadNoIf true, generates a TRACES NT-aligned Due Diligence Statement pre-check packet in ddsPayload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, and the description usefully adds the concrete rule set applied, including the non-obvious cattle exemption to the 4-ha Point rule. The one residual ambiguity is 'auto-repairs', which could read as a mutation; the non-destructive nature (repairs emitted in a response field) is only resolved by the schema, not the description.

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?

The core capability and its check list are front-loaded in a single dense sentence, followed by a short scoping disclaimer — no filler. The check list is long but each item is decision-relevant, though it borders on a feature dump rather than prioritised information.

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?

This is a complex, 8-parameter tool with nested GeoJSON objects, and the input side is fully covered by the schema. However, no output schema exists and the description says nothing about what validation returns (result structure, error/warning reporting, or where repaired GeoJSON and the DDS packet surface), which is the main call-shaping unknown left unresolved.

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 100%, so baseline is 3, but the description adds real semantic linkage the schema does not spell out: hsCode/commodity resolve Annex I scope, the cattle carve-out changes how Area is evaluated for Points, and the DDS pre-check packet is an optional output mode. It does not explain defaults/fallback behavior or operatorSize deadline implications, which remain schema-only.

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 pair (validates / auto-repairs) plus a precise resource (farm and plantation GeoJSON plot polygons/points) tied to a named regulation and submission system (EU 2023/1115, TRACES NT). The enumerated checks (WGS84 CRS, 6-decimal precision, 4-ha rule, RFC 7946 ring rules, Null Island, Annex I HS lookup, DDS pre-check) make it unmistakable against the sibling EU regulatory validators.

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 clear framing context (preparing plots for TRACES NT DDS submission) and an explicit exclusion: it is a 'technical geometry pre-check only; does not perform satellite deforestation verification', which prevents the agent from over-claiming compliance. It stops short of naming an alternative tool or stating prerequisites/ordering relative to other steps, so no explicit when-to-use-vs-alternative routing.

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