Skip to main content
Glama

存入 LP

build_deposit_lp
Read-only

生成向某市场存入资产做 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. Changed2 schema fields changed
    • addedInput schema / properties / tokens / maximum
      Added value: +1000000000000000
    • addedInput schema / properties / usdc / maximum
      Added value: +100000000
  2. Changed6 schema fields changed
    • removedInput schema / properties / market / maxLength
      Removed value: -80
    • removedInput schema / properties / market / minLength
      Removed value: -1
    • removedInput schema / properties / market / type
      Removed value: -"string"
    • addedInput schema / properties / tokens
      Added value: +{
      +  "description": "仅币本位市场(under=MEME)使用:存入多少枚对应 Meme 代币做 LP",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / usdc / description
      Previous value: -"存入多少 USDC"New value: +"USDC 本位市场存入多少 USDC(币本位市场不可传 usdc)"
    • changedInput schema / required
      Previous value: -[
      -  "account",
      -  "market",
      -  "usdc"
      -]New value: +[
      +  "account",
      +  "market"
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=true, destructiveHint=false, idempotentHint=false), the description discloses substantial behavior: the 0.5% slippage-based minimum-shares formula, the automatic MLV deposit for ordinary LP, the outright rejection of usdc on coin-based markets, and the creator lockup with a 7-day cooldown versus lockup-free minting for regular LP. It does not explicitly say that the result is an unsigned transaction requiring signature/submission, though '生成...交易' implies it. Nothing here contradicts readOnlyHint=true, since the tool builds rather than executes.

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?

Three dense sentences, front-loaded with the purpose before the market-type routing rules and then the lockup behavior. No filler or repetition; each clause carries either a routing constraint or a behavioral fact the agent needs to call the tool correctly.

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 4-parameter transaction-building tool with no output schema, the description covers the hard part: which quantity parameter applies to which market type, what the minimum shares mean, and how lockup differs for creators versus ordinary LP. The remaining gap is that it never states what the tool returns (presumably an unsigned transaction to be signed and submitted) or points to the withdraw counterpart.

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 description coverage is 100%, so the baseline is 3. The description goes beyond it by encoding a cross-parameter constraint the schema cannot express: usdc and tokens are mutually exclusive depending on whether the market is USDC-denominated or coin-denominated (under=MEME), and usdc on a MEME market is rejected. That routing logic is genuinely useful semantic content not present in the property descriptions.

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?

The opening sentence states a specific verb and resource: generate a transaction that deposits assets into a given market to provide LP ('生成向某市场存入资产做 LP 的交易'). The scope is concrete and the minimum-shares computation (0.5% below current share price) adds precision. It never names the complementary build_withdraw_lp sibling, so differentiation is left implicit through the direction of the operation (deposit vs. withdraw).

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?

It gives explicit routing rules keyed to market type: for USDC-denominated markets pass usdc (ordinary LP auto-deposits into the MLV shared pool when MLV is enabled), while coin-denominated markets (under=MEME) accept only tokens and will reject usdc outright to avoid on-chain rejection and wasted gas. It also states who gets what: ordinary LP mints freely with no lockup, market creators (dev) auto-deposit into the creator lockup contract with a fixed 7-day redemption cooldown. The conditions that select each path are spelled out rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources