Skip to main content
Glama

Customs duty check

wever_customs-duty-check
Read-only

Agent Customs Records: submit duty and fee payment records with the entries they answer to: the moment the records are read at and the days after entry within which the records say duty is paid; each entry with its id, entry number, the moment filed, the classified value, the duty rate in percent and the currency; each duty payment with its id, reference, the entry it pays, the moment paid and the amount; each customs fee with its id, the entry it is recorded against, the entry its fee statement names, the fee and the amount; each duty refund with its id, the entry, the original payment it returns, the moment refunded and the amount. The signed report gives the entries and the payments, the duty paid on each entry recomputed from its classified value and rate, each unpaid entry against its payment window, each fee against the entry its statement names, and each refund against the original payment it returns, and counts them, and names divergent duty and fee records: duty paid that does not recompute from the classified value and the recorded rate, an entry past its payment window with no payment recorded, a fee recorded against the wrong entry, and a refund of duty recorded with no matching original payment; then a payment naming an entry the records do not hold and a refund above the payment it returns, with the fix for each and what would change the verdict. No entries, an entry with no classified value or rate, or no reading moment or payment window beside unpaid entries leaves those points unverified. Entries, payments, fees and refunds match by letters and digits, a refund to its payment by the payment reference or id on the same entry, duty recomputes as the classified value times the rate to the cent against the payments for one entry added together, an entry at a zero rate owes nothing, and an unpaid entry inside the payment window waits. This reads duty as paid at entry, against the entry it answers to. Verdict customs_duty_divergent, customs_duty_partial, customs_duty_unverified or customs_duty_consistent. POST /api/customs-duty-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>",
      "payments": "<payments>",
      "fees": "<fees>",
      "refunds": "<refunds>"
    },
    "name": "wever_customs-duty-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
feesYesEach customs fee recorded.
as_ofNoThe moment the duty records are read at, such as 2026-03-02.
labelNoOptional name recorded in the report.
entriesYesEach customs entry.
refundsYesEach duty refund recorded.
paymentsYesEach duty payment.
payment_daysNoDays after entry within which the records say duty is paid.

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?

Well beyond the annotations, the description discloses that it files nothing, pays nothing, contacts no customs authority or broker, gives no legal advice, makes no network request or external write, and keeps records in the report only. It also states the paid-access mechanics (0.10 USDC per call on Base via x402 exact, 10 signed-wallet free calls per rolling 30 days), the X-Wever-Wallet-Proof binding to the exact JSON arguments and route, and the Ed25519 signed receipt — all behavior an agent cannot get from readOnlyHint/destructiveHint alone.

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 opens with a colon and a dense run-on enumeration of record fields rather than a purpose statement, then continues in enormous comma-chained sentences with no paragraph breaks or headings. Content is mostly substantive, but the front-loading is inverted — the verdict list, the read-only guarantees and the pricing appear only at the end, after the reader has waded through the field dump.

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 7-parameter verification tool with no output schema, the description covers the required inputs, the four possible verdicts, the divergent-record categories, the unverified conditions (no entries, missing classified value or rate, no reading moment or payment window), and the return shape ('the verdict, the evidence read, the findings with their fixes, and what would change the verdict'). It is complete on substance; the gap is legibility rather than missing information.

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 genuine cross-field semantics: entries, payments, fees and refunds match by letters and digits; a refund links to its payment by reference or id on the same entry; duty recomputes as classified value times rate to the cent against payments for one entry summed; a zero-rate entry owes nothing; and an unpaid entry inside the payment window waits. These matching and recomputation rules are not expressible in the JSON schema and materially change how an agent must populate the arrays.

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 names the specific resource (customs entries, duty payments, fees, refunds) and the operation (read them, recompute duty, return a signed report with a verdict), and states its stance with 'This reads duty as paid at entry, against the entry it answers to.' However, the purpose is buried behind a colon and a long field enumeration, and it never distinguishes itself from in-family siblings such as customs-entry-check or customs-drawback-check.

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 enumerated inputs and the verdict set, and there is a scope exclusion against the Agent Tax Records and Agent Logistics families. But there is no explicit 'use this when' statement and no routing guidance among the eight customs-* checks an agent must choose between, so the agent must infer selection from the record shapes alone.

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