Skip to main content
Glama

LP 历史

get_lp_history
Read-onlyIdempotent

某市场 LP 份额净值、手续费收入、交易者盈亏的按天历史。

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": {
      "market": "<market>",
      "days": "<days>"
    },
    "name": "get_lp_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes查询 LP 历史统计天数(1–3650,默认 30 天)
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / days / description
      Added value: +"查询 LP 历史统计天数(1–3650,默认 30 天)"
  2. Changed3 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"
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description usefully discloses what the series actually contains (three metric families, daily buckets, per-market scoping), but says nothing about return shape, whether the current day is partial, or how sparse days are handled.

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?

A single compact sentence with the resource and metrics front-loaded and no filler. It is a noun phrase rather than a full clause, which slightly weakens scanability but wastes nothing.

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?

With only two fully documented parameters and rich annotations, the definition covers the invocation contract. Since there is no output schema, however, the description should say more about what a returned day looks like (units, per-share normalization, whether fee income and trader P&L are cumulative or per-day).

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 coverage is 100%: days carries its range and default, and market documents the accepted identifier forms (slug, contract address, token address/symbol, underlying). The description adds only indirect meaning — '某市场' implies the market argument scopes the result and the daily granularity motivates days — so the baseline 3 applies.

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 description names a specific resource (LP share net value, fee income, trader P&L) scoped to one market and to daily granularity, which distinguishes it from unrelated siblings like get_market_trades or get_candles. It falls short of a 5 because it never names or contrasts the closest alternatives (get_market_series, get_market_economics), so an agent must infer the boundary itself.

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?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no pointer to an alternative for related market-level time series. Usage is only implied by the word 'history' in the title and the metric list.

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