Skip to main content
Glama
SourceParts

Source Parts MCP Server

Official
by SourceParts

logistics_customs_declare

Generate a customs declaration from a BOM file by mapping components to HS codes. Calculates declared values for each line item based on total invoice amount and destination.

Instructions

Station 3: Generate customs declaration from BOM with HS code mapping.

Uploads BOM file and maps components to HS codes based on category. Calculates declared values for each line item.

IMPORTANT: Review HS codes and declared values before submitting to customs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bom_pathYesPath to BOM file (.csv or .json)
invoice_amountYesTotal invoice amount in USD
destination_countryYesDestination country code (e.g. US, DE, JP)
origin_countryNoOrigin country code (default CN)CN

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description must disclose behaviors. It mentions mapping HS codes and calculating values, but does not clarify whether the tool creates a permanent record, modifies state, or requires specific permissions. The output schema exists but its content is not visible here.

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 description is three sentences, front-loaded with the core purpose, followed by actions and an important caution. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the description covers the primary actions and a caution, it lacks information about the output (though an output schema exists) and any prerequisites or error conditions. Adequate but not thorough.

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 coverage is 100%, so the baseline is 3. The description adds context about mapping components to HS codes based on category, which is not explicit in the schema, but does not provide significant additional meaning for individual parameters.

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 clearly states the tool generates a customs declaration from a BOM with HS code mapping, and calculates declared values. It distinguishes itself from sibling logistics tools (e.g., logistics_track_shipment) by focusing on customs declaration generation.

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?

The description provides a caution to review HS codes and declared values before submission, but does not specify when to use this tool over alternatives or when not to use it. No explicit usage comparison with sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SourceParts/parts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server