Skip to main content
Glama

portfolio_rebalance-plan

Read-onlyIdempotent

Generates trade list to rebalance portfolio from current holdings to target weights with transaction cost estimate.

Instructions

Generate trade list to rebalance from current holdings to target weights with transaction cost estimate.

Use when generating the exact trades needed to rebalance a portfolio from current holdings to target weights. Provide current_holdings (asset -> USD value), target_weights (asset -> weight, sum to 1), transaction_cost_bps. Returns: list of trades (buy/sell with amounts), total cost, drift before/after, and post-rebalance weights. PAID ONLY — no free tier.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
min_trade_usdNoMinimum trade size in USD (smaller drifts are ignored)
target_weightsYesAsset symbol -> target weight (must sum to ~1.0)
current_holdingsYesAsset symbol -> current dollar value
transaction_cost_bpsNoOne-way transaction cost in bps (incl. spread + commission)
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive. The description adds value by detailing the return structure (trade list, costs, drift, weights) and mentions pricing, which enhances transparency beyond annotations.

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?

The description is concise and well-structured: one sentence for purpose, one for usage, one for inputs/outputs, and one for pricing. Every sentence adds value, with no redundancy.

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?

Given no output schema, the description explicitly lists return fields, making it comprehensive. It covers inputs, usage, and outputs, though it could briefly explain that the tool does not execute trades.

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 coverage is 100%, so parameters are well-defined. The description briefly summarizes parameters but adds minimal new semantic value beyond what the schema already provides.

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

Purpose4/5

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

The description clearly states the tool 'generate trade list to rebalance' with specific inputs and outputs. It distinguishes itself from siblings like portfolio_optimize by focusing on rebalancing with given target weights, but lacks explicit sibling differentiation.

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?

The description explicitly says 'Use when generating the exact trades needed to rebalance a portfolio' and notes the paid tier, providing clear context. However, it does not mention when not to use this tool or alternative tools like portfolio_optimize for weight generation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuantOracledev/quantoracle'

If you have feedback or need assistance with the MCP directory API, please join our Discord server