Skip to main content
Glama

Quote fee compound

lp_compound_quote
Read-onlyIdempotent

Get a quote for compounding a position (harvest fees/rewards, swap to ratio, reinvest). Returns expected liquidity increase, swap plan, simulation results. Verifies position eligibility. Read-only. Phase one: rejects third reward tokens (no verifiable swap path). Failure modes: ineligible position, third reward token, insufficient harvested fees for minimum liquidity unit, swap plan failure.

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": {
      "wallet": "<wallet>",
      "positionMint": "<positionMint>"
    },
    "name": "lp_compound_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesWallet public key
positionMintYesPosition NFT mint address
sourceSignaturesNoOptional: prior harvest transaction signatures to merge (max 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds genuine behavioral detail: what the response contains (expected liquidity increase, swap plan, simulation results) and a concrete enumerated list of failure modes including the phase-one third-reward-token limitation. It stops short of describing latency, rate limits, or what happens when merged sourceSignatures conflict.

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?

Front-loaded with the core action and return shape, then eligibility, safety, and failure modes in descending priority. Sentences are clipped to near-telegraphic style, which is efficient but slightly terse in places like 'Phase one: rejects third reward tokens'.

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?

With no output schema, the description usefully summarizes return values and enumerates failure modes, which is what an agent needs before calling. It omits the expected next step (prepare) and whether prior approvals or position ownership are checked, leaving a small gap for a multi-phase workflow tool.

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 description coverage is 100%, so all three parameters including the optional max-3 sourceSignatures are already documented. The description adds no semantics for wallet, positionMint, or how sourceSignatures affects the harvest merge, so the schema does the work and the baseline 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?

States a specific verb and resource ('Get a quote for compounding a position') and enumerates the underlying mechanics (harvest fees/rewards, swap to ratio, reinvest). The read-only/quote framing distinguishes it from the prepare/submit phases, though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the quote-then-prepare pattern and by 'Verifies position eligibility', but there is no explicit 'call this before lp_compound_prepare' routing or statement of prerequisites such as wallet holdings. Phase one restrictions are given, which helps, but the when/when-not framing is left to inference.

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