Skip to main content
Glama

write_account_adjust_range

Idempotent

Move an existing Arcadia LP position to a new tick range in one flashAction while leaving the account's other collateral and debt unchanged.

Instructions

Move one LP position in an Arcadia account to a new tick range in one flashAction: the position is burned, its own tokens (fees included, less the protocol share) are swapped to the new range's ratio and it is minted again, staked again when it was. Nothing else in the account moves and the debt is unchanged, so other collateral keeps backing the account. Use this to re-range a position the account already holds; use write_account_add_liquidity to open a position or add capital. Supports Uniswap V3, Uniswap V4, Slipstream and Aero positions in spot and margin accounts. position_manager and position_id are the position's asset address and NFT id from read_account_info. tick_lower and tick_upper must be multiples of the pool's tick spacing and differ from the current range. A staked or wrapped Slipstream position whose gauge is killed is refused: move it to Aero (write_account_aero_upgrade) or close it. The returned calldata is time-sensitive: sign and broadcast promptly; on a price revert, build again. After a transaction confirms, pass its block as min_block on the next call. If tenderly_sim_status is failure the tool returns an error and no transaction; unavailable means Tenderly did not answer: call once more before signing. Only the account owner can sign it. If the pool's price is off market or one of its tokens has no price, the tool returns the price warnings, an accept_price_checks list and NO transaction. Show the warnings to the user and call again with that accept_price_checks list only after the user explicitly confirms they accept them. If a later call returns new warnings, even on a rebuild, show them and get a new confirmation before passing their list.

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": {
      "account_address": "<account_address>",
      "position_manager": "<position_manager>",
      "position_id": "<position_id>",
      "tick_lower": "<tick_lower>",
      "tick_upper": "<tick_upper>"
    },
    "name": "write_account_adjust_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
chain_idNoChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
slippageNoSwap slippage in bps. Omit for the backend default (50).
min_blockNoBlock of the transaction you just confirmed, so the build reads state at or after it
tick_lowerYesLower tick of the new range
tick_upperYesUpper tick of the new range
position_idYesNFT id of the position
account_addressYesArcadia account address
position_managerYesAsset address of the position in the account (from read_account_info)
accept_price_checksNoThe accept_price_checks list returned with the price warnings of a previous call, passed unchanged and only after the user has explicitly confirmed those warnings. Never set it on the first call.

Output Schema

NameRequiredDescriptionDefault
afterNo
beforeNo
descriptionNo
transactionYes
price_checksNo
tenderly_sim_urlNo
tenderly_sim_statusNo
expected_value_changeNo
expected_value_change_unavailableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic write/openWorld/non-destructive profile; the description adds the substantive behavior: what is burned and re-minted, that debt and other collateral are untouched, that calldata is time-sensitive, the min_block sequencing rule, tenderly_sim_status handling, and that only the account owner can sign. The price-warning/accept_price_checks confirmation loop is disclosed in full, which is exactly the kind of context annotations cannot carry.

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 mechanic and alternative routing before edge cases, and every sentence carries an operational constraint rather than filler. It is a dense block of prose with many separate rules packed in, which costs a little scannability, but nothing is redundant.

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 9-parameter, high-stakes write tool, the definition covers prerequisites, refusal conditions, simulation failure modes, re-signing guidance, and the user-confirmation gate on price warnings. Return values need not be explained given the output schema exists, so nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns above baseline by giving provenance and constraints the schema lacks: position_manager/position_id come from read_account_info, and ticks must be multiples of the pool's tick spacing and differ from the current range. The accept_price_checks confirmation protocol is also constrained beyond its schema text.

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?

Opens with a precise verb, resource and scope: "Move one LP position in an Arcadia account to a new tick range in one flashAction," then spells out the burn/swap/mint/stake mechanics. It explicitly contrasts with write_account_add_liquidity, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ("re-range a position the account already holds") paired with the alternative and its condition (write_account_add_liquidity to open or add capital). It also names a refused case and routes it to write_account_aero_upgrade or close, covering both the positive and negative paths.

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