Skip to main content
Glama
okx-wallet-H

hvip MCP Server

by okx-wallet-H

agent_set_preference

Persist agent preferences, such as default trading pair or risk level, to maintain user choices across conversational sessions.

Instructions

[L:READ] CAT:[系统] | ## 功能:设置 Agent 持久化偏好,跨会话保留

场景:用户说"以后默认交易对用BTC-USDT"时,Agent 保存偏好,下次会话自动恢复

关键词:偏好, preference, 设置, 记忆, 持久化, 用户画像

参数:

- key: 偏好键名

- value: 偏好值

鉴权:PUBLIC — 本地写入

风险:READ — 本地文件写入,无资金风险

返回量:微小 ~200B

关联:本工具设置偏好 → agent_get_preference 读取 → Agent 按偏好决策

常用键名参考:

- default_instId: 默认交易对,如 BTC-USDT-SWAP

- default_tdMode: 默认交易模式 (cross/isolated/cash)

- risk_level: 风险偏好 (low/medium/high)

- trade_mode: 交易模式 (spot_only/swap_permitted/margin_permitted)

- position_size_pct: 单笔仓位占比,如 0.1 (10%)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes偏好键名。常用: default_instId, default_tdMode, risk_level, trade_mode, position_size_pct
valueYes偏好值
Behavior4/5

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

No annotations exist, so the description fully bears the burden. It discloses authentication (PUBLIC), risk (READ, local file write, no fund risk), and return size (~200B). This provides necessary behavioral context beyond the schema.

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 with clear sections: function, scenario, keywords, parameters, auth, risk, return size, relationship, and common keys. Every section adds value without verbosity. It is front-loaded with the core purpose.

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?

Given the tool's simplicity (2 params, no output schema), the description covers all necessary aspects: purpose, usage scenario, parameter guidance, risk, auth, and relationships to sibling tools. It provides a complete and self-contained understanding.

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?

The input schema covers both parameters with descriptions. The description adds value by listing common key names and their meanings (e.g., default_instId, risk_level), which helps the agent form correct invocations beyond the 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 purpose: setting persistent preferences for the agent, with cross-session retention. It provides a concrete scenario (user says 'future default trading pair') and lists keywords, making it distinct from sibling tools like agent_get_preference.

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?

The description includes a scenario and keywords for when to use, and explicitly links to agent_get_preference for reading. It provides common key names as guidance. While no explicit 'when not to use' is given, the context is sufficient for correct invocation.

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