Skip to main content
Glama

write_account_upgrade

Idempotent

Builds an unsigned transaction for the account owner to upgrade an Arcadia account to its next version via the Factory, keeping positions, collateral, and debt unchanged.

Instructions

Build an unsigned transaction that upgrades an Arcadia account to its next account version via the Factory. Only the account owner can send it. Positions, collateral and debt stay as they are. write_account_borrow and write_account_add_liquidity include this upgrade automatically when the account needs it to take on debt.

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>"
    },
    "name": "write_account_upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
chain_idNoChain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
account_addressYesArcadia account to upgrade

Output Schema

NameRequiredDescriptionDefault
descriptionYes
transactionYes
predicted_account_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotency and destructiveness, and the description adds real context on top: the output is an unsigned transaction (not a broadcast), it requires owner authorization, and positions/collateral/debt are preserved. It stops short of stating what happens if the account is already on the latest version, which is the main residual behavioral question.

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 tight sentences: purpose first, then the auth constraint, then the state-effect guarantee, then the routing note. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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?

Output schema exists so return values need not be described, both parameters are fully documented in the schema, and the description supplies the missing operational pieces (owner-only, unsigned, no state change, auto-included elsewhere). For a two-parameter transaction-builder this is sufficient to call correctly.

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% and both parameters (chain_id with enumerated values, account_address) are documented in the schema. The description adds no parameter-level detail beyond naming the account conceptually, 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 ('Build an unsigned transaction that upgrades an Arcadia account to its next account version via the Factory'), including the mechanism (Factory) and scope (next version). It also differentiates itself from write_account_borrow and write_account_add_liquidity by explaining those tools perform this upgrade implicitly.

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?

Explicitly states the prerequisite for use ('Only the account owner can send it') and, more importantly, tells the agent when NOT to call it directly: borrow and add_liquidity include the upgrade automatically when needed. That is a concrete use-this-vs-that rule rather than a vague hint.

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