Skip to main content
Glama

Compare contribution and rebalance alternatives

preview_rebalance
Read-onlyIdempotent

Use when an investor wants to compare holding, buying or selling under the signed policy for the whole portfolio. Use the supplied amount and currency. Include a cash limit only for partial_cash. Returns feasibility, fees, reserve, tax coverage, drift and trades. Page 20 rows with detail, offset and the first revision on the same request. Saves no check or plan and places no order.

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": {
      "request": "<request>"
    },
    "name": "preview_rebalance"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows of the chosen list to return. Leave it out: a comparison that fits comes whole.
detailNoWhich list to read more of: the proposed trades, the prices behind the valuation, or the positions left out.trades
offsetNoWhere the page of the chosen list starts. Leave it out for the first answer.
requestYesWhat to compare: the investor's contribution and its currency. Everything else is optional.
revisionNoThe revision the first answer returned. Needed from the second page on, so every page belongs to the same result.

Output Schema

NameRequiredDescriptionDefault
dataYes
scopeYes
reasonYes
statusYes
revisionYes
native_urlYes
computed_atYes
limitationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / request / properties / accounts / items / properties / portfolioId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "comparison": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "alternatives": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "externalCash": {
      -                  "maximum": 1000000000000,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "feasibility": {
      -                  "enum": [
      -                    "feasible",
      -                    "conditional",
      -                    "unavailable"
      -                  ],
      -                  "type": "string"
      -                },
      -                "feeCost": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "funding": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "inflow": {
      -                        "maximum": 1000000000000,
      -                        "minimum": 0,
      -                        "type": "number"
      -                      },
      -                      "portfolioId": {
      -                        "type": "string"
      -                      },
      -                      "purchases": {
      -                        "maximum": 1000000000000,
      -                        "minimum": 0,
      -                        "type": "number"
      -                      },
      -                      "transferRequired": {
      -                        "maximum": 1000000000000,
      -                        "minimum": 0,
      -                        "type": "number"
      -                      }
      -                    },
      -                    "required": [
      -                      "portfolioId",
      -                      "inflow",
      -                      "purchases",
      -                      "transferRequired"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "invested": {
      -                  "maximum": 1000000000000,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "kind": {
      -                  "enum": [
      -                    "keep",
      -                    "fresh_cash",
      -                    "partial_cash",
      -                    "sales"
      -                  ],
      -                  "type": "string"
      -                },
      -                "leftover": {
      -                  "maximum": 1000000000000,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "plan": {
      -                  "anyOf": [
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "alignmentAfter": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "allocation": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "concentration": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "overall": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "risk": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "overall",
      -                            "allocation",
      -                            "concentration",
      -                            "risk"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "alignmentBefore": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "allocation": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "concentration": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "overall": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            },
      -                            "risk": {
      -                              "maximum": 100,
      -                              "minimum": 0,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "overall",
      -                            "allocation",
      -                            "concentration",
      -                            "risk"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "contributionPlan": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "allocations": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "assetClass": {
      -                                    "type": "string"
      -                                  },
      -                                  "monthlyAmount": {
      -                                    "type": "number"
      -                                  },
      -                                  "percent": {
      -                                    "type": "number"
      -                                  },
      -                                  "suggestedInstrument": {
      -                                    "type": "string"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "assetClass",
      -                                  "percent",
      -                                  "monthlyAmount",
      -                                  "suggestedInstrument"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "assumedAnnualReturn": {
      -                              "type": "number"
      -                            },
      -                            "monthlyAmount": {
      -                              "type": "number"
      -                            },
      -                            "timeline": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "month": {
      -                                    "type": "string"
      -                                  },
      -                                  "projectedAlignment": {
      -                                    "type": "number"
      -                                  },
      -                                  "projectedAllocations": {
      -                                    "items": {
      -                                      "additionalProperties": false,
      -                                      "properties": {
      -                                        "assetClass": {
      -                                          "type": "string"
      -                                        },
      -                                        "currentPercent": {
      -                                          "type": "number"
      -                                        },
      -                                        "deviation": {
      -                                          "type": "number"
      -                                        },
      -                                        "projectedPercent": {
      -                                          "type": "number"
      -                                        },
      -                                        "targetPercent": {
      -                                          "type": "number"
      -                                        },
      -                                        "value": {
      -                                          "type": "number"
      -                                        }
      -                                      },
      -                                      "required": [
      -                                        "assetClass",
      -                                        "currentPercent",
      -                                        "targetPercent",
      -                                        "deviation",
      -                                        "value"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    "type": "array"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "month",
      -                                  "projectedAlignment",
      -                                  "projectedAllocations"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "unallocatedAmount": {
      -                              "minimum": 0,
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "monthlyAmount",
      -                            "allocations",
      -                            "timeline"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "currency": {
      -                          "anyOf": [
      -                            {
      -                              "pattern": "^[A-Z]{3}$",
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "generatedAt": {
      -                          "type": "string"
      -                        },
      -                        "mode": {
      -                          "enum": [
      -                            "full",
      -                            "tax_aware",
      -                            "contribution_only"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "portfolioId": {
      -                          "format": "uuid",
      -                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                          "type": "string"
      -                        },
      -                        "snapshotAfter": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "allocations": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "assetClass": {
      -                                    "type": "string"
      -                                  },
      -                                  "currentPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "deviation": {
      -                                    "type": "number"
      -                                  },
      -                                  "projectedPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "targetPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "value": {
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "assetClass",
      -                                  "currentPercent",
      -                                  "targetPercent",
      -                                  "deviation",
      -                                  "value"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "concentrationHHI": {
      -                              "type": "number"
      -                            },
      -                            "topHoldings": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "name": {
      -                                    "type": "string"
      -                                  },
      -                                  "ticker": {
      -                                    "type": "string"
      -                                  },
      -                                  "value": {
      -                                    "type": "number"
      -                                  },
      -                                  "weight": {
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "ticker",
      -                                  "name",
      -                                  "weight",
      -                                  "value"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "totalValue": {
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "totalValue",
      -                            "allocations",
      -                            "topHoldings",
      -                            "concentrationHHI"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "snapshotBefore": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "allocations": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "assetClass": {
      -                                    "type": "string"
      -                                  },
      -                                  "currentPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "deviation": {
      -                                    "type": "number"
      -                                  },
      -                                  "projectedPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "targetPercent": {
      -                                    "type": "number"
      -                                  },
      -                                  "value": {
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "assetClass",
      -                                  "currentPercent",
      -                                  "targetPercent",
      -                                  "deviation",
      -                                  "value"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "concentrationHHI": {
      -                              "type": "number"
      -                            },
      -                            "topHoldings": {
      -                              "items": {
      -                                "additionalProperties": false,
      -                                "properties": {
      -                                  "name": {
      -                                    "type": "string"
      -                                  },
      -                                  "ticker": {
      -                                    "type": "string"
      -                                  },
      -                                  "value": {
      -                                    "type": "number"
      -                                  },
      -                                  "weight": {
      -                                    "type": "number"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "ticker",
      -                                  "name",
      -                                  "weight",
      -                                  "value"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              "type": "array"
      -                            },
      -                            "totalValue": {
      -                              "type": "number"
      -                            }
      -                          },
      -                          "required": [
      -                            "totalValue",
      -                            "allocations",
      -                            "topHoldings",
      -                            "concentrationHHI"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "taxEstimateComplete": {
      -                          "type": "boolean"
      -                        },
      -                        "taxJurisdiction": {
      -                          "anyOf": [
      -                            {
      -                              "enum": [
      -                                "DE"
      -                              ],
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "totalTaxCost": {
      -                          "type": "number"
      -                        },
      -                        "totalTradeVolume": {
      -                          "type": "number"
      -                        },
      -                        "trades": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "alignmentImpact": {
      -                                "type": "number"
      -                              },
      -                              "amount": {
      -                                "type": "number"
      -                              },
      -                              "assetClass": {
      -                                "type": "string"
      -                              },
      -                              "costBasis": {
      -                                "type": "number"
      -                              },
      -                              "costBasisKnown": {
      -                                "type": "boolean"
      -                              },
      -                              "currentPrice": {
      -                                "type": [
      -                                  "number",
      -                                  "null"
      -                                ]
      -                              },
      -                              "enabled": {
      -                                "type": "boolean"
      -                              },
      -                              "holdingId": {
      -                                "format": "uuid",
      -                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                "type": "string"
      -                              },
      -                              "id": {
      -                                "type": "string"
      -                              },
      -                              "lossPoolType": {
      -                                "enum": [
      -                                  "stock",
      -                                  "other"
      -                                ],
      -                                "type": "string"
      -                              },
      -                              "name": {
      -                                "type": "string"
      -                              },
      -                              "portfolioId": {
      -                                "format": "uuid",
      -                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                "type": "string"
      -                              },
      -                              "priceKnown": {
      -                                "type": "boolean"
      -                              },
      -                              "reason": {
      -                                "type": "string"
      -                              },
      -                              "shares": {
      -                                "type": [
      -                                  "number",
      -                                  "null"
      -                                ]
      -                              },
      -                              "teilfreistellungType": {
      -                                "enum": [
      -                                  "equity_fund",
      -                                  "mixed_fund",
      -                                  "real_estate_fund",
      -                                  "foreign_real_estate_fund",
      -                                  "none"
      -                                ],
      -                                "type": "string"
      -                              },
      -                              "ticker": {
      -                                "type": "string"
      -                              },
      -                              "type": {
      -                                "enum": [
      -                                  "buy",
      -                                  "sell"
      -                                ],
      -                                "type": "string"
      -                              }
      -                            },
      -                            "required": [
      -                              "id",
      -                              "type",
      -                              "ticker",
      -                              "name",
      -                              "assetClass",
      -                              "amount",
      -                              "shares",
      -                              "currentPrice",
      -                              "enabled",
      -                              "reason",
      -                              "alignmentImpact",
      -                              "portfolioId"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "portfolioId",
      -                        "mode",
      -                        "trades",
      -                        "snapshotBefore",
      -                        "snapshotAfter",
      -                        "alignmentBefore",
      -                        "alignmentAfter",
      -                        "totalTaxCost",
      -                        "totalTradeVolume",
      -                        "taxEstimateComplete",
      -                        "taxJurisdiction",
      -                        "generatedAt"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "reasons": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "reserveAfter": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "reserveRequired": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "residualDrift": {
      -                  "anyOf": [
      -                    {
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "rows": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "assetClass": {
      -                        "type": "string"
      -                      },
      -                      "current": {
      -                        "type": "number"
      -                      },
      -                      "deviation": {
      -                        "type": "number"
      -                      },
      -                      "inRange": {
      -                        "type": [
      -                          "boolean",
      -                          "null"
      -                        ]
      -                      },
      -                      "maximum": {
      -                        "type": [
      -                          "number",
      -                          "null"
      -                        ]
      -                      },
      -                      "minimum": {
      -                        "type": [
      -                          "number",
      -                          "null"
      -                        ]
      -                      },
      -                      "target": {
      -                        "type": "number"
      -                      }
      -                    },
      -                    "required": [
      -                      "assetClass",
      -                      "current",
      -                      "target",
      -                      "minimum",
      -                      "maximum",
      -                      "deviation",
      -                      "inRange"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "taxCost": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "taxCoverage": {
      -                  "enum": [
      -                    "no_sales",
      -                    "modeled",
      -                    "partial",
      -                    "unmodeled",
      -                    "unavailable"
      -                  ],
      -                  "type": "string"
      -                },
      -                "valueAfter": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "feasibility",
      -                "reasons",
      -                "externalCash",
      -                "valueAfter",
      -                "invested",
      -                "leftover",
      -                "feeCost",
      -                "taxCost",
      -                "taxCoverage",
      -                "reserveAfter",
      -                "reserveRequired",
      -                "residualDrift",
      -                "rows",
      -                "funding",
      -                "plan"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 4,
      -            "minItems": 4,
      -            "type": "array"
      -          },
      -          "before": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "allocations": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "assetClass": {
      -                          "type": "string"
      -                        },
      -                        "currentPercent": {
      -                          "type": "number"
      -                        },
      -                        "deviation": {
      -                          "type": "number"
      -                        },
      -                        "projectedPercent": {
      -                          "type": "number"
      -                        },
      -                        "targetPercent": {
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "assetClass",
      -                        "currentPercent",
      -                        "targetPercent",
      -                        "deviation",
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "concentrationHHI": {
      -                    "type": "number"
      -                  },
      -                  "topHoldings": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "name": {
      -                          "type": "string"
      -                        },
      -                        "ticker": {
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "type": "number"
      -                        },
      -                        "weight": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "ticker",
      -                        "name",
      -                        "weight",
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "totalValue": {
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "totalValue",
      -                  "allocations",
      -                  "topHoldings",
      -                  "concentrationHHI"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "currency": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "driftBefore": {
      -            "anyOf": [
      -              {
      -                "minimum": 0,
      -                "type": "number"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "exclusions": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "holdingId": {
      -                  "type": "string"
      -                },
      -                "portfolioId": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "ticker": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "holdingId",
      -                "portfolioId",
      -                "ticker",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "generatedAt": {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -            "type": "string"
      -          },
      -          "inputs": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "accounts": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "feePerTrade": {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "multipleOf": 0.01,
      -                      "type": "number"
      -                    },
      -                    "increment": {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0.01,
      -                      "multipleOf": 0.01,
      -                      "type": "number"
      -                    },
      -                    "maximum": {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "multipleOf": 0.01,
      -                      "type": "number"
      -                    },
      -                    "minimum": {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "multipleOf": 0.01,
      -                      "type": "number"
      -                    },
      -                    "portfolioId": {
      -                      "format": "uuid",
      -                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                      "type": "string"
      -                    },
      -                    "quantityIncrement": {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 1000000,
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "portfolioId",
      -                    "feePerTrade",
      -                    "minimum",
      -                    "maximum",
      -                    "increment"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 100,
      -                "type": "array"
      -              },
      -              "cashLimit": {
      -                "maximum": 1000000000000,
      -                "minimum": 0,
      -                "multipleOf": 0.01,
      -                "type": "number"
      -              },
      -              "contribution": {
      -                "maximum": 1000000000000,
      -                "minimum": 0,
      -                "multipleOf": 0.01,
      -                "type": "number"
      -              },
      -              "currency": {
      -                "pattern": "^[A-Z]{3}$",
      -                "type": "string"
      -              },
      -              "priority": {
      -                "enum": [
      -                  "minimize_sales",
      -                  "target_alignment"
      -                ],
      -                "type": "string"
      -              },
      -              "transfersConfirmed": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "contribution",
      -              "cashLimit",
      -              "currency",
      -              "transfersConfirmed"
      -            ],
      -            "type": "object"
      -          },
      -          "methodology": {
      -            "const": "rebalance-comparison-v1",
      -            "type": "string"
      -          },
      -          "policyRevision": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "priority": {
      -            "enum": [
      -              "minimize_sales",
      -              "target_alignment"
      -            ],
      -            "type": "string"
      -          },
      -          "prioritySource": {
      -            "enum": [
      -              "scenario",
      -              "recorded_policy"
      -            ],
      -            "type": "string"
      -          },
      -          "reserveRule": {
      -            "enum": [
      -              "none",
      -              "modeled",
      -              "unknown"
      -            ],
      -            "type": "string"
      -          },
      -          "snapshotId": {
      -            "pattern": "^[a-f0-9]{64}$",
      -            "type": "string"
      -          },
      -          "valuationComplete": {
      -            "type": "boolean"
      -          },
      -          "valuationEvidence": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "currency": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "exchange": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "holdingId": {
      -                  "type": "string"
      -                },
      -                "isin": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "portfolioId": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "priceUpdatedAt": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "ticker": {
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "anyOf": [
      -                    {
      -                      "maximum": 1000000000000,
      -                      "minimum": 0,
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "valueSource": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "holdingId",
      -                "portfolioId",
      -                "ticker",
      -                "isin",
      -                "exchange",
      -                "value",
      -                "currency",
      -                "priceUpdatedAt",
      -                "valueSource"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "methodology",
      -          "snapshotId",
      -          "generatedAt",
      -          "before",
      -          "driftBefore",
      -          "currency",
      -          "policyRevision",
      -          "priority",
      -          "prioritySource",
      -          "valuationComplete",
      -          "reserveRule",
      -          "inputs",
      -          "valuationEvidence",
      -          "exclusions",
      -          "alternatives"
      -        ],
      -        "type": "object"
      -      },
      -      "detail_page": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "detail": {
      -            "type": "string"
      -          },
      -          "next_offset": {
      -            "anyOf": [
      -              {
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "offset": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          "total_items": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "detail",
      -          "offset",
      -          "total_items",
      -          "next_offset"
      -        ],
      -        "type": "object"
      -      },
      -      "omitted": {
      -        "additionalProperties": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "comparison",
      -      "detail_page",
      -      "omitted"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "comparison": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alternatives": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "externalCash": {
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "feasibility": {
      +                  "enum": [
      +                    "feasible",
      +                    "conditional",
      +                    "unavailable"
      +                  ],
      +                  "type": "string"
      +                },
      +                "feeCost": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "funding": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "inflow": {
      +                        "maximum": 1000000000000,
      +                        "minimum": 0,
      +                        "type": "number"
      +                      },
      +                      "portfolioId": {
      +                        "type": "string"
      +                      },
      +                      "purchases": {
      +                        "maximum": 1000000000000,
      +                        "minimum": 0,
      +                        "type": "number"
      +                      },
      +                      "transferRequired": {
      +                        "maximum": 1000000000000,
      +                        "minimum": 0,
      +                        "type": "number"
      +                      }
      +                    },
      +                    "required": [
      +                      "portfolioId",
      +                      "inflow",
      +                      "purchases",
      +                      "transferRequired"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "invested": {
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "kind": {
      +                  "enum": [
      +                    "keep",
      +                    "fresh_cash",
      +                    "partial_cash",
      +                    "sales"
      +                  ],
      +                  "type": "string"
      +                },
      +                "leftover": {
      +                  "maximum": 1000000000000,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "plan": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "alignmentAfter": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "allocation": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "concentration": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "overall": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "risk": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "overall",
      +                            "allocation",
      +                            "concentration",
      +                            "risk"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "alignmentBefore": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "allocation": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "concentration": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "overall": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            },
      +                            "risk": {
      +                              "maximum": 100,
      +                              "minimum": 0,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "overall",
      +                            "allocation",
      +                            "concentration",
      +                            "risk"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "contributionPlan": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "allocations": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "assetClass": {
      +                                    "type": "string"
      +                                  },
      +                                  "monthlyAmount": {
      +                                    "type": "number"
      +                                  },
      +                                  "percent": {
      +                                    "type": "number"
      +                                  },
      +                                  "suggestedInstrument": {
      +                                    "type": "string"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "assetClass",
      +                                  "percent",
      +                                  "monthlyAmount",
      +                                  "suggestedInstrument"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "assumedAnnualReturn": {
      +                              "type": "number"
      +                            },
      +                            "monthlyAmount": {
      +                              "type": "number"
      +                            },
      +                            "timeline": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "month": {
      +                                    "type": "string"
      +                                  },
      +                                  "projectedAlignment": {
      +                                    "type": "number"
      +                                  },
      +                                  "projectedAllocations": {
      +                                    "items": {
      +                                      "additionalProperties": false,
      +                                      "properties": {
      +                                        "assetClass": {
      +                                          "type": "string"
      +                                        },
      +                                        "currentPercent": {
      +                                          "type": "number"
      +                                        },
      +                                        "deviation": {
      +                                          "type": "number"
      +                                        },
      +                                        "projectedPercent": {
      +                                          "type": "number"
      +                                        },
      +                                        "targetPercent": {
      +                                          "type": "number"
      +                                        },
      +                                        "value": {
      +                                          "type": "number"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "assetClass",
      +                                        "currentPercent",
      +                                        "targetPercent",
      +                                        "deviation",
      +                                        "value"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    "type": "array"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "month",
      +                                  "projectedAlignment",
      +                                  "projectedAllocations"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "unallocatedAmount": {
      +                              "minimum": 0,
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "monthlyAmount",
      +                            "allocations",
      +                            "timeline"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "currency": {
      +                          "anyOf": [
      +                            {
      +                              "pattern": "^[A-Z]{3}$",
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ]
      +                        },
      +                        "generatedAt": {
      +                          "type": "string"
      +                        },
      +                        "mode": {
      +                          "enum": [
      +                            "full",
      +                            "tax_aware",
      +                            "contribution_only"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "portfolioId": {
      +                          "format": "uuid",
      +                          "type": "string"
      +                        },
      +                        "snapshotAfter": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "allocations": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "assetClass": {
      +                                    "type": "string"
      +                                  },
      +                                  "currentPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "deviation": {
      +                                    "type": "number"
      +                                  },
      +                                  "projectedPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "targetPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "value": {
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "assetClass",
      +                                  "currentPercent",
      +                                  "targetPercent",
      +                                  "deviation",
      +                                  "value"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "concentrationHHI": {
      +                              "type": "number"
      +                            },
      +                            "topHoldings": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "name": {
      +                                    "type": "string"
      +                                  },
      +                                  "ticker": {
      +                                    "type": "string"
      +                                  },
      +                                  "value": {
      +                                    "type": "number"
      +                                  },
      +                                  "weight": {
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "ticker",
      +                                  "name",
      +                                  "weight",
      +                                  "value"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "totalValue": {
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "totalValue",
      +                            "allocations",
      +                            "topHoldings",
      +                            "concentrationHHI"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "snapshotBefore": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "allocations": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "assetClass": {
      +                                    "type": "string"
      +                                  },
      +                                  "currentPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "deviation": {
      +                                    "type": "number"
      +                                  },
      +                                  "projectedPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "targetPercent": {
      +                                    "type": "number"
      +                                  },
      +                                  "value": {
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "assetClass",
      +                                  "currentPercent",
      +                                  "targetPercent",
      +                                  "deviation",
      +                                  "value"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "concentrationHHI": {
      +                              "type": "number"
      +                            },
      +                            "topHoldings": {
      +                              "items": {
      +                                "additionalProperties": false,
      +                                "properties": {
      +                                  "name": {
      +                                    "type": "string"
      +                                  },
      +                                  "ticker": {
      +                                    "type": "string"
      +                                  },
      +                                  "value": {
      +                                    "type": "number"
      +                                  },
      +                                  "weight": {
      +                                    "type": "number"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "ticker",
      +                                  "name",
      +                                  "weight",
      +                                  "value"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              "type": "array"
      +                            },
      +                            "totalValue": {
      +                              "type": "number"
      +                            }
      +                          },
      +                          "required": [
      +                            "totalValue",
      +                            "allocations",
      +                            "topHoldings",
      +                            "concentrationHHI"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "taxEstimateComplete": {
      +                          "type": "boolean"
      +                        },
      +                        "taxJurisdiction": {
      +                          "anyOf": [
      +                            {
      +                              "enum": [
      +                                "DE"
      +                              ],
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ]
      +                        },
      +                        "totalTaxCost": {
      +                          "type": "number"
      +                        },
      +                        "totalTradeVolume": {
      +                          "type": "number"
      +                        },
      +                        "trades": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "alignmentImpact": {
      +                                "type": "number"
      +                              },
      +                              "amount": {
      +                                "type": "number"
      +                              },
      +                              "assetClass": {
      +                                "type": "string"
      +                              },
      +                              "costBasis": {
      +                                "type": "number"
      +                              },
      +                              "costBasisKnown": {
      +                                "type": "boolean"
      +                              },
      +                              "currentPrice": {
      +                                "type": [
      +                                  "number",
      +                                  "null"
      +                                ]
      +                              },
      +                              "enabled": {
      +                                "type": "boolean"
      +                              },
      +                              "holdingId": {
      +                                "format": "uuid",
      +                                "type": "string"
      +                              },
      +                              "id": {
      +                                "type": "string"
      +                              },
      +                              "lossPoolType": {
      +                                "enum": [
      +                                  "stock",
      +                                  "other"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "name": {
      +                                "type": "string"
      +                              },
      +                              "portfolioId": {
      +                                "format": "uuid",
      +                                "type": "string"
      +                              },
      +                              "priceKnown": {
      +                                "type": "boolean"
      +                              },
      +                              "reason": {
      +                                "type": "string"
      +                              },
      +                              "shares": {
      +                                "type": [
      +                                  "number",
      +                                  "null"
      +                                ]
      +                              },
      +                              "teilfreistellungType": {
      +                                "enum": [
      +                                  "equity_fund",
      +                                  "mixed_fund",
      +                                  "real_estate_fund",
      +                                  "foreign_real_estate_fund",
      +                                  "none"
      +                                ],
      +                                "type": "string"
      +                              },
      +                              "ticker": {
      +                                "type": "string"
      +                              },
      +                              "type": {
      +                                "enum": [
      +                                  "buy",
      +                                  "sell"
      +                                ],
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "id",
      +                              "type",
      +                              "ticker",
      +                              "name",
      +                              "assetClass",
      +                              "amount",
      +                              "shares",
      +                              "currentPrice",
      +                              "enabled",
      +                              "reason",
      +                              "alignmentImpact",
      +                              "portfolioId"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "portfolioId",
      +                        "mode",
      +                        "trades",
      +                        "snapshotBefore",
      +                        "snapshotAfter",
      +                        "alignmentBefore",
      +                        "alignmentAfter",
      +                        "totalTaxCost",
      +                        "totalTradeVolume",
      +                        "taxEstimateComplete",
      +                        "taxJurisdiction",
      +                        "generatedAt"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "reasons": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "reserveAfter": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "reserveRequired": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "residualDrift": {
      +                  "anyOf": [
      +                    {
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "rows": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "assetClass": {
      +                        "type": "string"
      +                      },
      +                      "current": {
      +                        "type": "number"
      +                      },
      +                      "deviation": {
      +                        "type": "number"
      +                      },
      +                      "inRange": {
      +                        "type": [
      +                          "boolean",
      +                          "null"
      +                        ]
      +                      },
      +                      "maximum": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      },
      +                      "minimum": {
      +                        "type": [
      +                          "number",
      +                          "null"
      +                        ]
      +                      },
      +                      "target": {
      +                        "type": "number"
      +                      }
      +                    },
      +                    "required": [
      +                      "assetClass",
      +                      "current",
      +                      "target",
      +                      "minimum",
      +                      "maximum",
      +                      "deviation",
      +                      "inRange"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "taxCost": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "taxCoverage": {
      +                  "enum": [
      +                    "no_sales",
      +                    "modeled",
      +                    "partial",
      +                    "unmodeled",
      +                    "unavailable"
      +                  ],
      +                  "type": "string"
      +                },
      +                "valueAfter": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "feasibility",
      +                "reasons",
      +                "externalCash",
      +                "valueAfter",
      +                "invested",
      +                "leftover",
      +                "feeCost",
      +                "taxCost",
      +                "taxCoverage",
      +                "reserveAfter",
      +                "reserveRequired",
      +                "residualDrift",
      +                "rows",
      +                "funding",
      +                "plan"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 4,
      +            "minItems": 4,
      +            "type": "array"
      +          },
      +          "before": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "allocations": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "assetClass": {
      +                          "type": "string"
      +                        },
      +                        "currentPercent": {
      +                          "type": "number"
      +                        },
      +                        "deviation": {
      +                          "type": "number"
      +                        },
      +                        "projectedPercent": {
      +                          "type": "number"
      +                        },
      +                        "targetPercent": {
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "assetClass",
      +                        "currentPercent",
      +                        "targetPercent",
      +                        "deviation",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "concentrationHHI": {
      +                    "type": "number"
      +                  },
      +                  "topHoldings": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "name": {
      +                          "type": "string"
      +                        },
      +                        "ticker": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        },
      +                        "weight": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "ticker",
      +                        "name",
      +                        "weight",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "totalValue": {
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "totalValue",
      +                  "allocations",
      +                  "topHoldings",
      +                  "concentrationHHI"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "driftBefore": {
      +            "anyOf": [
      +              {
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "exclusions": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "holdingId": {
      +                  "type": "string"
      +                },
      +                "portfolioId": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "ticker": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "holdingId",
      +                "portfolioId",
      +                "ticker",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "generatedAt": {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +            "type": "string"
      +          },
      +          "inputs": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "accounts": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "feePerTrade": {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "multipleOf": 0.01,
      +                      "type": "number"
      +                    },
      +                    "increment": {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0.01,
      +                      "multipleOf": 0.01,
      +                      "type": "number"
      +                    },
      +                    "maximum": {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "multipleOf": 0.01,
      +                      "type": "number"
      +                    },
      +                    "minimum": {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "multipleOf": 0.01,
      +                      "type": "number"
      +                    },
      +                    "portfolioId": {
      +                      "format": "uuid",
      +                      "type": "string"
      +                    },
      +                    "quantityIncrement": {
      +                      "exclusiveMinimum": 0,
      +                      "maximum": 1000000,
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "portfolioId",
      +                    "feePerTrade",
      +                    "minimum",
      +                    "maximum",
      +                    "increment"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 100,
      +                "type": "array"
      +              },
      +              "cashLimit": {
      +                "maximum": 1000000000000,
      +                "minimum": 0,
      +                "multipleOf": 0.01,
      +                "type": "number"
      +              },
      +              "contribution": {
      +                "maximum": 1000000000000,
      +                "minimum": 0,
      +                "multipleOf": 0.01,
      +                "type": "number"
      +              },
      +              "currency": {
      +                "pattern": "^[A-Z]{3}$",
      +                "type": "string"
      +              },
      +              "priority": {
      +                "enum": [
      +                  "minimize_sales",
      +                  "target_alignment"
      +                ],
      +                "type": "string"
      +              },
      +              "transfersConfirmed": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "contribution",
      +              "cashLimit",
      +              "currency",
      +              "transfersConfirmed"
      +            ],
      +            "type": "object"
      +          },
      +          "methodology": {
      +            "const": "rebalance-comparison-v1",
      +            "type": "string"
      +          },
      +          "policyRevision": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "priority": {
      +            "enum": [
      +              "minimize_sales",
      +              "target_alignment"
      +            ],
      +            "type": "string"
      +          },
      +          "prioritySource": {
      +            "enum": [
      +              "scenario",
      +              "recorded_policy"
      +            ],
      +            "type": "string"
      +          },
      +          "reserveRule": {
      +            "enum": [
      +              "none",
      +              "modeled",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "snapshotId": {
      +            "pattern": "^[a-f0-9]{64}$",
      +            "type": "string"
      +          },
      +          "valuationComplete": {
      +            "type": "boolean"
      +          },
      +          "valuationEvidence": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "currency": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "exchange": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "holdingId": {
      +                  "type": "string"
      +                },
      +                "isin": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "portfolioId": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "priceUpdatedAt": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "ticker": {
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "anyOf": [
      +                    {
      +                      "maximum": 1000000000000,
      +                      "minimum": 0,
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "valueSource": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "holdingId",
      +                "portfolioId",
      +                "ticker",
      +                "isin",
      +                "exchange",
      +                "value",
      +                "currency",
      +                "priceUpdatedAt",
      +                "valueSource"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "methodology",
      +          "snapshotId",
      +          "generatedAt",
      +          "before",
      +          "driftBefore",
      +          "currency",
      +          "policyRevision",
      +          "priority",
      +          "prioritySource",
      +          "valuationComplete",
      +          "reserveRule",
      +          "inputs",
      +          "valuationEvidence",
      +          "exclusions",
      +          "alternatives"
      +        ],
      +        "type": "object"
      +      },
      +      "detail_page": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "detail": {
      +            "type": "string"
      +          },
      +          "next_offset": {
      +            "anyOf": [
      +              {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "offset": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "total_items": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "detail",
      +          "offset",
      +          "total_items",
      +          "next_offset"
      +        ],
      +        "type": "object"
      +      },
      +      "omitted": {
      +        "additionalProperties": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "comparison",
      +      "detail_page",
      +      "omitted"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description still adds that nothing is persisted and no order is placed, plus the paging contract (20 rows, carry the first revision on the same request). It does not discuss cost, latency or what happens when broker limits are absent, though the schema covers the latter.

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 trigger condition is front-loaded and each sentence covers a distinct concern: when to use, inputs, conditionals, outputs, paging, and side effects. The undefined 'partial_cash' reference and the slightly redundant double negative in the final clause cost it a point.

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 nested five-parameter tool with an output schema and rich annotations, the description covers usage, paging, and side effects, so an agent can call it without opening the schema. It leaves the priority tradeoff and the accounts fallback behavior to the schema, which is acceptable given full coverage but means the description is not fully self-contained.

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 the baseline is 3, and most of the description's parameter content restates the schema ('Use the supplied amount and currency'). The genuinely additive bits are the default page size of 20 and the requirement to resend the first revision on later pages. The instruction 'Include a cash limit only for partial_cash' introduces an undefined mode name and is less precise than the schema's own wording for cashLimit.

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 first sentence names a specific verb (compare), the alternatives being compared (holding, buying, selling), the governing rule (the signed policy) and the scope (whole portfolio). The closing sentence ('Saves no check or plan and places no order') further separates it from write-oriented siblings such as check_action or prepare_review.

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 clear triggering condition ('Use when an investor wants to compare holding, buying or selling... for the whole portfolio') and a conditional rule for cashLimit. It stops short of naming an alternative tool or an explicit when-not-to-use, and the reference to 'partial_cash' points at a mode the reader has to infer from the cashLimit parameter.

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.