Skip to main content
Glama

Check the dates of a long-term supplier’s declaration

check_supplier_declaration_validity
Read-onlyIdempotent

Use this when someone asks whether a long-term supplier’s declaration (Langzeit-Lieferantenerklärung, LLE, LTSD) for preferential origin is valid for given dates, how far back it may reach, or whether it covers a given shipment. Checks the three dates of a long-term supplier’s declaration for preferential origin under Art. 62(2) Implementing Regulation (EU) 2015/2447 (from 23 June 2028: data elements 3.02 and 3.03 of Annex 22-15 as amended by Implementing Regulation (EU) 2026/1183): start at most 12 months before and 6 months after the date of issue, end at most 24 months after the start. Returns valid or the limit broken, the earliest and latest start and the latest end, and, with a delivery date, whether that shipment is covered. Dates only: it never says whether goods have preferential origin. Do not use to judge whether goods have preferential origin or qualify for a preference under an agreement; it checks dates only, not origin.

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": {
      "issue_date": "<issue_date>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "check_supplier_declaration_validity"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesEnd of the period, YYYY-MM-DD
languageNoLanguage of the answer: "de" (German, default), "en" (English) or "pl" (Polish). Product and account answers are written in German and English; content without a translation comes in German.
issue_dateYesDate of issue, YYYY-MM-DD
start_dateYesStart of the period, YYYY-MM-DD
delivery_dateNoDate of one shipment to check against the period, YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description correctly spends its words elsewhere: it discloses the exact rules applied (start ≤12 months before / ≤6 months after issue, end ≤24 months after start), what is returned (valid or the limit broken, earliest/latest start, latest end, optional shipment coverage), and a hard scope limit (dates only, never origin). The one gap is the output shape/format, which is not described and there is no output schema to fall back on.

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 trigger sentence is front-loaded and the exclusion closes the text, which is good structure. It is dense but not padded; the legal citations and the forward-looking 2028 data-element reference are long, though they justify themselves as the authoritative rule set.

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?

With no output schema, the description carries the return-value burden itself and does so (verdict plus boundary dates plus optional shipment coverage). For a five-parameter, read-only validation tool, an agent has everything needed to decide to call it and to interpret the result.

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 the baseline is 3, but the description adds real meaning beyond the field labels: it explains how issue_date, start_date and end_date constrain one another and what delivery_date does ("whether that shipment is covered"). The only parameter left unaddressed is the language enum, whose semantics are already fully documented in the schema.

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?

The description names a specific verb (check) and resource (the three dates of a long-term supplier's declaration), and pins down the exact legal basis (Art. 62(2) IR (EU) 2015/2447). It is clearly separable from siblings like get_declaration_coverage or list_supplier_declarations because it is explicitly a date-validity test, not a lookup or coverage query.

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?

It gives an explicit trigger ("Use this when someone asks whether ... is valid for given dates, how far back it may reach, or whether it covers a given shipment") and an explicit exclusion ("Do not use to judge whether goods have preferential origin or qualify for a preference"). Both the when and the when-not are stated, so an agent can route without inference.

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