Skip to main content
Glama

kiem_ma_to_khai

Checks each line of a draft customs declaration for whether the goods description matches the declared HS code, using AI classification, and returns a job receipt maLuot because the check runs in the background. Charged per line in points, no trial calls; needs a signed-in account; up to 50 lines. A line may carry maLuotPhanLoai (the call ID of an earlier HS classification or description run of the same account) so that line is checked against that classification dossier. The result, fetched later with the receipt, has the same shape as the free review, with the description-to-code group (K2) filled in and passed through verbatim from hs-code-api: when the dossier check applies, each line's main K2 item says whether the description has the deciding facts, lacks them or contradicts them, with the deciding facts quoted (duKienQuyetDinh) and a suggested rewrite (cauSuaDeXuat, a draft when evidence is missing); GIR rules and legal basis quoted verbatim. Kiểm mô tả hàng có khớp mã HS khai trên từng dòng tờ khai dự kiến bằng phân loại AI; chạy nền nên trả biên nhận maLuot. Tính điểm theo số dòng, không dùng lượt thử; cần tài khoản; tối đa 50 dòng. Dòng nào có maLuotPhanLoai (mã lượt phân loại HS hoặc viết mô tả trước đó của chính tài khoản) thì được kiểm theo hồ sơ phân loại của lượt đó. Kết quả (hỏi sau bằng biên nhận) cùng dạng với bản soát miễn phí, có thêm nhóm so mô tả với mã (K2) chuyển nguyên văn từ hs-code-api: khi kiểm theo hồ sơ, mục K2 chính nói mô tả đủ, thiếu hay mâu thuẫn dữ kiện quyết định, trích dữ kiện (duKienQuyetDinh) và câu sửa đề xuất (cauSuaDeXuat, là bản nháp khi chưa đủ căn cứ); căn cứ GIR và pháp lý nguyên văn.

Input Schema

NameRequiredDescriptionDefault
dongHangYes
loaiHinhNo
maLuotSoatNoKhông dùng (giữ để không gãy client cũ): kết quả K2 trả trong ket_qua_soat của chính lượt này.
ngayDuKienDangKyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / dongHang / items / properties / maLuotPhanLoai
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Mã lượt phan_loai_hs (hoặc sinh_mo_ta_khai_bao) trước đó của chính tài khoản cho hàng của dòng này: Cổng gửi kèm hồ sơ phân loại của lượt đó (hoSoId + dữ kiện đã khai) để kiểm mã theo hồ sơ."
      +}
    • addedInput schema / properties / maLuotSoat / description
      Added value: +"Không dùng (giữ để không gãy client cũ): kết quả K2 trả trong ket_qua_soat của chính lượt này."
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

With annotations only covering readOnly/openWorld/idempotent, the description adds the critical traits: asynchronous execution with a receipt to fetch results later, per-line point billing, no trial calls, and authentication. It also discloses that K2 output is passed through verbatim from hs-code-api, which tells the agent where the semantics come from.

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 English text is front-loaded and information-dense, but the entire description is then repeated almost verbatim in Vietnamese, roughly doubling length without adding content. For an agent consuming one language, half the text is redundant.

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 tool with no output schema, the description does real work: it explains that results are fetched later by receipt, follows the free-review shape, and describes the K2 group including duKienQuyetDinh, cauSuaDeXuat, and GIR/legal quotes. Minor gaps remain on the non-line parameters and the point cost magnitude.

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 description coverage is only 25%, so the description must compensate. It does explain maLuotPhanLoai well and the line-level dossier-check behavior, but loaiHinh, ngayDuKienDangKy, and how required line fields (stt, maHs, moTa, xuatXu) are interpreted for checking are not covered.

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: checking each line of a draft customs declaration for whether the goods description matches the declared HS code, using AI classification. It also distinguishes the output (a job receipt maLuot) from the sibling free review and from phan_loai_hs classification runs, so an agent can tell what this tool is and is not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating conditions: runs in the background, charged per line, no trial calls, signed-in account required, max 50 lines. It also explains when to supply maLuotPhanLoai (to check against an earlier classification dossier). It stops short of explicitly stating when to use this paid check instead of soat_to_khai, leaving that comparison partly inferred from 'same shape as the free review'.

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