Skip to main content
Glama

DAITK (Dibblee AI Tool Kit) - Total Import Cost

lookup_tariff

Look up base Canadian duty rates for an HS/tariff number (e.g. '0101.21.00.00'), plus any tracked surtax/trade-measure orders whose HS coverage might overlap it. as_of defaults to today (YYYY-MM-DD). This returns EVERY treatment code on the tariff item, most of which do not apply to any one shipment — use resolve_duty with a country of origin to get the one that actually applies to a specific import. Some rows carry treatment_label: null; a null is a gap in this service's own data, not a signal about what the treatment is — check unlabeled_treatment_codes and never call one an FTA or infer its identity yourself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofNo
hs_codeYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and delivers: it warns that the result set is intentionally over-inclusive ('most of which do not apply to any one shipment'), discloses that as_of defaults to today, and explains a subtle data-quality trap (treatment_label: null means a gap in the service's own data, not evidence about the treatment type). This is exactly the kind of behavioral context that prevents an agent from drawing wrong conclusions.

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

Conciseness5/5

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

The purpose is front-loaded and every sentence earns its place: purpose, parameter default, result-set caveat with routing, and null-label warning. Though dense, the content is all load-bearing given zero schema annotations and no output schema; nothing is fluff or repetition.

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?

Given no annotations, no output schema, and 0% schema description coverage, the description provides a complete picture: what is returned (base rates, overlapping trade-measure orders, every treatment code), how to use the two parameters, when to choose an alternative, and how to interpret an anomalous return value. Nothing needed for correct selection or invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does. hs_code gets a format example ('0101.21.00.00'), and as_of gets both a format ('YYYY-MM-DD') and a default value (today). Both parameters are semantically enriched in a way that makes correct invocation possible.

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 opens with a specific verb+resource pair ('Look up base Canadian duty rates') and gives a concrete HS-code format example. It also distinguishes itself from resolve_duty by stating that this returns every treatment code while resolve_duty returns the one that actually applies, so an agent can tell them apart without opening any schema.

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 explicitly names the sibling alternative (resolve_duty) and states the exact condition that should route the agent elsewhere: 'use resolve_duty with a country of origin to get the one that actually applies to a specific import.' This is explicit when-to-use and when-not-to-use guidance, not just implied context.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct operation: enumerating measures, inspecting one measure, looking up raw tariff treatments, computing a landed-duty estimate, listing changes, and reporting service status. Potential overlap between lookup_tariff and resolve_duty is explicitly resolved in the descriptions, with lookup_tariff directing callers to resolve_duty for applicable treatment.

Naming Consistency4/5

Most tools follow a clear verb_noun pattern (get_measure_detail, list_trade_measures, lookup_tariff, resolve_duty). recent_changes and service_status deviate into adjective_noun / noun_noun forms, but all names are snake_case, short, and readable.

Tool Count5/5

Six tools is a well-scoped size for a read-only Canadian tariff and trade-measure research service. Each tool covers a distinct part of the workflow without redundancy or unnecessary surface area.

Completeness5/5

The surface covers the full read-only lifecycle: listing and detailing trade measures, looking up tariff rates, resolving final duty estimates with safeguards and SIMA handling, monitoring recent changes, and checking data freshness. No obvious operation is missing for the stated purpose.

Resources