Skip to main content
Glama

build_portfolio

Read-onlyIdempotent

Builds a custom portfolio of US listed ETFs from the user's construction choices and shows the rule applied. Weights form (rule version 2): weights, the user's own percent per asset class, adding to exactly 100; cheapest fund per class by default (defaults.line names them). Band form (version 1): band, include and funds set the weights. Funds file N-PORT, hold at least $100 million and have three years of prices; each fee comes with its date. Refusals carry a kind: weights-total, unknown-class, or person (any argument about the person, such as age, income or risk tolerance; weights and bands are choices about the portfolio). Whether a portfolio suits someone is not answered. returns are hypothetical, monthly-reset, only over windows every fund covers (returns.common.sentence says where history starts). compare_to_benchmark takes compare.arguments. Every answer carries not_advice.

Tool call template

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

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

Input Schema

NameRequiredDescriptionDefault
bandNoVersion 1: the stock-share band the portfolio should sit in.
fundsNoHow many funds: 2 to 12 with a band; with weights, at least one per asset class (the default).
includeNoVersion 1: which sleeves the portfolio holds besides stocks and bonds. All four are required with a band.
weightsNoVersion 2: the user's own percent of the portfolio for each asset class, adding to 100.
criterionNoHow a fund is chosen inside each asset class or sleeve: lowest fee, or most net assets. Default cheapest.cheapest
feeCeilingNoThe most any one fund may charge, in percent a year (0.25 is 0.25%).

Output Schema

