Skip to main content
Glama
longbridge

longbridge

Official

Estimate Max Purchase Quantity

estimate_max_purchase_quantity
Read-onlyIdempotent

Calculate the maximum buy or sell quantity for a security given order type, side, and optional limit price. Assists in order sizing.

Instructions

Estimate maximum buy/sell quantity for a symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesSecurity symbol, e.g. "700.HK"
sideYesBuy or Sell
order_typeYesOrder type: LO (Limit Order) / ELO (Enhanced Limit Order) / MO (Market Order) / AO (At-auction) / ALO (At-auction Limit Order)
priceNoLimit price for limit-style orders. Omit for market orders.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cash_max_qtyYesMaximum buy/sell quantity using cash buying power.
margin_max_qtyYesMaximum buy/sell quantity using margin buying power.
Behavior3/5

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

Annotations declare readOnlyHint, idempotentHint, and openWorldHint, but the description adds no behavioral context beyond 'estimate'. It doesn't clarify that the estimate is based on current market conditions or that actual quantities may differ. Thus, it relies entirely on annotations without adding value.

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 a single sentence of 7 words, which is extremely concise. It front-loads the key action and resource. Every word is necessary; no filler.

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?

Despite good annotations and full schema coverage, the description lacks context such as the output format or that this is a pre-order check. It is minimally acceptable for a simple read tool but could better explain its role in the workflow.

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?

Input schema covers 100% of parameters with descriptions, so the description does not need to add parameter details. The description mentions 'buy/sell quantity' but does not elaborate on the parameters, which is acceptable given the schema coverage.

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 uses a specific verb ('Estimate') and resource ('maximum buy/sell quantity'), clearly distinguishing it from sibling tools like submit_order or order_detail. The purpose is immediately understandable.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives. For example, it doesn't mention that this should be used before placing an order or that other tools like account_balance might be relevant. The description provides no usage context.

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/longbridge/longbridge-mcp'

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