{
  "descriptorVersion": "1.0.0",
  "name": "calculate_fixed_deposit",
  "title": "Fixed deposit interest calculator",
  "description": "Calculate simple interest and maturity amount for a Hong Kong dollar fixed deposit on this page, with the page's own actual-day calculation (calendar-year days or a fixed 365-day year). Replaces every input on the page and shows the same result on screen. Not a bank quote; no bank products are loaded or recommended. Calculation or source matching runs in this page; arguments and results are not uploaded to Agoodeal servers or to Google Analytics, and the result is returned only to the calling agent. Non-sensitive usage metadata (tool name, outcome, execution mode, error code, duration; predefined source IDs for source matching) is reported through the site’s existing Google Analytics 4.",
  "execution": {
    "environment": "browser",
    "interface": "WebMCP imperative API: document.modelContext.registerTool (experimental)",
    "executionMode": "local_calculation",
    "pageUrls": [
      "https://www.agoodeal.com/tools/fixed-deposit-calculator/"
    ],
    "requirement": "Open one of pageUrls in a browser that exposes document.modelContext. As of October 2026 this is experimental: Chrome 149+ with chrome://flags/#enable-webmcp-testing, or an origin trial that Agoodeal has not joined. Without it the page works normally for people and no tool is registered.",
    "serverEndpoint": null,
    "argumentsEncoding": "JSON object (some browser versions require callers to pass it as a JSON string).",
    "returns": "A JSON string matching outputSchema."
  },
  "annotations": {
    "readOnlyHint": false,
    "untrustedContentHint": false,
    "consequentialHint": false
  },
  "annotationNotes": "readOnlyHint is false because the tool replaces every input on the page and shows the same result the visitor would see. It submits, stores and books nothing.",
  "inputSchema": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "principal",
      "annualRatePercent",
      "term"
    ],
    "properties": {
      "principal": {
        "type": "number",
        "exclusiveMinimum": 0,
        "description": "Deposit principal, HK$."
      },
      "annualRatePercent": {
        "type": "number",
        "minimum": 0,
        "maximum": 100,
        "description": "Quoted annual interest rate, percent."
      },
      "term": {
        "type": "string",
        "enum": [
          "7d",
          "1m",
          "3m",
          "6m",
          "12m",
          "custom"
        ],
        "description": "7d, 1m, 3m, 6m, 12m, or custom (then endDate is required)."
      },
      "startDate": {
        "type": "string",
        "format": "date",
        "description": "Start date YYYY-MM-DD. Omit for today in Hong Kong."
      },
      "endDate": {
        "type": "string",
        "format": "date",
        "description": "Maturity date YYYY-MM-DD; only with term \"custom\"."
      },
      "dayBasis": {
        "type": "string",
        "enum": [
          "calendar",
          "365"
        ],
        "description": "calendar: 365 or 366 days by calendar year (default); 365: fixed 365-day year."
      }
    }
  },
  "outputSchema": {
    "oneOf": [
      {
        "type": "object",
        "required": [
          "ok",
          "tool",
          "mode",
          "arguments",
          "result",
          "rendered",
          "uiInputsReplaced"
        ],
        "properties": {
          "ok": {
            "const": true
          },
          "tool": {
            "type": "string"
          },
          "mode": {
            "const": "local_calculation"
          },
          "arguments": {
            "type": "object"
          },
          "result": {
            "type": "object"
          },
          "rendered": {
            "type": "object",
            "description": "Text the page displayed after the same calculation, keyed by element id."
          },
          "uiInputsReplaced": {
            "const": true
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      {
        "type": "object",
        "required": [
          "ok",
          "error"
        ],
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "enum": [
                  "invalid_json",
                  "invalid_argument",
                  "missing_argument",
                  "unknown_argument",
                  "out_of_range",
                  "internal_error"
                ]
              },
              "message": {
                "type": "string"
              },
              "field": {
                "type": "string"
              }
            }
          }
        }
      }
    ]
  },
  "privacy": "Uses only the arguments supplied: every relevant page input is replaced (omitted optional arguments clear their field), so earlier visitor input is never read into the result. Nothing is stored. Calculation or source matching runs in this page; arguments and results are not uploaded to Agoodeal servers or to Google Analytics, and the result is returned only to the calling agent. Non-sensitive usage metadata (tool name, outcome, execution mode, error code, duration; predefined source IDs for source matching) is reported through the site’s existing Google Analytics 4.",
  "coverage": "Simple interest on one Hong Kong dollar deposit; calendar or fixed 365-day basis.",
  "limits": [
    "Not a bank quote; banks differ on start, maturity and day-count conventions.",
    "No bank products are loaded or recommended."
  ],
  "officialSources": [
    {
      "id": "dps-deposit-protection",
      "name": "香港存款保障委員會",
      "publisher": "Hong Kong Deposit Protection Board",
      "kind": "web_page",
      "url": "https://www.dps.org.hk/"
    }
  ],
  "agoodealPage": "https://www.agoodeal.com/tools/fixed-deposit-calculator/"
}
