Skip to main content
Glama

Prepare fee compound

lp_compound_prepare

Prepare an unsigned compound transaction. Returns base64 transaction, permit, and summary. Same safety as lp_add_prepare: full simulation, HMAC permit, no private keys. After signing, use lp_compound_submit.

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_prepare"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare openWorldHint=true and destructiveHint=false, but the description adds meaningful context beyond them: the return payload (base64 transaction, permit, summary), full simulation, HMAC permit issuance, and no private-key custody. It does not cover permit expiry, rate limits, or whether simulation failures surface as errors, so it stops short of a 5.

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 short sentences, front-loaded with the action and return shape, then safety, then the next step. No filler and no repetition of the title.

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?

There is no output schema, but the description enumerates the return envelope (base64 transaction, permit, summary), which is the critical information for an unsigned-tx builder. Only minor gaps remain around failure behavior and permit lifetime.

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 wallet, positionMint, and sourceSignatures are each documented in the schema. The description adds no parameter-level meaning — notably it never mentions the optional sourceSignatures (prior harvest signatures) or why they matter — so the baseline 3 applies.

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?

States a specific verb and resource — 'Prepare an unsigned compound transaction' — and immediately names the downstream sibling (lp_compound_submit) that finishes the flow. An agent can tell this apart from lp_compound_submit and lp_compound_quote without opening any schema.

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?

Explicit next-step routing: 'After signing, use lp_compound_submit' makes the ordering unambiguous. It lacks an explicit exclusion (e.g., when to prefer lp_compound_quote first), so it falls just short of full when/when-not 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.

Resources