Skip to main content
Glama

land_liquidity_quote

Get a pool-specific liquidity quote for Splinterlands Land. Provide a pool ID and optionally a resource or DEC amount to receive the corresponding quoted amounts.

Instructions

Get the best route in this liquidity family: a genuine linear, pool-specific quote from GET /land/liquidity/quote/{poolId}. resource_amount and dec_amount are optional inputs and the response carries both quoted amounts. The relationship was verified arithmetically from observed pairs: at the values tested, doubling dec_amount from 100 to 200 exactly doubled resource_amount from 12144.988 to 24289.976, and the relationship held at 1e14. This is an observed relationship at those tested values, not a formula this project has verified across the whole input range. Pool ids 1, 34 and 67 returned different quotes for the same amount. Zero and negative amounts clamp to 0/0, non-numeric amounts return HTTP 400, and an unknown well-formed pool returns 0/0. The one trap is that supplying both resource_amount and dec_amount silently lets resource_amount win, so a caller providing both receives an answer to only one of their questions. This tool reports the upstream quote unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolIdYes
dec_amountNo
resource_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / poolId / maximum
      Added value: +9007199254740991
  2. First observedv0.0.0

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 carries the full burden of behavioral disclosure, and it does so extensively. It discloses the arithmetic relationship verified at tested values, the clamping behavior for zero/negative amounts, HTTP 400 for non-numeric amounts, 0/0 for unknown pools, and the silent precedence of resource_amount when both are supplied. It also explicitly states that the relationship is observed, not verified across the whole input range, and that the tool reports the upstream quote unchanged.

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 dense but not bloated; every sentence adds meaningful information. It front-loads the core purpose and endpoint, then layers behavioral details. It could arguably be trimmed slightly, but the length is justified by the amount of critical behavioral nuance it conveys. The structure is logical: purpose, relationship, edge cases, trap, and final clarification.

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?

For a tool with no annotations and no output schema, the description is remarkably complete. It covers the endpoint, the optional parameters, the response contents, the arithmetic relationship, edge cases (zero/negative, non-numeric, unknown pool), the precedence trap, and the upstream passthrough behavior. An agent has everything needed to call this tool correctly and interpret results.

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?

Schema description coverage is 0%, so the description must compensate for the schema's lack of parameter documentation. It does: it explains that resource_amount and dec_amount are optional inputs, that the response carries both quoted amounts, and how the two amounts relate arithmetically. It also explains the precedence behavior when both are supplied. This is far beyond what the bare schema provides.

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 states a specific verb ('Get'), a specific resource ('the best route in this liquidity family'), and the exact endpoint (GET /land/liquidity/quote/{poolId}). It clearly distinguishes this from sibling tools like land_liquidity_pools and land_liquidity_pool_by_id by focusing on the quote/route behavior rather than pool metadata.

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 clear context for when to use this tool: when you need a pool-specific quote in this liquidity family. It doesn't explicitly name sibling alternatives or state when NOT to use it, but the endpoint reference and the emphasis on 'pool-specific quote' imply the usage context. It also warns about the trap of supplying both amounts, which is a form of usage guidance.

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

Deploy Server

Other Tools