Skip to main content
Glama

value_lp_token

Value a liquidity-provider position. Give the LP token's asset id (free, no key) and optionally amount in LP BASE units — what the wallet holds — for its USD value and the redeemable amount of each underlying. Also identifies the issuing pool/DEX (and STAMM tier). Per-unit figures are per WHOLE LP token. Values are a proportional-share redemption at analytics prices: no slippage, no exit fee, NOT a market quote — fields are null rather than guessed when supply or a price is missing, so check before reporting a number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNo
asset_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the transparency burden. It discloses important behavioral traits: 'Per-unit figures are per WHOLE LP token', 'Values are a proportional-share redemption at analytics prices: no slippage, no exit fee', null behavior when data is missing, and the caveat to check before reporting numbers. This is rich, honest disclosure beyond basic annotations.

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?

The description is a single moderately sized paragraph, but every sentence contributes necessary detail. It front-loads the primary action, then explains inputs, output semantics, and limitations efficiently. It is slightly dense but remains readable and appropriately sized for the tool's complexity.

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?

The tool has an output schema, but the description independently explains what is returned: USD value, redeemable amount of each underlying, and pool/DEX/STAMM tier. It also addresses edge cases (null when supply/price missing) and limitations (no slippage, no exit fee). This makes the description self-sufficient for an agent to understand inputs, outputs, and caveats without needing to inspect the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, but the description directly explains both parameters: 'asset id' identifies the LP token, and 'amount' is in 'LP BASE units — what the wallet holds'. It adds crucial context that 'amount' is optional and that per-unit figures are per whole LP token, providing meaning well beyond the raw 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 opens with a specific verb and resource: 'Value a liquidity-provider position.' It clearly distinguishes from siblings by focusing on LP token valuation, as opposed to swaps, quotes, balances, or watches. The scope is precise and the function's purpose is unambiguous.

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 gives explicit input requirements ('Give the LP token's asset id... and optionally amount') and sets expectations for the output. It clearly states a key exclusion: 'NOT a market quote', which tells the user when not to use this tool. However, it does not name a specific alternative tool (like get_quote) for market quotes, leaving a slight gap in alternative guidance.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: quoting vs building swaps, managing watches, handling payments, registration steps, and LP valuation. Even related tools like get_credit_offer and pay_x402_invoice are clearly separated as 'create offer' vs 'pay invoice'. No two tools appear to duplicate functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case, using verbs like get, list, build, set, delete, pay, register, verify, value. Read operations are consistently divided into get_ (single item) and list_ (collections), and the rest are action-oriented. This makes the API predictable and easy to navigate.

Tool Count5/5

With 12 tools, the server covers its main domains—swap quoting/building, payment, credit management, watch management, agent registration, and LP valuation—without unnecessary bloat. Each tool earns its place, and the count fits comfortably within the typical 3-15 tool range for a well-scoped server.

Completeness4/5

The tool set covers core workflows end-to-end: quote to swap, credit top-up to payment, watch registration to listing/deletion, and two-step agent registration. Minor gaps exist, such as no dedicated get_watch (though list_watches covers it) and no way to inspect past transactions or offers, but agents can work around these without major friction.