Skip to main content
Glama

Customs origin check

wever_customs-origin-check
Read-only

Agent Customs Records: submit country-of-origin and marking records with the invoices and origin support they answer to: each entry with its id, entry number, the country of origin declared, the trade program whose preference rate it claims, the origin certificate or statement it cites, any marking exception recorded and the basis noted for it; each commercial invoice line with its id, the entry and the country of origin it states; each origin certificate or statement on file with its id, reference, the origin it certifies and the program it supports; each change to an origin record after entry with its id, the entry, the moment changed, the origin before and after and the amendment it records; each amendment or post-entry correction with its id, reference, the entry and the moment filed. The signed report gives the entries and the claims, each declared origin against the invoice lines, each preference claim against the origin support on file, each marking exception against its noted basis, and each origin change against an amendment recorded for its entry, and counts them, and names divergent country-of-origin records: origin declared differently on the entry and the invoice, a preference claim at a trade-program rate recorded with no origin support on file, a marking exception recorded with no basis noted, and an origin record changed after entry with no amendment recorded; then an invoice line naming an entry the records do not hold and a certificate stating another origin or program than the claim it supports, with the fix for each and what would change the verdict. No entries, an entry with no country of origin, or no invoice lines leaves those points unverified. Entries, invoice lines, certificates and amendments match by letters and digits, an amendment only for its own entry, and countries compare by name or two-letter code without case or punctuation, so China, PRC and CN are one origin. This reads where the importer’s own records say the goods were made and how they are marked. Verdict customs_origin_divergent, customs_origin_partial, customs_origin_unverified or customs_origin_consistent. POST /api/customs-origin-check. Reads the customs and trade records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; it reads the records as supplied only: it files no entry, pays no duty, contacts no customs authority or broker and gives no customs or legal advice, which stay with the importer, its licensed customs broker and its advisers, and the records stay in the report, with no network request, fetch, message, payment or external write. Agent Customs Records reads an importer’s or exporter’s own customs and trade records: entry summaries, tariff classification records, duty and fee payment records, broker filing records, country-of-origin and marking records, declared-value records, customs bond records and drawback claim records, each against the commercial invoices and duty payment records, the rulings on file, the entries, the importer’s own copies, the origin support on file, the invoices and payments, the entry activity or the duty recorded as paid and the proof on file. The family’s ground is the paper behind the border crossing: what was declared, how it was classified, what duty was paid, and whether the bond and the drawback claims line up; the Agent Tax Records family reads filings made to the tax authority, and the Agent Logistics family reads where a shipment is and when it moves, while this family reads neither. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-customs-records-contract. Human page: https://weverlabs.com/agent-customs-records/.

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": {
      "entries": "<entries>",
      "invoices": "<invoices>",
      "certificates": "<certificates>",
      "changes": "<changes>",
      "amendments": "<amendments>"
    },
    "name": "wever_customs-origin-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
changesYesEach origin record change after entry.
entriesYesEach customs entry.
invoicesYesEach commercial invoice line.
amendmentsYesEach amendment or post-entry correction.
certificatesYesEach origin certificate on file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that it files no entry, pays no duty, contacts no customs authority or broker, gives no customs or legal advice, and makes no network request, fetch, message, payment, or external write. It also discloses the commercial terms (0.10 USDC per call on Base via x402, 10 signed-wallet free calls per 30 days) and the X-Wever-Wallet-Proof binding requirement. This is unusually rich behavioral context for a read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a dense, semicolon-chained run-on spanning several hundred words with no paragraph breaks, making the input inventory and the family description hard to scan. The field-by-field prose largely restates the schema. It is front-loaded with the input structure, but the sheer density and repetition of the family scope hurt readability.

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 six-parameter, five-required tool with no output schema, the description covers what is read, what the signed report contains (verdict, evidence, findings with fixes, what would change the verdict), the four verdict values, the matching and normalization rules, and the payment and auth model. The only gap is the absence of an explicit alternative-selection rule against the customs siblings.

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. The description goes further by restating each array's fields in prose and, more importantly, by adding matching semantics the schema does not carry: records match by letters and digits, an amendment applies only to its own entry, and countries compare by name or two-letter code without case or punctuation (China, PRC and CN are one origin). That normalization rule is genuinely additive.

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?

The description states a specific verb and resource: it reads country-of-origin and marking records against invoices and origin support and produces a signed report with a verdict. 'This reads where the importer's own records say the goods were made and how they are marked' is an unambiguous purpose statement. It distinguishes the family from the tax and logistics families, but does not differentiate itself from its customs siblings such as customs-classification-check or customs-duty-check, so it stops short of full sibling differentiation.

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?

Usage is implied by the field inventory and the unverified conditions ('No entries, an entry with no country of origin, or no invoice lines leaves those points unverified'), but there is no explicit when-to-use or when-not-to-use statement relative to the customs siblings. The family contrast ('the Agent Tax Records family reads filings... the Agent Logistics family reads where a shipment is and when it moves') gives context but not a selection rule among origin, classification, duty, and bond checks.

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