NameRequiredDescriptionDefault
dataYesThe answer; null on a refusal.
errorNoRefusal only: what is not published.
reasonNoRefusal only: why.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed91 schema fields changed
    • removedInput schema / properties / weights / properties / alternatives / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / alternatives / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / cash / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / cash / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / commodities / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / commodities / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / emerging-markets-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / emerging-markets-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / gold / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / gold / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / government-bonds-intermediate / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / government-bonds-intermediate / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / government-bonds-long / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / government-bonds-long / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / government-bonds-short / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / government-bonds-short / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / high-yield-bonds / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / high-yield-bonds / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / international-dividend-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / international-dividend-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / international-esg-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / international-esg-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / international-factor-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / international-factor-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / international-ipo-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / international-ipo-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / international-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / international-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / reits / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / reits / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / tips / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / tips / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-bonds / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-bonds / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-bonds-long / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-bonds-long / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-bonds-short / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-bonds-short / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-corporate-bonds / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-corporate-bonds / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-small-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-small-stocks / minimum
      Removed value: -0
    • removedInput schema / properties / weights / properties / us-stocks / maximum
      Removed value: -100
    • removedInput schema / properties / weights / properties / us-stocks / minimum
      Removed value: -0
    • removedOutput schema / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / as_of
      Removed value: -{
      -  "description": "Date of the newest number in the answer.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / citation
      Removed value: -{
      -  "description": "A ready citation string with the as-of date and the page address.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / data / additionalProperties
      Removed value: -true
    • changedOutput schema / properties / data / description
      Previous value: -"The answer, or null when ETFIQ refuses (then error and reason say why)."New value: +"The answer; null on a refusal."
    • removedOutput schema / properties / data / properties / as_of / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / as_of / properties
      Removed value: -{
      -  "alternatives": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "aum": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "categories": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "core": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "selection_date": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "thematic": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "us_all_sizes_count": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "vti_book": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / as_of / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / compare / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / compare / properties
      Removed value: -{
      -  "arguments": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "tool": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / compare / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / defaults / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / defaults / properties
      Removed value: -{
      -  "applied": {
      -    "items": {
      -      "type": [
      -        "null",
      -        "string"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "line": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / defaults / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / holdings / items
      Removed value: -{
      -  "additionalProperties": true,
      -  "type": [
      -    "null",
      -    "object"
      -  ]
      -}
    • removedOutput schema / properties / data / properties / holdings / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • removedOutput schema / properties / data / properties / inputs / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / inputs / properties
      Removed value: -{
      -  "band": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "criterion": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "feeCeiling": {
      -    "type": "null"
      -  },
      -  "funds": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "include": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "weights": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / inputs / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / nearest_benchmark / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / nearest_benchmark / properties
      Removed value: -{
      -  "chosen": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "holdings": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "id": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "name": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "point": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "weighted_fee": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / nearest_benchmark / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / not_advice / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / notes / items
      Removed value: -{
      -  "type": [
      -    "null",
      -    "string"
      -  ]
      -}
    • removedOutput schema / properties / data / properties / notes / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • removedOutput schema / properties / data / properties / returns / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / returns / properties
      Removed value: -{
      -  "basis": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "check": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "common": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "rule": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "rule_version": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "series": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": [
      -        "null",
      -        "object"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "source": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "survivorship": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "unit": {
      -    "type": [
      -      "null",
      -      "string"
      -    ]
      -  },
      -  "windows": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / returns / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / rule / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / rule_version / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / sleeves / items
      Removed value: -{
      -  "additionalProperties": true,
      -  "type": [
      -    "null",
      -    "object"
      -  ]
      -}
    • removedOutput schema / properties / data / properties / sleeves / type
      Removed value: -[
      -  "array",
      -  "null"
      -]
    • removedOutput schema / properties / data / properties / stock_share / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / data / properties / stock_share / properties
      Removed value: -{
      -  "band": {
      -    "additionalProperties": true,
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "by_sleeve_pct": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "counted_by_sleeve": {
      -    "items": {},
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "counted_by_sleeve_weight_pct": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "looked_through_pct": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  },
      -  "looked_through_weight_pct": {
      -    "type": [
      -      "null",
      -      "number"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / data / properties / stock_share / type
      Removed value: -[
      -  "null",
      -  "object"
      -]
    • removedOutput schema / properties / data / properties / weighted_fee_note / type
      Removed value: -[
      -  "null",
      -  "string"
      -]
    • removedOutput schema / properties / data / properties / weighted_fee_pct / type
      Removed value: -[
      -  "null",
      -  "number"
      -]
    • removedOutput schema / properties / data / properties / weighted_fee_usd_per_10000 / type
      Removed value: -[
      -  "null",
      -  "number"
      -]
    • removedOutput schema / properties / disclaimer_required
      Removed value: -{
      -  "description": "True when the answer carries numbers that need the not-advice line.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / error / description
      Previous value: -"Present only on a refusal: what ETFIQ does not publish."New value: +"Refusal only: what is not published."
    • removedOutput schema / properties / lag_days
      Removed value: -{
      -  "description": "Days between as_of and today (America/New_York).",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / provenance
      Removed value: -{
      -  "description": "Where each number came from: field, source, as_of, source_uri.",
      -  "items": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / properties / reason / description
      Previous value: -"Present only on a refusal: why, and what to change."New value: +"Refusal only: why."
    • removedOutput schema / properties / source
      Removed value: -{
      -  "description": "Who publishes the data.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / tried
      Removed value: -{
      -  "description": "Present only on a refusal: what was looked up.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / warnings
      Removed value: -{
      -  "description": "Caveats to show with the answer.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "data",
      -  "provenance",
      -  "warnings",
      -  "disclaimer_required",
      -  "citation",
      -  "source"
      -]New value: +[
      +  "data"
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / criterion / description
      Added value: +"How a fund is chosen inside each asset class or sleeve: lowest fee, or most net assets. Default cheapest."
    • addedInput schema / properties / include / description
      Added value: +"Version 1: which sleeves the portfolio holds besides stocks and bonds. All four are required with a band."
    • addedInput schema / properties / include / properties / alternatives / description
      Added value: +"True to hold an alternatives sleeve (5% of the bond share)."
    • addedInput schema / properties / include / properties / commodities / description
      Added value: +"True to hold a commodities sleeve (5% of the bond share)."
    • addedInput schema / properties / include / properties / international / description
      Added value: +"True to hold international stocks in the stock share."
    • addedInput schema / properties / include / properties / themes / description
      Added value: +"True to hold a themes sleeve (10% of the stock share)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "as_of": {
      +      "description": "Date of the newest number in the answer.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "citation": {
      +      "description": "A ready citation string with the as-of date and the page address.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "data": {
      +      "additionalProperties": true,
      +      "description": "The answer, or null when ETFIQ refuses (then error and reason say why).",
      +      "properties": {
      +        "as_of": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "alternatives": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "aum": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "categories": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "core": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "selection_date": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "thematic": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "us_all_sizes_count": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "vti_book": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "compare": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "arguments": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "tool": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "defaults": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "applied": {
      +              "items": {
      +                "type": [
      +                  "null",
      +                  "string"
      +                ]
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "line": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "holdings": {
      +          "items": {
      +            "additionalProperties": true,
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "inputs": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "band": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "criterion": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "feeCeiling": {
      +              "type": "null"
      +            },
      +            "funds": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "include": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "weights": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "nearest_benchmark": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "chosen": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "holdings": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "id": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "name": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "point": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "url": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "weighted_fee": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "not_advice": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "notes": {
      +          "items": {
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "returns": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "basis": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "check": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "common": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "rule": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "rule_version": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "series": {
      +              "items": {
      +                "additionalProperties": true,
      +                "type": [
      +                  "null",
      +                  "object"
      +                ]
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "source": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "survivorship": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "unit": {
      +              "type": [
      +                "null",
      +                "string"
      +              ]
      +            },
      +            "windows": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "rule": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "rule_version": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "sleeves": {
      +          "items": {
      +            "additionalProperties": true,
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "type": [
      +            "array",
      +            "null"
      +          ]
      +        },
      +        "stock_share": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "band": {
      +              "additionalProperties": true,
      +              "type": [
      +                "null",
      +                "object"
      +              ]
      +            },
      +            "by_sleeve_pct": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "counted_by_sleeve": {
      +              "items": {},
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "counted_by_sleeve_weight_pct": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "looked_through_pct": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            },
      +            "looked_through_weight_pct": {
      +              "type": [
      +                "null",
      +                "number"
      +              ]
      +            }
      +          },
      +          "type": [
      +            "null",
      +            "object"
      +          ]
      +        },
      +        "weighted_fee_note": {
      +          "type": [
      +            "null",
      +            "string"
      +          ]
      +        },
      +        "weighted_fee_pct": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "weighted_fee_usd_per_10000": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "disclaimer_required": {
      +      "description": "True when the answer carries numbers that need the not-advice line.",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "description": "Present only on a refusal: what ETFIQ does not publish.",
      +      "type": "string"
      +    },
      +    "lag_days": {
      +      "description": "Days between as_of and today (America/New_York).",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "provenance": {
      +      "description": "Where each number came from: field, source, as_of, source_uri.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "reason": {
      +      "description": "Present only on a refusal: why, and what to change.",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "Who publishes the data.",
      +      "type": "string"
      +    },
      +    "tried": {
      +      "description": "Present only on a refusal: what was looked up.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "warnings": {
      +      "description": "Caveats to show with the answer.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "provenance",
      +    "warnings",
      +    "disclaimer_required",
      +    "citation",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / weights / properties / international-dividend-stocks
      Added value: +{
      +  "description": "International dividend stocks",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / weights / properties / international-esg-stocks
      Added value: +{
      +  "description": "International ESG-screened stocks",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / weights / properties / international-factor-stocks
      Added value: +{
      +  "description": "International factor stocks",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / weights / properties / international-ipo-stocks
      Added value: +{
      +  "description": "International IPO stocks",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
  4. Changed5 schema fields changed
    • changedInput schema / properties / band / description
      Previous value: -"The stock-share band the portfolio should sit in."New value: +"Version 1: the stock-share band the portfolio should sit in."
    • addedInput schema / properties / funds / description
      Added value: +"How many funds: 2 to 12 with a band; with weights, at least one per asset class (the default)."
    • changedInput schema / properties / funds / minimum
      Previous value: -2New value: +1
    • addedInput schema / properties / weights
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Version 2: the user's own percent of the portfolio for each asset class, adding to 100.",
      +  "minProperties": 1,
      +  "properties": {
      +    "alternatives": {
      +      "description": "Alternatives",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "cash": {
      +      "description": "Cash (Treasury bills)",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "commodities": {
      +      "description": "Commodities",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "emerging-markets-stocks": {
      +      "description": "Emerging-market stocks",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "gold": {
      +      "description": "Gold",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "government-bonds-intermediate": {
      +      "description": "Intermediate US government bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "government-bonds-long": {
      +      "description": "Long-term US government bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "government-bonds-short": {
      +      "description": "Short-term US government bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "high-yield-bonds": {
      +      "description": "High-yield bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "international-stocks": {
      +      "description": "International stocks",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "reits": {
      +      "description": "REITs",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "tips": {
      +      "description": "Inflation-protected bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-bonds": {
      +      "description": "US bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-bonds-long": {
      +      "description": "Long-term US bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-bonds-short": {
      +      "description": "Short-term US bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-corporate-bonds": {
      +      "description": "US corporate bonds",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-small-stocks": {
      +      "description": "US small-cap stocks",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "us-stocks": {
      +      "description": "US stocks",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "band",
      -  "include",
      -  "funds"
      -]
  5. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses substantial behavior: fund eligibility rules (N-PORT filing, $100M assets, three years of prices), fee dates, the enumerated refusal kinds including 'person' refusals for age/income/risk-tolerance arguments, the hypothetical monthly-reset nature of returns and their history-window constraint, and the mandatory not_advice field. The annotations already cover safety, and this adds the constraint and refusal model on top.

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?

Purpose is front-loaded and most sentences carry real information with no filler. The telegraphic fragments ('weights, the user's own percent per asset class, adding to exactly 100') and the stray 'compare_to_benchmark takes compare.arguments' sentence — about a parameter this schema does not contain — cost readability.

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 six-parameter tool with an output schema, the description covers the essential context: mode selection, fund eligibility, refusal taxonomy, return semantics and the not_advice envelope. It leaves feeCeiling and the 'largest' criterion path entirely to the schema, and the dangling compare reference is unexplained for this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including the enum values for band and criterion. The description reinforces the weights-must-total-100 constraint and the cheapest-by-default behavior and names the refusal kind 'weights-total', but it never mentions feeCeiling or criterion's 'largest' option, so it adds only marginal meaning over the structured fields.

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 gives a specific verb, resource and output ('Builds a custom portfolio of US listed ETFs ... and shows the rule applied'), then immediately splits the tool into two explicitly labeled modes (weights form, version 2; band form, version 1). An agent can distinguish this construction tool from siblings like etf_screen or compare_to_benchmark without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly states which argument set selects which mode ('Weights form (rule version 2): weights...' vs 'Band form (version 1): band, include and funds'), which is genuine when-to-use routing. What is missing is any statement of when not to use it or which sibling to prefer for alternative portfolio tasks; the only sibling mention ('compare_to_benchmark takes compare.arguments') is a comparison note, not usage guidance.

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.

Resources