{
  "repo": "tidbcloud/metering",
  "binary": "instancecheck",
  "binary_path": "cmd/instancecheck/main.go",
  "surface_kind": "cli_tool",
  "type": "cli_tool",
  "services": [
    {
      "name": "InstanceCheck",
      "package": "github.com/tidbcloud/metering/cmd/instancecheck",
      "methods": [
        {
          "name": "main",
          "name_key": "CLI instancecheck",
          "input": "serviceconfig path + tolerance flag + MGMT_DSN/FEISHU_SECRET env",
          "output": "one-shot instance metering reconciliation with Feishu notification",
          "type": "admin_cli"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "cmd/instancecheck/main.go compares metering data and then sends a Feishu bot notification.",
      "The binary does not expose a server; it exits after reconciliation and message delivery."
    ]
  }
}
