{
  "descriptorVersion": "1.0.0",
  "name": "convert_cheque_amount",
  "title": "Cheque amount in words",
  "description": "Write a Hong Kong dollar cheque amount in Chinese capital numerals and English words on this page, using the page's own converter (up to HK$999,999,999,999.99, two decimal places). Replaces the amount on the page and shows the same wording on screen. Nothing is copied to the clipboard. A writing aid, not a bank instruction. 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/cheque-amount-converter/"
    ],
    "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": [
      "amount"
    ],
    "properties": {
      "amount": {
        "type": "string",
        "maxLength": 24,
        "pattern": "^\\s*(?:HK\\$|HKD)?\\s*[0-9][0-9,]*(?:\\.[0-9]{0,2})?\\s*$",
        "description": "Amount in HK$ as a string, e.g. \"12345.67\" or \"12,345.67\". Up to two decimal places."
      }
    }
  },
  "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": "HK$0.01 to HK$999,999,999,999.99 with up to two decimal places.",
  "limits": [
    "A writing aid, not a bank instruction; check the cheque book format."
  ],
  "officialSources": [
    {
      "id": "hkicl-paper-clearing",
      "name": "香港銀行同業結算有限公司：紙本支票結算",
      "publisher": "Hong Kong Interbank Clearing Limited (not a government department)",
      "kind": "web_page",
      "url": "https://www.hkicl.com.hk/eng/our_services/bulk_clearing_services/paper_clearing.php"
    }
  ],
  "agoodealPage": "https://www.agoodeal.com/tools/cheque-amount-converter/"
}
