Skip to main content
Glama

Inventory aging, carry cost and melt exposure

inventory_aging_exposure
Read-onlyIdempotent

Value and age exposure for dealer lots against current melt. Lots shorthand: carry_annual_rate defaults to 0. Example: {"lots":[{"product":"american-silver-eagle-1oz","quantity":10,"cost_basis_usd":500}]}.

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": "inventory_aging_exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsNo
as_ofNo
day_countNoactual_365
positionsNo
spot_goldNo
age_bucketsNo
sensitivityNo
spot_silverNo
spot_by_metalNo
spot_platinumNo
carry_annual_rateNo
spot_max_age_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "lots": [
      -      {
      -        "cost_basis_usd": 500,
      -        "product": "american-silver-eagle-1oz",
      -        "quantity": 10
      -      }
      -    ]
      -  }
      -]
    • removedInput schema / properties / age_buckets / description
      Removed value: -"Pass \"documented_default\" (default) or custom bucket list."
    • removedInput schema / properties / as_of / description
      Removed value: -"Evaluation timestamp (ISO-8601). Defaults to live BPC refresh time."
    • removedInput schema / properties / carry_annual_rate / description
      Removed value: -"Annual carry rate as a decimal (for example \"0.08\" for 8%). Defaults to 0 under the lots shorthand, and to \"0.08\" when you send detailed positions."
    • removedInput schema / properties / day_count / description
      Removed value: -"Day-count convention for carry cost. Only actual_365."
    • removedInput schema / properties / lots / description
      Removed value: -"Shorthand inventory lots (tracked product slug/name, quantity, optional cost_basis_usd). When you use lots (and not positions), carry_annual_rate defaults to 0."
    • removedInput schema / properties / positions / description
      Removed value: -"Inventory positions (or pass lots shorthand)."
    • removedInput schema / properties / sensitivity / description
      Removed value: -"Optional what-if grid: carry_annual_rates and named spot_shocks (multipliers)."
    • removedInput schema / properties / spot_by_metal / description
      Removed value: -"Optional spot price map by metal. Defaults to live BPC spot prices."
    • removedInput schema / properties / spot_gold / description
      Removed value: -"Optional gold spot override (USD/ozt)."
    • removedInput schema / properties / spot_max_age_seconds / description
      Removed value: -"Maximum spot age in seconds before the spot price is treated as stale."
    • removedInput schema / properties / spot_platinum / description
      Removed value: -"Optional platinum spot override (USD/ozt)."
    • removedInput schema / properties / spot_silver / description
      Removed value: -"Optional silver spot override (USD/ozt)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "oneOf": [
      -    {
      -      "additionalProperties": false,
      -      "properties": {
      -        "age_buckets": {
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "max_days": {
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "min_days": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "name": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "name",
      -              "min_days",
      -              "max_days"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "as_of": {
      -          "type": "string"
      -        },
      -        "attribution_credit": {
      -          "type": "object"
      -        },
      -        "bpc_valuation": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "asof": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "cost_basis_total_usd": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "lots": {
      -              "items": {
      -                "additionalProperties": true,
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "market_ask_median_total_usd": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "market_bid_total_usd": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "melt_total_usd": {
      -              "type": "number"
      -            },
      -            "partial_buyback_bid_total_usd": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "unrealized_vs_melt_total_usd": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "buckets": {
      -          "items": {
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "carry_annual_rate": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "exact": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "exact"
      -          ],
      -          "type": "object"
      -        },
      -        "customization": {
      -          "type": "string"
      -        },
      -        "data_as_of": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "data_sources": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "day_count": {
      -          "const": "actual_365"
      -        },
      -        "day_count_note": {
      -          "type": "string"
      -        },
      -        "disclaimer": {
      -          "type": "string"
      -        },
      -        "execution_mode": {
      -          "enum": [
      -            "caller_supplied_stateless",
      -            "bpc_live_and_caller"
      -          ]
      -        },
      -        "freshness": {
      -          "required": [
      -            "stale"
      -          ],
      -          "type": "object"
      -        },
      -        "metal_note": {
      -          "type": "string"
      -        },
      -        "no_accuracy_guarantee": {
      -          "type": "string"
      -        },
      -        "ok": {
      -          "const": true
      -        },
      -        "positions": {
      -          "items": {
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "schema_version": {
      -          "const": "1.0.0"
      -        },
      -        "sensitivity": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "carry_rates": {
      -              "items": {
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "note": {
      -              "type": "string"
      -            },
      -            "spot_shocks": {
      -              "items": {
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "note",
      -            "carry_rates",
      -            "spot_shocks"
      -          ],
      -          "type": "object"
      -        },
      -        "tool": {
      -          "const": "inventory_aging_exposure"
      -        },
      -        "totals": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "by_currency": {
      -              "items": {
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "by_currency"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "ok",
      -        "tool",
      -        "schema_version",
      -        "execution_mode",
      -        "as_of",
      -        "disclaimer",
      -        "no_accuracy_guarantee",
      -        "day_count",
      -        "day_count_note",
      -        "carry_annual_rate",
      -        "age_buckets",
      -        "metal_note",
      -        "positions",
      -        "buckets",
      -        "totals",
      -        "sensitivity"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": false,
      -      "properties": {
      -        "customization": {
      -          "type": "string"
      -        },
      -        "data_as_of": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "error": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "const": "INVALID_INPUT"
      -            },
      -            "diagnostics": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "blocks_eligibility": {
      -                    "type": "boolean"
      -                  },
      -                  "blocks_validity": {
      -                    "type": "boolean"
      -                  },
      -                  "code": {
      -                    "type": "string"
      -                  },
      -                  "field": {
      -                    "type": "string"
      -                  },
      -                  "message": {
      -                    "type": "string"
      -                  },
      -                  "severity": {
      -                    "enum": [
      -                      "error",
      -                      "warning",
      -                      "info"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "code",
      -                  "severity",
      -                  "field",
      -                  "message",
      -                  "blocks_validity",
      -                  "blocks_eligibility"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "message": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message",
      -            "diagnostics"
      -          ],
      -          "type": "object"
      -        },
      -        "execution_mode": {
      -          "const": "caller_supplied_stateless"
      -        },
      -        "ok": {
      -          "const": false
      -        },
      -        "schema_version": {
      -          "const": "1.0.0"
      -        },
      -        "tool": {
      -          "const": "inventory_aging_exposure"
      -        }
      -      },
      -      "required": [
      -        "ok",
      -        "tool",
      -        "schema_version",
      -        "execution_mode",
      -        "error"
      -      ],
      -      "type": "object"
      -    }
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "age_buckets": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_days": {
      -              "type": [
      -                "integer",
      -                "null"
      -              ]
      -            },
      -            "min_days": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "min_days",
      -            "max_days"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_valuation": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "asof": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "cost_basis_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "lots": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "market_ask_median_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "market_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "melt_total_usd": {
      -            "type": "number"
      -          },
      -          "partial_buyback_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "unrealized_vs_melt_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "buckets": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "carry_annual_rate": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exact": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "exact"
      -        ],
      -        "type": "object"
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_as_of": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "day_count": {
      -        "const": "actual_365"
      -      },
      -      "day_count_note": {
      -        "type": "string"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "freshness": {
      -        "required": [
      -          "stale"
      -        ],
      -        "type": "object"
      -      },
      -      "metal_note": {
      -        "type": "string"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "positions": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "sensitivity": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "carry_rates": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "spot_shocks": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "note",
      -          "carry_rates",
      -          "spot_shocks"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      },
      -      "totals": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "day_count",
      -      "day_count_note",
      -      "carry_annual_rate",
      -      "age_buckets",
      -      "metal_note",
      -      "positions",
      -      "buckets",
      -      "totals",
      -      "sensitivity"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_as_of": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "const": "INVALID_INPUT"
      -          },
      -          "diagnostics": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocks_eligibility": {
      -                  "type": "boolean"
      -                },
      -                "blocks_validity": {
      -                  "type": "boolean"
      -                },
      -                "code": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "enum": [
      -                    "error",
      -                    "warning",
      -                    "info"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "severity",
      -                "field",
      -                "message",
      -                "blocks_validity",
      -                "blocks_eligibility"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "diagnostics"
      -        ],
      -        "type": "object"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "ok": {
      -        "const": false
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "age_buckets": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_days": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "min_days": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "min_days",
      +            "max_days"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "attribution_credit": {
      +        "type": "object"
      +      },
      +      "bpc_valuation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "asof": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cost_basis_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "lots": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "market_ask_median_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "melt_total_usd": {
      +            "type": "number"
      +          },
      +          "partial_buyback_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unrealized_vs_melt_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "buckets": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "carry_annual_rate": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exact": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "exact"
      +        ],
      +        "type": "object"
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "day_count": {
      +        "const": "actual_365"
      +      },
      +      "day_count_note": {
      +        "type": "string"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "metal_note": {
      +        "type": "string"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "positions": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "sensitivity": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "carry_rates": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "spot_shocks": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "note",
      +          "carry_rates",
      +          "spot_shocks"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      },
      +      "totals": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "day_count",
      +      "day_count_note",
      +      "carry_annual_rate",
      +      "age_buckets",
      +      "metal_note",
      +      "positions",
      +      "buckets",
      +      "totals",
      +      "sensitivity"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "const": "INVALID_INPUT"
      +          },
      +          "diagnostics": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "blocks_eligibility": {
      +                  "type": "boolean"
      +                },
      +                "blocks_validity": {
      +                  "type": "boolean"
      +                },
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "severity": {
      +                  "enum": [
      +                    "error",
      +                    "warning",
      +                    "info"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "severity",
      +                "field",
      +                "message",
      +                "blocks_validity",
      +                "blocks_eligibility"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "diagnostics"
      +        ],
      +        "type": "object"
      +      },
      +      "execution_mode": {
      +        "const": "caller_supplied_stateless"
      +      },
      +      "ok": {
      +        "const": false
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / carry_annual_rate / description
      Previous value: -"Annual carry rate as decimal (e.g. \"0.08\" for 8%). Defaults to \"0.08\" (or \"0\" when lots shorthand is used)."New value: +"Annual carry rate as a decimal (for example \"0.08\" for 8%). Defaults to 0 under the lots shorthand, and to \"0.08\" when you send detailed positions."
    • changedInput schema / properties / lots / description
      Previous value: -"Shorthand inventory lots (tracked product slug/name, quantity, optional cost_basis_usd)."New value: +"Shorthand inventory lots (tracked product slug/name, quantity, optional cost_basis_usd). When you use lots (and not positions), carry_annual_rate defaults to 0."
  4. Changed5 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lots": [
      +      {
      +        "cost_basis_usd": 500,
      +        "product": "american-silver-eagle-1oz",
      +        "quantity": 10
      +      }
      +    ]
      +  }
      +]
    • addedInput schema / properties / day_count / description
      Added value: +"Day-count convention for carry cost. Only actual_365."
    • addedInput schema / properties / sensitivity / description
      Added value: +"Optional what-if grid: carry_annual_rates and named spot_shocks (multipliers)."
    • addedInput schema / properties / spot_max_age_seconds / description
      Added value: +"Maximum spot age in seconds before the spot price is treated as stale."
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "age_buckets": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_days": {
      -              "type": [
      -                "integer",
      -                "null"
      -              ]
      -            },
      -            "min_days": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "min_days",
      -            "max_days"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_valuation": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "asof": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "cost_basis_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "lots": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "market_ask_median_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "market_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "melt_total_usd": {
      -            "type": "number"
      -          },
      -          "partial_buyback_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "unrealized_vs_melt_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "buckets": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "carry_annual_rate": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exact": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "exact"
      -        ],
      -        "type": "object"
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "day_count": {
      -        "const": "actual_365"
      -      },
      -      "day_count_note": {
      -        "type": "string"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "freshness": {
      -        "required": [
      -          "stale"
      -        ],
      -        "type": "object"
      -      },
      -      "metal_note": {
      -        "type": "string"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "positions": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "sensitivity": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "carry_rates": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "spot_shocks": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "note",
      -          "carry_rates",
      -          "spot_shocks"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      },
      -      "totals": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "day_count",
      -      "day_count_note",
      -      "carry_annual_rate",
      -      "age_buckets",
      -      "metal_note",
      -      "positions",
      -      "buckets",
      -      "totals",
      -      "sensitivity"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "customization": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "const": "INVALID_INPUT"
      -          },
      -          "diagnostics": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocks_eligibility": {
      -                  "type": "boolean"
      -                },
      -                "blocks_validity": {
      -                  "type": "boolean"
      -                },
      -                "code": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "enum": [
      -                    "error",
      -                    "warning",
      -                    "info"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "severity",
      -                "field",
      -                "message",
      -                "blocks_validity",
      -                "blocks_eligibility"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "diagnostics"
      -        ],
      -        "type": "object"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "ok": {
      -        "const": false
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "age_buckets": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_days": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "min_days": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "min_days",
      +            "max_days"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_valuation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "asof": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cost_basis_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "lots": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "market_ask_median_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "melt_total_usd": {
      +            "type": "number"
      +          },
      +          "partial_buyback_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unrealized_vs_melt_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "buckets": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "carry_annual_rate": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exact": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "exact"
      +        ],
      +        "type": "object"
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "day_count": {
      +        "const": "actual_365"
      +      },
      +      "day_count_note": {
      +        "type": "string"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "metal_note": {
      +        "type": "string"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "positions": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "sensitivity": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "carry_rates": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "spot_shocks": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "note",
      +          "carry_rates",
      +          "spot_shocks"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      },
      +      "totals": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "day_count",
      +      "day_count_note",
      +      "carry_annual_rate",
      +      "age_buckets",
      +      "metal_note",
      +      "positions",
      +      "buckets",
      +      "totals",
      +      "sensitivity"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "const": "INVALID_INPUT"
      +          },
      +          "diagnostics": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "blocks_eligibility": {
      +                  "type": "boolean"
      +                },
      +                "blocks_validity": {
      +                  "type": "boolean"
      +                },
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "severity": {
      +                  "enum": [
      +                    "error",
      +                    "warning",
      +                    "info"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "severity",
      +                "field",
      +                "message",
      +                "blocks_validity",
      +                "blocks_eligibility"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "diagnostics"
      +        ],
      +        "type": "object"
      +      },
      +      "execution_mode": {
      +        "const": "caller_supplied_stateless"
      +      },
      +      "ok": {
      +        "const": false
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "age_buckets": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_days": {
      -              "type": [
      -                "integer",
      -                "null"
      -              ]
      -            },
      -            "min_days": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "min_days",
      -            "max_days"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_valuation": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "asof": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "cost_basis_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "lots": {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "market_ask_median_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "market_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "melt_total_usd": {
      -            "type": "number"
      -          },
      -          "partial_buyback_bid_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "unrealized_vs_melt_total_usd": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "buckets": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "carry_annual_rate": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exact": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "exact"
      -        ],
      -        "type": "object"
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "day_count": {
      -        "const": "actual_365"
      -      },
      -      "day_count_note": {
      -        "type": "string"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "metal_note": {
      -        "type": "string"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "positions": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "sensitivity": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "carry_rates": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "spot_shocks": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "note",
      -          "carry_rates",
      -          "spot_shocks"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      },
      -      "totals": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "day_count",
      -      "day_count_note",
      -      "carry_annual_rate",
      -      "age_buckets",
      -      "metal_note",
      -      "positions",
      -      "buckets",
      -      "totals",
      -      "sensitivity"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "customization": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "const": "INVALID_INPUT"
      -          },
      -          "diagnostics": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocks_eligibility": {
      -                  "type": "boolean"
      -                },
      -                "blocks_validity": {
      -                  "type": "boolean"
      -                },
      -                "code": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "enum": [
      -                    "error",
      -                    "warning",
      -                    "info"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "severity",
      -                "field",
      -                "message",
      -                "blocks_validity",
      -                "blocks_eligibility"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "diagnostics"
      -        ],
      -        "type": "object"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "ok": {
      -        "const": false
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "age_buckets": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_days": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "min_days": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "min_days",
      +            "max_days"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_valuation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "asof": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cost_basis_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "lots": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "market_ask_median_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "melt_total_usd": {
      +            "type": "number"
      +          },
      +          "partial_buyback_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unrealized_vs_melt_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "buckets": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "carry_annual_rate": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exact": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "exact"
      +        ],
      +        "type": "object"
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "day_count": {
      +        "const": "actual_365"
      +      },
      +      "day_count_note": {
      +        "type": "string"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "metal_note": {
      +        "type": "string"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "positions": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "sensitivity": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "carry_rates": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "spot_shocks": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "note",
      +          "carry_rates",
      +          "spot_shocks"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      },
      +      "totals": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "day_count",
      +      "day_count_note",
      +      "carry_annual_rate",
      +      "age_buckets",
      +      "metal_note",
      +      "positions",
      +      "buckets",
      +      "totals",
      +      "sensitivity"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customization": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "const": "INVALID_INPUT"
      +          },
      +          "diagnostics": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "blocks_eligibility": {
      +                  "type": "boolean"
      +                },
      +                "blocks_validity": {
      +                  "type": "boolean"
      +                },
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "severity": {
      +                  "enum": [
      +                    "error",
      +                    "warning",
      +                    "info"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "severity",
      +                "field",
      +                "message",
      +                "blocks_validity",
      +                "blocks_eligibility"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "diagnostics"
      +        ],
      +        "type": "object"
      +      },
      +      "execution_mode": {
      +        "const": "caller_supplied_stateless"
      +      },
      +      "ok": {
      +        "const": false
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  6. Changed19 schema fields changed
    • changedInput schema / properties / age_buckets / description
      Previous value: -"The string documented_default, or an explicit gap-free bucket list starting at day 0."New value: +"Pass \"documented_default\" (default) or custom bucket list."
    • addedInput schema / properties / as_of / description
      Added value: +"Evaluation timestamp (ISO-8601). Defaults to live BPC refresh time."
    • addedInput schema / properties / as_of / format
      Added value: +"date-time"
    • removedInput schema / properties / as_of / maxLength
      Removed value: -40
    • removedInput schema / properties / carry_annual_rate / $ref
      Removed value: -"#/$defs/decimal"
    • changedInput schema / properties / carry_annual_rate / description
      Previous value: -"Annual fraction. 0.08 means 8 percent per year. Required; never assumed."New value: +"Annual carry rate as decimal (e.g. \"0.08\" for 8%). Defaults to \"0.08\" (or \"0\" when lots shorthand is used)."
    • addedInput schema / properties / carry_annual_rate / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / day_count / const
      Removed value: -"actual_365"
    • addedInput schema / properties / day_count / default
      Added value: +"actual_365"
    • addedInput schema / properties / day_count / enum
      Added value: +[
      +  "actual_365"
      +]
    • addedInput schema / properties / day_count / type
      Added value: +"string"
    • addedInput schema / properties / lots
      Added value: +{
      +  "description": "Shorthand inventory lots (tracked product slug/name, quantity, optional cost_basis_usd).",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "acquired_on": {
      +        "type": "string"
      +      },
      +      "cost_basis_usd": {
      +        "type": [
      +          "number",
      +          "string"
      +        ]
      +      },
      +      "position_id": {
      +        "type": "string"
      +      },
      +      "product": {
      +        "type": "string"
      +      },
      +      "quantity": {
      +        "type": [
      +          "integer",
      +          "number",
      +          "string"
      +        ]
      +      },
      +      "sku": {
      +        "type": "string"
      +      },
      +      "unit_acquisition_cost": {
      +        "type": [
      +          "number",
      +          "string",
      +          "object"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / positions / description
      Added value: +"Inventory positions (or pass lots shorthand)."
    • addedInput schema / properties / spot_by_metal / description
      Added value: +"Optional spot price map by metal. Defaults to live BPC spot prices."
    • addedInput schema / properties / spot_gold
      Added value: +{
      +  "description": "Optional gold spot override (USD/ozt).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / spot_platinum
      Added value: +{
      +  "description": "Optional platinum spot override (USD/ozt).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / spot_silver
      Added value: +{
      +  "description": "Optional silver spot override (USD/ozt).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "as_of",
      -  "carry_annual_rate",
      -  "day_count",
      -  "age_buckets",
      -  "spot_by_metal",
      -  "positions"
      -]
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "age_buckets": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_days": {
      -              "type": [
      -                "integer",
      -                "null"
      -              ]
      -            },
      -            "min_days": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "min_days",
      -            "max_days"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "buckets": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "carry_annual_rate": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exact": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "exact"
      -        ],
      -        "type": "object"
      -      },
      -      "day_count": {
      -        "const": "actual_365"
      -      },
      -      "day_count_note": {
      -        "type": "string"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "metal_note": {
      -        "type": "string"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "positions": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "sensitivity": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "carry_rates": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "spot_shocks": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "note",
      -          "carry_rates",
      -          "spot_shocks"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      },
      -      "totals": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "day_count",
      -      "day_count_note",
      -      "carry_annual_rate",
      -      "age_buckets",
      -      "metal_note",
      -      "positions",
      -      "buckets",
      -      "totals",
      -      "sensitivity"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "const": "INVALID_INPUT"
      -          },
      -          "diagnostics": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocks_eligibility": {
      -                  "type": "boolean"
      -                },
      -                "blocks_validity": {
      -                  "type": "boolean"
      -                },
      -                "code": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "enum": [
      -                    "error",
      -                    "warning",
      -                    "info"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "severity",
      -                "field",
      -                "message",
      -                "blocks_validity",
      -                "blocks_eligibility"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "diagnostics"
      -        ],
      -        "type": "object"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "ok": {
      -        "const": false
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "tool": {
      -        "const": "inventory_aging_exposure"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "age_buckets": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_days": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "min_days": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "min_days",
      +            "max_days"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_valuation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "asof": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cost_basis_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "lots": {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "market_ask_median_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "market_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "melt_total_usd": {
      +            "type": "number"
      +          },
      +          "partial_buyback_bid_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unrealized_vs_melt_total_usd": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "buckets": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "carry_annual_rate": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exact": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "exact"
      +        ],
      +        "type": "object"
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "day_count": {
      +        "const": "actual_365"
      +      },
      +      "day_count_note": {
      +        "type": "string"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "metal_note": {
      +        "type": "string"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "positions": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "sensitivity": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "carry_rates": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "spot_shocks": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "note",
      +          "carry_rates",
      +          "spot_shocks"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      },
      +      "totals": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "day_count",
      +      "day_count_note",
      +      "carry_annual_rate",
      +      "age_buckets",
      +      "metal_note",
      +      "positions",
      +      "buckets",
      +      "totals",
      +      "sensitivity"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customization": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "const": "INVALID_INPUT"
      +          },
      +          "diagnostics": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "blocks_eligibility": {
      +                  "type": "boolean"
      +                },
      +                "blocks_validity": {
      +                  "type": "boolean"
      +                },
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "severity": {
      +                  "enum": [
      +                    "error",
      +                    "warning",
      +                    "info"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "severity",
      +                "field",
      +                "message",
      +                "blocks_validity",
      +                "blocks_eligibility"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "diagnostics"
      +        ],
      +        "type": "object"
      +      },
      +      "execution_mode": {
      +        "const": "caller_supplied_stateless"
      +      },
      +      "ok": {
      +        "const": false
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "tool": {
      +        "const": "inventory_aging_exposure"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  7. Added

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds a useful default (carry_annual_rate=0) and a concrete minimal request body, but says nothing about the two mutually exclusive lot/position input modes or the response, and no output schema exists to fill that gap.

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

Conciseness3/5

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

Three short sentences with the purpose front-loaded, and the example is genuinely useful for a schema this nested. The fragment "Lots shorthand: carry_annual_rate defaults to 0" is cryptic and conflates two unrelated points.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 12 parameters, deep nested $defs, zero schema descriptions, and no output schema, three sentences plus one tiny example leave most of the contract undisclosed. The agent cannot tell how lots and positions relate, what spot source is used, or what the result contains.

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

Parameters2/5

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

Schema description coverage is 0% across 12 parameters, most of them nested, yet the description only touches carry_annual_rate (its default of 0) and three lot fields shown in the example. Key inputs such as positions, spot_by_metal, age_buckets, sensitivity, day_count, as_of, and spot_max_age_seconds are given no meaning at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase "Value and age exposure for dealer lots against current melt" names the resource (dealer inventory lots) and roughly what is computed (melt value plus aging/carry exposure). However, "age exposure" is unexplained jargon and nothing distinguishes this from close siblings such as melt_value, junk_silver_melt, or true_cost.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites, and no routing to or away from any alternative tool. The agent must infer from the name alone whether this or melt_value is the right entry point.

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