Skip to main content
Glama

get_rebalancing_plan

Read-only

Generate a rebalancing plan from current position values and target weights, showing buy/sell amounts, new weights, and warnings for assets in one currency. Does not fetch prices.

Instructions

Mevcut pozisyon değerleri ve hedef ağırlıklardan yeniden dengeleme (rebalancing) planı üretir: her varlık için al/sat tutarı, yeni ağırlıklar ve uyarılar. Fiyat çekmez; tüm değerler aynı para biriminde olmalıdır. Örn: A=6000, B=4000 → hedef A %70, B %30.

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": {
      "positions": "<positions>",
      "targets": "<targets>"
    },
    "name": "get_rebalancing_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNoPlanlamaya dahil edilecek nakit (opsiyonel)
targetsYesHedef ağırlıklar (toplam %100 olmasa da normalize edilir)
currencyNoDeğerlerin para birimi etiketi (varsayılan TRY)TRY
positionsYesMevcut pozisyonlar ve değerleri

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.3/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, and the description adds genuinely new behavioral facts: it performs no price lookups, requires homogeneous currency values, and returns warnings alongside the plan. It does not discuss edge cases such as empty or mismatched symbol sets, so it stops at a 4.

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 short sentences: capability first, key constraint second, illustrative example last. The example earns its place by showing how positions and target weights interact, and nothing is repeated from the schema.

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 carries the burden of describing returns and does so precisely (buy/sell amounts, new weights, warnings). For a read-only four-parameter computation tool, an agent has everything needed to call it 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 coverage is 100%, so all four parameters are already documented, including the normalization note on targets. The description contributes a cross-parameter constraint (values must share one currency) and a worked example (A=6000, B=4000 → A %70), which is modest added meaning rather than essential clarification.

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 concrete verb and artifact ('yeniden dengeleme planı üretir') plus exactly what the plan contains: per-asset buy/sell amounts, new weights, and warnings. The clause 'Fiyat çekmez' explicitly separates it from the many price-fetching siblings in the catalog, so the agent can distinguish it without opening the schema.

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?

Establishes the input precondition clearly ('tüm değerler aynı para biriminde olmalıdır') and implicitly tells the agent it must obtain prices elsewhere before calling. No sibling alternative is named outright, which keeps it just short of a 5, but the when-to-use context is unambiguous.

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