Skip to main content
Glama

buy

Destructive

Purchase units of a financial symbol at a given price, updating cost basis for existing holdings or opening a new position.

Instructions

加仓/建仓:已有 symbol 加权平均成本,新 symbol 直接建仓。price 与 currency 同币种。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoequity
priceYes
unitsYes
symbolYes
currencyNoCNY
unit_labelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond annotations (destructiveHint=true), the description reveals cost averaging for existing symbols and direct opening for new ones. It also notes price and currency consistency, adding meaningful behavioral context.

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?

Single sentence front-loads the main action. It is dense but efficient, though splitting into bullet points could improve readability.

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?

Given 6 parameters and an output schema, the description covers core behavior but omits details like output structure or edge cases. Adequate for experienced users but not comprehensive for new users.

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 has 0% coverage, so description partially compensates by explaining 'price' and 'currency' relationship. However, 'kind', 'units', and 'unit_label' are not addressed, leaving gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool is for buying/increasing position, distinguishing between existing and new symbols. While concise, it conveys the core action and differentiates from siblings like 'sell'.

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 versus alternatives like 'sell' or 'deposit'. The description does not specify prerequisites or scenarios where other tools would be more appropriate.

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/longsizhuo/openInvest'

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