Skip to main content
Glama
okx-wallet-H

hvip MCP Server

by okx-wallet-H

agent_simulate_order

Simulate a trade to preview estimated execution price, slippage, and fees without placing a real order.

Instructions

[L:READ] CAT:[系统] | ## 功能:模拟下单——不产生真实订单,返回预估成交价、滑点、手续费、资金占用

场景:Agent 回答"如果我现在买入0.1 BTC会怎样"时使用,让用户在不冒风险的情况下了解交易成本

关键词:模拟交易, 沙盒, simulate, 预估, 滑点, 手续费, 资金预估

参数:

- instId: 产品ID

- side: buy=买入, sell=卖出

- sz: 下单数量

- tdMode: 交易模式

- px: 限价(选填,用于计算限价单预估)

鉴权:⚠️ 需要 API Key(只读,不产生订单)

风险:READ — 只查询+计算,不产生真实订单

返回量:微小 ~1KB

关联:本工具模拟 → 用户确认 → agent_quick_trade 真实下单

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pxNo限价(选填,用于计算限价单预估)
szYes下单数量
sideYes买卖方向
instIdYes产品ID,如 BTC-USDT-SWAP
tdModeYes交易模式
Behavior5/5

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

With no annotations, the description fully covers behavior: it is read-only, does not create real orders, requires API key, returns small data (~1KB), and outlines the simulation flow. It ensures the agent knows it is safe and non-destructive.

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?

Well-structured with clear sections (function, scenario, keywords, parameters, auth, risk, return size, link). Each sentence adds value, though it could be slightly more concise without losing clarity.

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

Completeness5/5

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

Despite no output schema, the description lists returned values (estimated price, slippage, fee, capital) and covers auth and risk. It is complete for a simulation tool, providing all necessary context for proper use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds context for each parameter (e.g., side with buy/sell translations, px as optional for limit orders). It repeats some schema info but enhances understanding with usage context.

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 it simulates an order without creating a real one, returning estimated values such as price, slippage, fees, and capital usage. It distinguishes itself from real order tools like agent_quick_trade, and mentions specific outputs.

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

Usage Guidelines5/5

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

Explicitly states the use case: when the agent answers 'what if I buy 0.1 BTC now' to let users understand costs without risk. It also links to the next step (agent_quick_trade for real ordering), providing clear guidance on when to use this tool versus alternatives.

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/okx-wallet-H/hvip-mcp'

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