Skip to main content
Glama

Open a paper position

arena_open

Opens a paper position with play money in a real pool, laid out at the pool's price on the chain right now. Use after arena_join, with a pool from arena_pools or the token's default; for a real position from a wallet use plan_build. Returns: opened (the position: id, pair, band, askedUsd, putInUsd, valueUsd, holds), cashUsd, open (how many are open), say (how to explain it). Behavior: writes to the account; the token side is bought at the pool's real quote, so putInUsd can be under askedUsd and the rest stays cash; the position then earns the pool's real fees swap by swap, moves with the real price, and costs what a real one costs (0.25% to open, 5% of the fees). Heavy: costs 4 units and a heavy slot. Errors: refused when cash is short of amountUsd, 20 positions are already open, the band holds no rung, or the token has no pool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolNoThe pool id from arena_pools. Left out: the token's default pool, the first one listed.
rungsNoHow many rungs the band is cut into, 1 to 40; default 16.
shapeNoHow the money is spread over the rungs: spot (even), curve (most at the price), bidask (most at the edges), hybrid (between), custom (weights); default hybrid.
tokenYesThe token's address.
lowPctYesthe band's bottom, percent from the price (negative)
highPctYesthe band's top, percent from the price
weightsNoWith shape custom: a relative height per rung, low price to high, any scale; resampled to the rung count.
amountUsdYesPlay dollars to put in, 1 to 100000, from the account's cash.
fullRangeNoTrue lays the whole price range instead of the band; lowPct and highPct are then ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / amountUsd / description
      Added value: +"Play dollars to put in, 1 to 100000, from the account's cash."
    • addedInput schema / properties / fullRange / description
      Added value: +"True lays the whole price range instead of the band; lowPct and highPct are then ignored."
    • addedInput schema / properties / pool / description
      Added value: +"The pool id from arena_pools. Left out: the token's default pool, the first one listed."
    • changedInput schema / properties / rungs / description
      Previous value: -"default 16"New value: +"How many rungs the band is cut into, 1 to 40; default 16."
    • changedInput schema / properties / shape / description
      Previous value: -"default hybrid"New value: +"How the money is spread over the rungs: spot (even), curve (most at the price), bidask (most at the edges), hybrid (between), custom (weights); default hybrid."
    • addedInput schema / properties / token / description
      Added value: +"The token's address."
    • changedInput schema / properties / weights / description
      Previous value: -"shape custom: a height per rung, low price to high; relative, any scale"New value: +"With shape custom: a relative height per rung, low price to high, any scale; resampled to the rung count."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say it is a non-idempotent write. The description discloses that it writes to the account, that the token side fills at the real quote so putInUsd can be under askedUsd, that fees are 0.25% to open plus 5% of earned fees, that it consumes 4 units and a heavy slot, and it enumerates four refusal conditions. That is exactly the behavioral 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?

Long but densely front-loaded: purpose and routing come first, then returns, then behavior, then cost, then errors, with no filler sentences. The run-on clause structure costs a little readability, but every clause carries information.

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?

With no output schema, the description compensates by enumerating the return fields (opened, cashUsd, open, say) and by covering prerequisites, cost model, resource consumption, and failure modes. An agent has everything needed to call it and interpret the result.

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 description coverage is 100%, so the baseline is 3, but the description adds genuine meaning the schema lacks: amountUsd is 'play dollars' drawn from account cash and may not be fully spent because the token leg fills at the pool's real quote. It also ties the band/rung error to lowPct/highPct and rungs, clarifying how those parameters interact.

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 ('Opens a paper position with play money in a real pool') and immediately scopes the pricing model ('laid out at the pool's price on the chain right now'). It explicitly distinguishes itself from plan_build, the sibling that opens a real position from a wallet, so an agent can route correctly without opening schemas.

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 precondition ('Use after arena_join'), a source for the required pool argument ('a pool from arena_pools or the token's default'), and names the alternative for the other case ('for a real position from a wallet use plan_build'). When-to-use and when-to-use-something-else are both covered.

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