Skip to main content
Glama

Customs valuation check

wever_customs-valuation-check
Read-only

Agent Customs Records: submit declared-value records with the invoices and payment records they answer to: each entry with its id, entry number, the commercial invoice, the value declared and its currency, the value in the invoice currency, that currency, the exchange rate the value record states, whether a related-party purchase is declared, the valuation basis recorded and the additions to value declared (assist, royalty, packing, commission, proceeds or other); each commercial invoice with its id, reference, amount and currency; each payment to the seller with its id, the invoice, the moment paid and the amount; each addition to value the records mention with its id, the entry, its kind, the amount and where the records mention it. The signed report gives the entries and the invoices, each declared value against the amount actually paid on its invoice, each related-party purchase against its valuation basis, each addition the records mention against the additions declared, and each currency conversion recomputed from its recorded rate, and counts them, and names divergent declared-value records: a declared value that does not match the amount actually paid, a related-party purchase declared with no valuation basis recorded, an addition to value (an assist, a royalty or packing) the records mention and the declaration omits, and a currency conversion in the value record that does not recompute from the recorded rate; then a payment naming an invoice the records do not hold and an invoice paid at another amount than it states, with the fix for each and what would change the verdict. No entries, no payments to the seller, or an entry with no value leaves those points unverified. Entries, invoices, payments and additions match by letters and digits, the payments on one invoice add together and compare to the cent with the value the entry states in the invoice currency, and a conversion recomputes as the foreign value times the recorded rate to the cent. This reads whether the value the importer declared rests on what it actually paid. Verdict customs_valuation_divergent, customs_valuation_partial, customs_valuation_unverified or customs_valuation_consistent. POST /api/customs-valuation-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>",
      "payments": "<payments>",
      "additions": "<additions>"
    },
    "name": "wever_customs-valuation-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
entriesYesEach customs entry.
invoicesYesEach commercial invoice.
paymentsYesEach payment to the seller.
additionsYesEach addition to value the records mention.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly, closed-world, non-destructive), it discloses side-effect limits explicitly ('files no entry, pays no duty, contacts no customs authority or broker', 'no network request, fetch, message, payment or external write'), the advisory-scope boundary, pricing (0.10 USDC per call on Base via x402 with 10 free signed-wallet calls per 30 days), the X-Wever-Wallet-Proof binding requirement, and the Ed25519 signed receipt. It also states matching rules (letters and digits, payments summed per invoice, cent-level comparison) and that empty inputs leave points unverified — rich context not present in the annotations.

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 one very long run-on block that interleaves purpose, exhaustive field enumeration already documented in the schema, report contents, family taxonomy, payment mechanics, and a URL list. Front-loading is partial — the submit/verify intent comes first — but large stretches (the field-by-field lists, the Tax/Logistics-family digression) are redundant against structured fields and obscure the decisive information.

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?

For a four-required-array cross-record reconciliation tool with no output schema, the description covers inputs, the report's contents, all four verdict strings, the exact divergence classes it names, remedies ('the fix for each and what would change the verdict'), and the empty-input degradation to unverified. Nothing essential to calling it correctly or interpreting the result appears missing.

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: how records join ('entries, invoices, payments and additions match by letters and digits'), that multiple payments on one invoice are summed and compared to the declared invoice-currency value to the cent, and that a conversion must recompute as foreign value times the recorded rate. The per-array field recital largely restates the schema, which caps it below 5.

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 submits declared-value records and checks whether 'the value the importer declared rests on what it actually paid', naming concrete checks (declared value vs amount paid, related-party vs valuation basis, additions vs declared, currency recomputation). That is clearly distinguishable from family siblings such as classification, duty or bond checks. It stops short of naming any individual sibling tool to contrast against, relying instead on family-level framing.

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 rather than stated: 'This reads whether the value the importer declared rests on what it actually paid' signals the scenario, and the family paragraph says other families (Tax Records, Logistics) read neither. However, it never tells the agent when to pick this over the customs-family alternatives (duty, entry, classification, bond, drawback), and the separation is left to 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