Skip to main content
Glama

Sync strategy to settings (replaces live allocation)

sync_strategy
Destructive

⚠️ Replaces live state: re-applies the strategy's allocation and instructions onto the live trading account's autotrade settings, replacing the current ones while trading stays active — the account starts trading the new configuration immediately. Confirm with the user first. Re-sync autotrade settings with a linked strategy. When a strategy is updated after being linked, the settings become out of sync. Call this to re-apply the strategy's latest configuration onto the live trading account. Requires the trade scope when connected with OAuth (it changes what the account trades).

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": {
      "strategyId": "<strategyId>"
    },
    "name": "sync_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
userIdNoThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).
strategyIdYesThe strategy ID to sync

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, but the description goes well beyond them: it explains that live state is replaced, that trading stays active throughout, that the account begins trading the new configuration immediately, and that the `trade` OAuth scope is required. Those are exactly the consequences an agent needs before invoking a destructive sync.

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

Conciseness3/5

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

The destructive warning is correctly front-loaded, but the text repeats itself: 'Re-sync autotrade settings with a linked strategy' and 'Call this to re-apply the strategy's latest configuration' restate the opening sentence. The permission note could be trimmed to a single clause; roughly a third of the wording is redundant.

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?

For a two-parameter destructive mutation with no output schema, the description covers the live-state impact, the timing of the effect, the confirmation requirement, and the OAuth scope. Combined with annotations and a fully documented schema, an agent has everything needed to call it safely.

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 description coverage is 100% and both parameters (strategyId, userId) are documented in the schema, including the OAuth-vs-API-key rule for userId. The description adds no syntax or format meaning beyond that, so the baseline of 3 applies.

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 states a specific verb and resource: it re-applies a linked strategy's allocation and instructions onto the live account's autotrade settings, replacing current ones. This implicitly distinguishes it from the sibling settings-update tools (which edit settings directly) and from get_autotrade_settings, though it never names an alternative outright.

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?

It gives a concrete trigger: call this when a linked strategy has been updated and the settings are now out of sync. It also adds an operational precondition ('Confirm with the user first'). What it lacks is an explicit when-not case or a named sibling to use instead when the user wants to hand-edit settings.

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.