Skip to main content
Glama
longbridge

longbridge

Official

Validate Fund Order

fund_validate_order
Idempotent

Pre-trade validation for a fund buy/sell order. Places NO order — it only checks the request against the fund channel and returns the validation result (fees, limits, estimated units/amount). Requires auth.

Instructions

Pre-trade validation for a fund buy/sell order. Places NO order — it only checks the request against the fund channel and returns the validation result (fees, limits, estimated units/amount). Requires auth. counter_id from fund_hot / fund_list; action is buy or sell; currency e.g. HKD/USD; give either amount (cash) or units (shares).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_jqNoOptional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response.
unitsNoRedemption units (shares to sell). Use for a sell / buy by units; mutually exclusive with `amount`.
actionYesOrder action: `buy` or `sell`.
amountNoSubscription amount (cash to invest). Use for a buy by amount; mutually exclusive with `units`.
currencyYesOrder currency, e.g. `HKD`, `USD`.
counter_idYesFund counter_id, e.g. `UT/FD/HK0000384492` (from `fund_hot` / `fund_list`).
fund_sourceNoFunding source selector (server-defined). Omit for the default.
account_channelNoAccount channel (server-defined). Omit for the default.
dividend_optionNoDividend handling option (server-defined, e.g. reinvest vs. cash payout).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) carry the safety profile, and the description adds real value beyond them: no order is placed, auth is required, and the validation response contains fees, limits, and estimated units/amount. There is mild tension between 'places NO order' and readOnlyHint=false, but the claim is narrower than a full read-only assertion, so it is not a direct contradiction.

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

Conciseness4/5

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

Front-loaded with the highest-value fact (no order placed), then returns, then auth, then parameter hints. Dense and mostly waste-free, though the parameter sentence duplicates schema content that could have been dropped.

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 9-parameter tool with no output schema, it covers the essentials: no side effects, auth requirement, the shape of the returned validation result, and the two mutually exclusive amount/units paths. The server-defined optional selectors are left to the schema, which is acceptable.

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 restates the key semantics (counter_id origin, action values, currency examples, amount-vs-units mutual exclusivity) but adds essentially nothing the schema descriptions do not already say, and it is silent on fund_source, account_channel, and dividend_option.

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 (pre-trade validation of a fund buy/sell order) and immediately negates the most likely misreading: 'Places NO order — it only checks the request against the fund channel.' That distinguishes it cleanly from fund_submit_order / fund_order, which an agent could otherwise confuse it with.

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?

Implies the when-to-use context clearly (run before placing an order) and names where counter_id comes from (fund_hot / fund_list) plus the allowed action values. It does not explicitly say 'use fund_submit_order to actually place the order,' so the alternative is implied rather than stated.

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

Deploy Server

Other Tools