Skip to main content
Glama
alipay

AlipayPlus MCP Server

Official
by alipay

customs_declare

Declare payments to customs or update existing declarations with order details, merchant codes, and split options.

Instructions

The tool is used by the Acquiring Service Provider (ACQP) to declare a payment to customs or update an existing declaration.

    Args:
        payment_request_id: The unique ID that is assigned by the ACQP to identify a payment request for the order.Maximum length: 64 characters
        customs_declaration_request_id: The unique ID that is assigned by the merchant to identify a customs declaration request. This parameter is not provided for the customs. Maximum length: 64 characters
        declaration_amount_value: The customs declaration amount as a natural number.Value range: 1 - unlimited
        customs_code: The customs code (in either uppercase or lowercase). Maximum length: 128 characters
        merchant_customs_code: The merchant code that is registered in the customs system. Maximum length: 128 characters
        merchant_customs_name: The merchant name that is registered in the customs system. Maximum length: 256 characters
        is_split: This parameter indicates whether the payment order needs to be split for declaration. Valid values are:
            true: indicates that order splitting is needed.
            false: indicates that order splitting is not needed.
        reference_order_id: The unique ID that is assigned by the merchant to identify an order that needs to be declared to the customs. Maximum length: 64 characters
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
is_splitYes
customs_codeYes
payment_request_idYes
reference_order_idYes
merchant_customs_codeYes
merchant_customs_nameYes
declaration_amount_valueYes
customs_declaration_request_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the operation ('declare or update') but does not disclose potential side effects, required permissions, reversibility, or consequences of updating. This is a significant gap for a mutation-oriented tool.

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 well-structured: it opens with a clear purpose statement, then lists each parameter in a compact but informative format. Every sentence contributes value, and there is no filler or redundancy. The formatting is consistent and readable despite the length needed for 8 parameters.

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?

Given the tool's complexity (8 required parameters) and the lack of annotations, the description is largely complete: it covers all parameters thoroughly, specifies value constraints, and defines the operation. However, it does not address edge cases such as error handling, idempotency, or how 'update' interacts with an existing declaration, which would round out completeness.

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?

The schema provides zero description coverage (0%), but the tool description compensates thoroughly. Every parameter is explained with meaningful details: value ranges ('1 - unlimited'), maximum lengths, valid boolean values ('true'/'false'), and ownership context ('assigned by the ACQP', 'assigned by the merchant'). This fully adds meaning beyond the raw schema.

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's function: 'used by the Acquiring Service Provider (ACQP) to declare a payment to customs or update an existing declaration.' This provides a specific verb ('declare'/'update') and resource ('payment to customs'), distinguishing it from sibling tools like query_customs_declare.

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 implies usage context (declaring or updating customs declarations) but does not explicitly state when to prefer this tool over alternatives, nor does it mention exclusions. For example, no guidance like 'use query_customs_declare for retrieving declaration status' is provided.

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/alipay/global-alipayplus-mcp'

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