Skip to main content
Glama

rebalance_plan

Read-only

Portfolio rebalance, priced against the pools that would execute it, the paid half (0.10 USD1, or half that in $BOBAI, or nothing for a wallet holding 1,000,000 $BOBAI (holder pass over x402: a signature, no transaction — terms in the reply)): The swaps that move a BSC portfolio to target weights, each one costed against its own pool: swap fee, price impact at the actual size, and the transfer tax measured from executed trades. Returns the cost as a share of the money moved, and names the holding the bill is concentrated in. It does not claim to know what a correction is worth — that is a judgement about risk, not a quantity in a pool. For liquidity it rebalances ranges: a range check of every PancakeSwap V3 position a wallet holds, any pair — in range or not, the room to each edge, and the same width re-centred on today's price, aligned to the pool's tick spacing. Calling this tool returns the terms; the answer is sold over x402 at https://agent.brainonbnb.com/answer?service=rebalance_plan (or hired through the ERC-8183 escrow for 0.10 $U).

Input Schema

NameRequiredDescriptionDefault
taskNoWhat you want, with the address in it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, and non-destructive behavior, but the description adds substantial context beyond them: x402 payment terms, holder-pass signature-only access, what the returned cost represents, and the concentration of fees. It also explicitly says calling the tool returns terms rather than executing swaps, which is useful behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a dense, run-on block mixing purpose, payment mechanics, return values, and caveats. The core purpose is front-loaded, but excessive parenthetical detail and sales-channel information obscure the actionable parts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex paid planning/range-checking tool with no output schema, the description provides some return-value context (cost share, named holding, range details) and payment mechanics. However, it remains unclear how to structure the free-form task input and what exactly is returned before versus after payment.

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?

There is one parameter with 100% schema description coverage, so the schema already documents it. The description does not add syntax, examples, or constraints for the free-form task parameter beyond the schema's 'What you want, with the address in it.'

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names several related operations — portfolio rebalance costing, swap planning, and liquidity range checking — but never states cleanly whether the tool plans, quotes, or executes. It also does not differentiate itself from the sibling tool pancakeswap_best_route. The core purpose is inferable, but the payment/x402 framing makes it ambiguous.

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

Usage Guidelines2/5

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

It describes scenarios ('For liquidity it rebalances ranges') but gives no explicit when-to-use guidance, no exclusions, and no comparison to the sibling tool. An agent must infer the conditions for choosing this tool.

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