Skip to main content
Glama

Evaluate historical premium threshold alerts

premium_history_alerts
Read-onlyIdempotent

Flag unusual premium moves versus a product's recent history. Example: {"product":"american-gold-eagle-1oz","lookback_days":14}.

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

Input Schema

NameRequiredDescriptionDefault
as_ofNo
sourceNo
productNo
lookbackNo
thresholdsNo
observationsNo
lookback_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "lookback_days": 14,
      -    "product": "american-gold-eagle-1oz"
      -  }
      -]
    • removedInput schema / properties / as_of / description
      Removed value: -"Evaluation timestamp (ISO-8601). Defaults to live BPC refresh."
    • removedInput schema / properties / lookback / description
      Removed value: -"Lookback window {days} or {start, end}. Defaults to 7 days."
    • removedInput schema / properties / lookback_days / description
      Removed value: -"Shorthand lookback window in days (defaults to 7 when lookback is omitted)."
    • removedInput schema / properties / observations / description
      Removed value: -"Dated premium observations. Defaults to BPC stored history for product."
    • removedInput schema / properties / product / description
      Removed value: -"Tracked BPC product slug or name (loads BPC stored daily price/premium history when observations is omitted)."
    • removedInput schema / properties / source / description
      Removed value: -"Optional source label."
    • removedInput schema / properties / thresholds / description
      Removed value: -"Thresholds to evaluate. Defaults to BPC 7-day median/min and +/-1pp jump/drop rules."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "oneOf": [
      -    {
      -      "additionalProperties": false,
      -      "properties": {
      -        "as_of": {
      -          "type": "string"
      -        },
      -        "attribution_credit": {
      -          "type": "object"
      -        },
      -        "bpc_history_context": {
      -          "additionalProperties": true,
      -          "type": [
      -            "object",
      -            "null"
      -          ]
      -        },
      -        "customization": {
      -          "type": "string"
      -        },
      -        "data_as_of": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "data_sources": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "disclaimer": {
      -          "type": "string"
      -        },
      -        "events": {
      -          "items": {
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "excluded_observations": {
      -          "items": {
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "execution_mode": {
      -          "enum": [
      -            "caller_supplied_stateless",
      -            "bpc_live_and_caller"
      -          ]
      -        },
      -        "freshness": {
      -          "required": [
      -            "stale"
      -          ],
      -          "type": "object"
      -        },
      -        "group_notes": {
      -          "items": {
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "no_accuracy_guarantee": {
      -          "type": "string"
      -        },
      -        "ok": {
      -          "const": true
      -        },
      -        "scheduling": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "reason": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "const": "not_performed"
      -            }
      -          },
      -          "required": [
      -            "status",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "schema_version": {
      -          "const": "1.0.0"
      -        },
      -        "synthetic_policy": {
      -          "type": "string"
      -        },
      -        "tool": {
      -          "const": "premium_history_alerts"
      -        },
      -        "window": {
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "ok",
      -        "tool",
      -        "schema_version",
      -        "execution_mode",
      -        "as_of",
      -        "disclaimer",
      -        "no_accuracy_guarantee",
      -        "window",
      -        "scheduling",
      -        "synthetic_policy",
      -        "excluded_observations",
      -        "group_notes",
      -        "events"
      -      ],
      -      "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": "premium_history_alerts"
      -        }
      -      },
      -      "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": {
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_history_context": {
      -        "additionalProperties": true,
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_as_of": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "events": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "excluded_observations": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "freshness": {
      -        "required": [
      -          "stale"
      -        ],
      -        "type": "object"
      -      },
      -      "group_notes": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "scheduling": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "not_performed"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "reason"
      -        ],
      -        "type": "object"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "synthetic_policy": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "premium_history_alerts"
      -      },
      -      "window": {
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "window",
      -      "scheduling",
      -      "synthetic_policy",
      -      "excluded_observations",
      -      "group_notes",
      -      "events"
      -    ],
      -    "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": "premium_history_alerts"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "attribution_credit": {
      +        "type": "object"
      +      },
      +      "bpc_history_context": {
      +        "additionalProperties": true,
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "events": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "excluded_observations": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "group_notes": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "scheduling": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "not_performed"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "synthetic_policy": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "premium_history_alerts"
      +      },
      +      "window": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "window",
      +      "scheduling",
      +      "synthetic_policy",
      +      "excluded_observations",
      +      "group_notes",
      +      "events"
      +    ],
      +    "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": "premium_history_alerts"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lookback_days": 14,
      +    "product": "american-gold-eagle-1oz"
      +  }
      +]
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_history_context": {
      -        "additionalProperties": true,
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "events": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "excluded_observations": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "freshness": {
      -        "required": [
      -          "stale"
      -        ],
      -        "type": "object"
      -      },
      -      "group_notes": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "scheduling": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "not_performed"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "reason"
      -        ],
      -        "type": "object"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "synthetic_policy": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "premium_history_alerts"
      -      },
      -      "window": {
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "window",
      -      "scheduling",
      -      "synthetic_policy",
      -      "excluded_observations",
      -      "group_notes",
      -      "events"
      -    ],
      -    "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": "premium_history_alerts"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_history_context": {
      +        "additionalProperties": true,
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_as_of": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "events": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "excluded_observations": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "group_notes": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "scheduling": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "not_performed"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "synthetic_policy": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "premium_history_alerts"
      +      },
      +      "window": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "window",
      +      "scheduling",
      +      "synthetic_policy",
      +      "excluded_observations",
      +      "group_notes",
      +      "events"
      +    ],
      +    "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": "premium_history_alerts"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "bpc_history_context": {
      -        "additionalProperties": true,
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "customization": {
      -        "type": "string"
      -      },
      -      "data_sources": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "events": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "excluded_observations": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "execution_mode": {
      -        "enum": [
      -          "caller_supplied_stateless",
      -          "bpc_live_and_caller"
      -        ]
      -      },
      -      "group_notes": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "scheduling": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "not_performed"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "reason"
      -        ],
      -        "type": "object"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "synthetic_policy": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "premium_history_alerts"
      -      },
      -      "window": {
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "window",
      -      "scheduling",
      -      "synthetic_policy",
      -      "excluded_observations",
      -      "group_notes",
      -      "events"
      -    ],
      -    "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": "premium_history_alerts"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_history_context": {
      +        "additionalProperties": true,
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "events": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "excluded_observations": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "freshness": {
      +        "required": [
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "group_notes": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "scheduling": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "not_performed"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "synthetic_policy": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "premium_history_alerts"
      +      },
      +      "window": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "window",
      +      "scheduling",
      +      "synthetic_policy",
      +      "excluded_observations",
      +      "group_notes",
      +      "events"
      +    ],
      +    "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": "premium_history_alerts"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed11 schema fields changed
    • addedInput schema / properties / as_of / description
      Added value: +"Evaluation timestamp (ISO-8601). Defaults to live BPC refresh."
    • addedInput schema / properties / as_of / format
      Added value: +"date-time"
    • removedInput schema / properties / as_of / maxLength
      Removed value: -40
    • addedInput schema / properties / lookback / description
      Added value: +"Lookback window {days} or {start, end}. Defaults to 7 days."
    • addedInput schema / properties / lookback_days
      Added value: +{
      +  "description": "Shorthand lookback window in days (defaults to 7 when lookback is omitted).",
      +  "type": [
      +    "integer",
      +    "number",
      +    "string"
      +  ]
      +}
    • changedInput schema / properties / observations / description
      Previous value: -"Each observation must set synthetic to true or false. True rows are excluded. Missing provenance is excluded. No synthetic row is inserted by the tool."New value: +"Dated premium observations. Defaults to BPC stored history for product."
    • addedInput schema / properties / product
      Added value: +{
      +  "description": "Tracked BPC product slug or name (loads BPC stored daily price/premium history when observations is omitted).",
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Optional source label.",
      +  "type": "string"
      +}
    • addedInput schema / properties / thresholds / description
      Added value: +"Thresholds to evaluate. Defaults to BPC 7-day median/min and +/-1pp jump/drop rules."
    • removedInput schema / required
      Removed value: -[
      -  "as_of",
      -  "lookback",
      -  "thresholds",
      -  "observations"
      -]
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "as_of": {
      -        "type": "string"
      -      },
      -      "disclaimer": {
      -        "type": "string"
      -      },
      -      "events": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "excluded_observations": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "execution_mode": {
      -        "const": "caller_supplied_stateless"
      -      },
      -      "group_notes": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "no_accuracy_guarantee": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true
      -      },
      -      "scheduling": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "reason": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "not_performed"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "reason"
      -        ],
      -        "type": "object"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0"
      -      },
      -      "synthetic_policy": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "premium_history_alerts"
      -      },
      -      "window": {
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "as_of",
      -      "disclaimer",
      -      "no_accuracy_guarantee",
      -      "window",
      -      "scheduling",
      -      "synthetic_policy",
      -      "excluded_observations",
      -      "group_notes",
      -      "events"
      -    ],
      -    "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": "premium_history_alerts"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "tool",
      -      "schema_version",
      -      "execution_mode",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "as_of": {
      +        "type": "string"
      +      },
      +      "bpc_history_context": {
      +        "additionalProperties": true,
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "customization": {
      +        "type": "string"
      +      },
      +      "data_sources": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "disclaimer": {
      +        "type": "string"
      +      },
      +      "events": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "excluded_observations": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "execution_mode": {
      +        "enum": [
      +          "caller_supplied_stateless",
      +          "bpc_live_and_caller"
      +        ]
      +      },
      +      "group_notes": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "no_accuracy_guarantee": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "scheduling": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "not_performed"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0"
      +      },
      +      "synthetic_policy": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "premium_history_alerts"
      +      },
      +      "window": {
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "as_of",
      +      "disclaimer",
      +      "no_accuracy_guarantee",
      +      "window",
      +      "scheduling",
      +      "synthetic_policy",
      +      "excluded_observations",
      +      "group_notes",
      +      "events"
      +    ],
      +    "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": "premium_history_alerts"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "tool",
      +      "schema_version",
      +      "execution_mode",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  6. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds nothing beyond that: it does not explain what counts as 'unusual', whether thresholds or observations must be supplied, what defaults apply, or how results are ordered. 'Flag' also suggests detection, while the schema implies a threshold evaluation over caller-provided observations — a nuance the description leaves unexplained.

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?

Two sentences, front-loaded with the core behavior, and a compact example that adds real information rather than restating the schema. Slightly under-built for the tool's complexity, but there is no wasted wording.

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?

Seven parameters, nested $defs, no output schema, and zero schema description coverage make this a complex tool that the description barely covers. An agent could form a valid call from the example, but would be guessing about the thresholds/observations inputs and the meaning of the returned flags.

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 0% across 7 parameters including nested objects, so the description carries real weight and does partly compensate. The example clarifies that 'product' is a slug string and 'lookback_days' is a plain integer, resolving the schema's ambiguous type union for that field. However, as_of, source, the lookback object, thresholds, and observations receive no explanation at all.

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

Purpose4/5

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

States a specific verb ('Flag') and resource ('unusual premium moves versus a product's recent history'), so an agent knows this is a historical anomaly/threshold evaluator rather than a raw price lookup. It does not differentiate itself from siblings like get_premium_index or premium_over_spot, which overlap in subject matter.

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?

No explicit when-to-use, when-not-to-use, or alternative routing is given. The phrase 'versus a product's recent history' implies a comparative use case, but an agent must infer whether to call this or get_premium_index for a premium question.

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