Skip to main content
Glama

unmake file tools

Preferential origin calculator (EU-UK TCA)

doc_preferential_origin
Read-onlyIdempotent

Preferential origin calculator (EU-UK TCA) (free beta). Bill of materials (CSV, PDF, scan, text) + product HS code + ex-works price -> does the product meet its EU-UK TCA rule of origin: rule from the UK Trade Tariff data, tariff shift per material, non-originating share, tolerance, cumulation, verdict with arithmetic, missing supplier's declarations, statement on origin text when met. Use when: A UK or EU manufacturer or exporter needs to know whether a product qualifies for zero duty under the EU-UK Trade and Cooperation Agreement, or wants the statement on origin wording for the invoice. Not for: HS classification; process rules (textiles, chemicals); other agreements; certifying origin (the exporter remains responsible). File types: csv, xlsx, txt, pdf, png, jpg, jpeg. Max 15 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "doc_preferential_origin"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so the safety profile needs no restatement. The description adds real context (free beta, 15 MB cap, accepted file types, that missing supplier declarations are surfaced, and that it does not certify origin), but it never explains how the tool behaves when inputs are incomplete or how the 'options' object should be populated.

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?

Front-loaded with purpose, then inputs, outputs, use/avoid guidance, and file constraints in a compact block with no filler sentences. The arrow-chain and parenthetical pile-up make it dense to parse, but every clause carries 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?

There is no output schema, so the description usefully enumerates the expected results and the statement-on-origin text. The gap is on the input side: with a nested 'options' object containing the actual HS code and price data, the definition never says what belongs in it, which is material for a tool whose parameters are otherwise all optional.

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 coverage is 100%, so the baseline is 3, and the description does add file-type and size constraints for the file inputs. However, it asserts that an HS code and an ex-works price are inputs, yet the schema exposes only file fields plus an opaque 'options' object — the description does not map those required business inputs onto 'options', leaving the key parameters unexplained.

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: takes a bill of materials plus HS code and ex-works price and returns a rule-of-origin verdict under the EU-UK TCA. It also names what the response contains (rule, tariff shift per material, non-originating share, tolerance, cumulation, verdict with arithmetic), which distinguishes it from siblings like doc_ce_check or doc_rohs_reach_matrix.

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?

Explicit 'Use when' clause scopes it to UK/EU manufacturers checking zero-duty eligibility or needing statement-on-origin wording. The 'Not for' clause excludes HS classification, process rules, other agreements, and certifying origin, with the exporter-responsibility caveat stated directly.

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