Skip to main content
Glama

存入 LP

build_deposit_lp
Read-only

Build an unsigned LP deposit transaction for OURS markets: use USDC on USDC-margined markets or the matching Meme token on coin-margined markets to avoid rejected deposits.

Instructions

生成向某市场存入资产做 LP 的交易,最少得到份额按当前份额价扣 0.5% 计算。USDC 本位市场请传 usdc(启用 MLV 共享池时普通 LP 自动存入 MLV);币本位市场(under=MEME)仅支持存入对应 Meme 代币,请传 tokens(传 usdc 会被直接拒绝,避免上链拒单白烧 Gas)。普通 LP 铸造自由份额(无锁仓限制);市场创建者(dev)自动存入创作者锁仓合约(赎回固定 7 天冷静期)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>",
      "market": "<market>"
    },
    "name": "build_deposit_lp"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdcNoUSDC 本位市场存入多少 USDC(币本位市场不可传 usdc)
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
tokensNo仅币本位市场(under=MEME)使用:存入多少枚对应 Meme 代币做 LP
accountYes用户钱包地址(交易的签名人和收款人)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the pricing rule (minimum shares based on current share price minus 0.5%), the lockup asymmetry between ordinary LPs and market creators (7-day redemption cool-down), the MLV auto-routing, and the deliberate rejection of usdc on coin-margined markets to avoid burning gas on a reverted transaction. Those are exactly the consequences an agent cannot infer from structured fields.

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?

Purpose is front-loaded in the first clause and every subsequent sentence carries a distinct rule (pricing, usdc routing, tokens requirement, lockup). The single dense paragraph stacks several independent rules, so bullet-style separation would improve scanability, but there is no filler.

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 transaction-builder with four parameters and no output schema, the description covers the decision rules that matter for correct invocation. It leaves open what the tool actually returns (unsigned tx payload, hash, or quote) and whether it signs or submits, which is the main remaining gap.

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%, so the baseline is 3; the description earns above that by tying usdc vs tokens selection to the market's quote type and spelling out that the wrong choice is rejected rather than coerced. It does not add format or precision details for market/account beyond what the schema already documents.

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 (生成向某市场存入资产做 LP 的交易) plus the scope of the resulting position (普通 LP 自由份额 vs dev 锁仓). An agent can immediately distinguish this from withdrawal/position-building siblings without reading the schema.

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?

Gives concrete conditional routing: USDC-quoted markets pass usdc (auto-routed into MLV when the shared pool is enabled), coin-margined markets (under=MEME) must pass tokens and usdc will be rejected outright. It stops short of naming an alternative tool (e.g. the withdraw counterpart or history lookup), so the when-not-to-use-this-tool side is only implied.

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