Skip to main content
Glama

AlgoVesta MCP Trading

update_strategy

DestructiveIdempotent

Changes the settings of an existing strategy (leverage, risk, SL/TP percentages, trailing, allowed symbols, target account, and whether it accepts signals at all).

WHAT THIS TOOL CANNOT DO, on purpose:
- `auto_trade` (the real-money switch) is REFUSED. A single order is one action; a
  strategy runs forever, so turning real money on stays a human decision made in the
  panel.
- `ip_allowlist` is REFUSED: it is the second factor that verifies where signals come
  from, so it must not be weakened from here.
- Deleting a strategy is not possible here; that is done in the panel.
Fields that were refused come back in `refused_fields`; the other fields are still
applied.

Setting `reverse_enabled` to true returns a `warning`: from then on a BUY signal
opens a SHORT and a SELL signal opens a LONG on that strategy.

Only the fields present in `changes` are modified. idempotency_key is REQUIRED.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesNoFields to change, e.g. {"leverage": 5, "risk_pct": 1.5, "enabled": false}. Allowed: name, exchange, leverage (1-20), risk_pct (0.1-50), sl_percent, tp_percent, margin_type, trailing_enabled, trailing_trigger_pct, trailing_distance_pct, breakeven_enabled, breakeven_trigger_pct, multi_tp, ai_filter, ai_min_score, enabled, allowed_symbols, reverse_enabled, win_rate_filter_enabled, min_win_rate, builder_config, market_target, api_key_id, mt_account_id. auto_trade, status and ip_allowlist are REFUSED here by design.
strategy_idNoid of the strategy to change, as listed by list_strategies.
idempotency_keyNoClient-generated unique idempotency key (min 8 characters). Reuse the SAME key when retrying the same action — the stored response is replayed and the action is NOT performed a second time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag a destructive, idempotent, non-read-only write; the description goes well beyond that by disclosing partial-apply semantics, the refused_fields response channel, and a semantic side effect (reverse_enabled=true inverts BUY/SELL and returns a warning) that no annotation or schema exposes. The one soft spot is calling idempotency_key REQUIRED while the schema marks it nullable with a null default.

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?

Well front-loaded: the core action leads, the prohibition list follows under an explicit heading, and side effects come last. Slightly long, and the refusal list partially duplicates the schema's own 'REFUSED here by design' note, but each sentence carries operative information.

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?

For a destructive, no-output-schema mutation, the definition covers refusals, partial application, idempotency and a warning side effect, which is most of what an agent needs. It does not mention permission/auth requirements for mutating a strategy, nor what happens if strategy_id is omitted given no required parameters.

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 coverage is 100%, so the enumerated allowed fields are already documented; the description still adds real meaning by explaining partial-update semantics, the refused_fields outcome, the reverse_enabled warning, and the retry/idempotency contract. It does not add format or range detail beyond the schema, so it sits just above the baseline.

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?

Opens with a specific verb and resource ('Changes the settings of an existing strategy') and enumerates the editable surface (leverage, risk, SL/TP, trailing, allowed symbols, target account, signal acceptance). That is enough for an agent to separate it from create_strategy and list_strategies without opening any schema.

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 explicit when-not rules: auto_trade, ip_allowlist and deletion are refused here and belong in the panel, with the reason for each. It also states the partial-application contract (refused fields returned in refused_fields, everything else applied) and that only fields present in changes are modified, so an agent knows exactly what this call will and will not do.

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.