Skip to main content
Glama

NexusTrade Financial MCP

clone_strategies_to_portfolio

Replace a deployed (paper/live) portfolio's entire strategy set with deep copies of a source portfolio's strategy objects (by reference, not YAML). Source is a chat or deployed portfolio; the target MUST be a real deployed portfolio (chat portfolios are immutable and cannot be a target). Use this to deploy a chat portfolio's strategies onto a live/paper portfolio without re-describing them. Do NOT automatically backtest after clone — only backtest when the user asked for research validation. The source's prior backtest does not validate the target (different objects), but deploy-only asks should stop at clone/deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preserve_existingNoWhen true, APPEND the source strategies to the target's existing strategy set instead of replacing it. Existing strategies (and their open system orders) are kept untouched — useful when the target has position-specific exit rules tied to current open positions. Defaults to false (legacy REPLACE semantics: all prior strategies are archived and their open system orders cancelled).
source_portfolio_idNoSource portfolio ID (live, paper, or chat) to copy strategies FROM.
target_portfolio_idYesDeployed portfolio ID (from fetch_portfolios — paper or live) whose strategy set will be REPLACED by default. Keeps its identity, brokerage, deployment, and history. Must be a real portfolio; chat portfolios are immutable and cannot be a target.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden, and it does disclose the destructive default ('Replace... entire strategy set'), source/target validity, and the no-implicit-backtest rule. It does not explicitly state in the main description that prior target strategies are archived and their open system orders cancelled by default—that detail lives only in the preserve_existing parameter schema—and the phrase 'deep copies... by reference, not YAML' is slightly ambiguous.

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?

The description is front-loaded with the core operation, followed by the main use case and guardrails; almost every sentence earns its place. It is slightly long and partially restates schema constraints such as 'the target MUST be a real deployed portfolio', which prevents a 5.

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 mutation tool with no annotations and no output schema, the description is unusually complete: it covers source types, target immutability, copy semantics, replacement behavior, and the post-clone backtest policy. Combined with the detailed input schema and sibling fetch_portfolios for ID discovery, an agent has enough context to invoke 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 description coverage is 100% and the parameter descriptions are already detailed, including preserve_existing behavior, source portfolio types, and the deployed-target restriction. The description reinforces the target constraint and workflow context but adds no genuinely new parameter-level semantics, so the baseline of 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Replace a deployed (paper/live) portfolio's entire strategy set with deep copies of a source portfolio's strategy objects.' It also states the concrete use case—deploying a chat portfolio's strategies onto a live/paper portfolio without re-describing them—which clearly separates this tool from broader portfolio-building siblings.

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 gives an explicit trigger: 'Use this to deploy a chat portfolio's strategies onto a live/paper portfolio without re-describing them.' It also adds important boundaries: 'Do NOT automatically backtest after clone' and 'chat portfolios are immutable and cannot be a target.' It does not explicitly name sibling alternatives such as fork_shared_portfolio or update_portfolio, so it stops short of a 5.

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.