{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "kiotviet.usefulapi.io",
    "site": "usefulapi.io",
    "addresses": [
      {
        "address": "104.21.62.184",
        "endpoints": 1110,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.138.37",
        "endpoints": 1110,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.128.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3030::ac43:8a25",
        "endpoints": 1110,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3030::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:3eb8",
        "endpoints": 1110,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.62.184",
          "172.67.138.37",
          "2606:4700:3030::ac43:8a25",
          "2606:4700:3032::6815:3eb8"
        ],
        "first_seen": "2026-11-23T15:07:01.049Z",
        "last_seen": "2026-11-23T15:07:01.049Z",
        "checks": 1
      },
      {
        "addresses": [
          "172.67.138.37",
          "104.21.62.184",
          "2606:4700:3032::6815:3eb8",
          "2606:4700:3030::ac43:8a25"
        ],
        "first_seen": "2026-11-22T15:06:01.702Z",
        "last_seen": "2026-11-22T15:06:01.702Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "kiotviet-mcp",
      "version": "1.16.4",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1109,
      "sample": [
        {
          "id": "22186",
          "url": "https://mcp.easyscribe.guide/mcp",
          "server_name": "guide.easyscribe/easy-scribe",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T18:00:14.785Z"
        },
        {
          "id": "42087",
          "url": "https://17track.usefulapi.io/mcp",
          "server_name": "io.usefulapi/17track",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:37:00.117Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:38:01.144Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:39:01.150Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:40:04.827Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:41:00.510Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:42:01.406Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:43:00.718Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:44:09.505Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:45:03.727Z"
        },
        {
          "id": "42096",
          "url": "https://academy-of-mine.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academy-of-mine",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:46:00.640Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:47:00.764Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:48:07.939Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:49:01.212Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:50:02.305Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:51:00.623Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:52:00.408Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:53:01.972Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:54:01.697Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:55:02.861Z"
        }
      ]
    },
    "same_site": {
      "total": 1108,
      "sample": [
        {
          "id": "42087",
          "url": "https://17track.usefulapi.io/mcp",
          "server_name": "io.usefulapi/17track",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:37:00.117Z"
        },
        {
          "id": "42088",
          "url": "https://a2x-accounting.usefulapi.io/mcp",
          "server_name": "io.usefulapi/a2x-accounting",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:38:01.144Z"
        },
        {
          "id": "42089",
          "url": "https://abacus-pos.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abacus-pos",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:39:01.150Z"
        },
        {
          "id": "42090",
          "url": "https://abaninja.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abaninja",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:40:04.827Z"
        },
        {
          "id": "42091",
          "url": "https://ablesign.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ablesign",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:41:00.510Z"
        },
        {
          "id": "42092",
          "url": "https://ably.usefulapi.io/mcp",
          "server_name": "io.usefulapi/ably",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:42:01.406Z"
        },
        {
          "id": "42093",
          "url": "https://abra-flexi.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abra-flexi",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:43:00.718Z"
        },
        {
          "id": "42094",
          "url": "https://absence-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/absence-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:44:09.505Z"
        },
        {
          "id": "42095",
          "url": "https://abstract-api.usefulapi.io/mcp",
          "server_name": "io.usefulapi/abstract-api",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:45:03.727Z"
        },
        {
          "id": "42096",
          "url": "https://academy-of-mine.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academy-of-mine",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:46:00.640Z"
        },
        {
          "id": "42097",
          "url": "https://academyocean.usefulapi.io/mcp",
          "server_name": "io.usefulapi/academyocean",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:47:00.764Z"
        },
        {
          "id": "42098",
          "url": "https://accelo.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accelo",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:48:07.939Z"
        },
        {
          "id": "42099",
          "url": "https://accredible.usefulapi.io/mcp",
          "server_name": "io.usefulapi/accredible",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:49:01.212Z"
        },
        {
          "id": "42100",
          "url": "https://action1.usefulapi.io/mcp",
          "server_name": "io.usefulapi/action1",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:50:02.305Z"
        },
        {
          "id": "42101",
          "url": "https://acube.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acube",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:51:00.623Z"
        },
        {
          "id": "42102",
          "url": "https://acuity-scheduling.usefulapi.io/mcp",
          "server_name": "io.usefulapi/acuity-scheduling",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:52:00.408Z"
        },
        {
          "id": "42103",
          "url": "https://adafruit-io.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adafruit-io",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:53:01.972Z"
        },
        {
          "id": "42104",
          "url": "https://addevent.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addevent",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:54:01.697Z"
        },
        {
          "id": "42105",
          "url": "https://addressfinder.usefulapi.io/mcp",
          "server_name": "io.usefulapi/addressfinder",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:55:02.861Z"
        },
        {
          "id": "42106",
          "url": "https://adminpulse.usefulapi.io/mcp",
          "server_name": "io.usefulapi/adminpulse",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T01:56:00.432Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.usefulapi",
      "total": 1108,
      "sample": [
        {
          "name": "io.usefulapi/17track",
          "title": "17TRACK MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/a2x-accounting",
          "title": "A2X MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abacus-pos",
          "title": "Abacus POS MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abaninja",
          "title": "AbaNinja MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ablesign",
          "title": "AbleSign MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ably",
          "title": "Ably MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abra-flexi",
          "title": "ABRA Flexi MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/absence-io",
          "title": "absence.io MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abstract-api",
          "title": "Abstract API MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academy-of-mine",
          "title": "Academy of Mine MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academyocean",
          "title": "AcademyOcean MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accelo",
          "title": "Accelo MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accredible",
          "title": "Accredible MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/action1",
          "title": "Action1 MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acube",
          "title": "A-Cube MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acuity-scheduling",
          "title": "Acuity Scheduling MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adafruit-io",
          "title": "Adafruit IO MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addevent",
          "title": "AddEvent MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addressfinder",
          "title": "Addressfinder MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adminpulse",
          "title": "AdminPulse MCP by usefulapi"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/m190/usefulapi-mcp",
      "total": 1108,
      "sample": [
        {
          "name": "io.usefulapi/17track",
          "title": "17TRACK MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/a2x-accounting",
          "title": "A2X MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abacus-pos",
          "title": "Abacus POS MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abaninja",
          "title": "AbaNinja MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ablesign",
          "title": "AbleSign MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/ably",
          "title": "Ably MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abra-flexi",
          "title": "ABRA Flexi MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/absence-io",
          "title": "absence.io MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/abstract-api",
          "title": "Abstract API MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academy-of-mine",
          "title": "Academy of Mine MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/academyocean",
          "title": "AcademyOcean MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accelo",
          "title": "Accelo MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/accredible",
          "title": "Accredible MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/action1",
          "title": "Action1 MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acube",
          "title": "A-Cube MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/acuity-scheduling",
          "title": "Acuity Scheduling MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adafruit-io",
          "title": "Adafruit IO MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addevent",
          "title": "AddEvent MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/addressfinder",
          "title": "Addressfinder MCP by usefulapi"
        },
        {
          "name": "io.usefulapi/adminpulse",
          "title": "AdminPulse MCP by usefulapi"
        }
      ]
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "42586",
    "server_name": "io.usefulapi/kiotviet",
    "url": "https://kiotviet.usefulapi.io/mcp",
    "host": "kiotviet.usefulapi.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T15:07:01.049Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "ec3e2363843a9048c4246cb2ff304c41bd9b048757ffb1052ebad4c9e1ee8bdd",
    "first_listed_at": "2026-11-22T15:06:01.702Z",
    "created_at": "2026-11-21T12:40:10.584Z",
    "resolved_addresses": [
      "104.21.62.184",
      "172.67.138.37",
      "2606:4700:3030::ac43:8a25",
      "2606:4700:3032::6815:3eb8"
    ]
  },
  "server": {
    "name": "io.usefulapi/kiotviet",
    "title": "KiotViet MCP by usefulapi",
    "description": "Read KiotViet products, customers, invoices, orders and stock; create customers and orders.",
    "version": "1.16.4",
    "registry_status": "active",
    "repository_url": "https://github.com/m190/usefulapi-mcp",
    "website_url": "https://usefulapi.io/kiotviet/",
    "published_at": "2026-11-18T11:02:44.706Z",
    "updated_at": "2026-11-18T11:02:44.706Z",
    "first_seen": "2026-11-21T12:40:09.939Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "takes-payment"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:20:17.514Z"
  },
  "operator": {
    "key": "usefulapi.io",
    "name": "usefulapi.io",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 309,
    "first_check_in_window": "2026-11-22T15:06:01.702Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "ec3e2363843a9048c4246cb2ff304c41bd9b048757ffb1052ebad4c9e1ee8bdd",
    "tools": 29,
    "resources": 0,
    "prompts": 7,
    "first_seen": "2026-11-22T15:06:01.908Z",
    "tool_names": [
      "kiotviet_list_products",
      "kiotviet_get_product",
      "kiotviet_get_product_by_code",
      "kiotviet_list_categories",
      "kiotviet_get_category",
      "kiotviet_list_customers",
      "kiotviet_get_customer",
      "kiotviet_get_customer_by_code",
      "kiotviet_create_customer",
      "kiotviet_list_invoices",
      "kiotviet_get_invoice",
      "kiotviet_get_invoice_by_code",
      "kiotviet_list_orders",
      "kiotviet_get_order",
      "kiotviet_get_order_by_code",
      "kiotviet_create_order",
      "kiotviet_list_branches",
      "kiotviet_list_stock",
      "kiotviet_list_suppliers",
      "kiotviet_get_supplier",
      "kiotviet_list_purchase_orders",
      "kiotviet_get_purchase_order",
      "kiotviet_list_supplier_orders",
      "kiotviet_list_returns",
      "kiotviet_get_return",
      "kiotviet_list_cashflow",
      "kiotviet_list_users",
      "kiotviet_list_price_books",
      "kiotviet_get_price_book"
    ],
    "declared": {
      "tools": [
        {
          "name": "kiotviet_list_products",
          "title": "List products",
          "description": "List products (code, barcode, name, category, base price, units, attributes). Optionally include stock per branch (include_inventory) and price-book prices. Filter by name, category, branch, active flag or last change. GET /products.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Filter by product name."
              },
              "order_by": {
                "enum": [
                  "name",
                  "code",
                  "createdDate",
                  "modifiedDate"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "is_active": {
                "type": "boolean",
                "description": "Only active (true) or inactive (false) products."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "category_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only products in this category (see kiotviet_list_categories).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "include_inventory": {
                "type": "boolean",
                "description": "Include the stock on hand per branch."
              },
              "include_pricebook": {
                "type": "boolean",
                "description": "Include the price-book prices."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List products",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_product",
          "title": "Get product",
          "description": "One product by id: code, barcode, name, category, base price, units, attributes, images, stock per branch and price books. GET /products/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id"
            ],
            "properties": {
              "product_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet product id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get product",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_product_by_code",
          "title": "Get product by code",
          "description": "One product by its product code (SKU). GET /products/code/{code}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "KiotViet product code."
              }
            }
          },
          "annotations": {
            "title": "Get product by code",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_categories",
          "title": "List categories",
          "description": "List product categories (id, name, parent, whether it has children). Set hierarchical to get the category tree. GET /categories.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "order_by": {
                "enum": [
                  "categoryName",
                  "createdDate",
                  "modifiedDate"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "hierarchical": {
                "type": "boolean",
                "description": "Return the nested tree (ignores last_modified_from)."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List categories",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_category",
          "title": "Get category",
          "description": "One product category by id (name, parent, children). GET /categories/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "category_id"
            ],
            "properties": {
              "category_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet category id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get category",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_customers",
          "title": "List customers",
          "description": "List customers (code, name, phone, email, address, debt, total invoiced, reward points, groups). Contains personal data of the shop's customers. Filter by code, name, phone, group or last change. GET /customers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Customer code."
              },
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Filter by customer name."
              },
              "group_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only customers in this customer group.",
                "exclusiveMinimum": 0
              },
              "order_by": {
                "enum": [
                  "name",
                  "code",
                  "createdDate",
                  "modifiedDate"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "include_total": {
                "type": "boolean",
                "description": "Include financial totals (debt, total invoiced, points)."
              },
              "contact_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Filter by phone number."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              },
              "include_customer_group": {
                "type": "boolean",
                "description": "Include each customer's groups."
              }
            }
          },
          "annotations": {
            "title": "List customers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_customer",
          "title": "Get customer",
          "description": "One customer by id: contact data, debt, total invoiced, reward points, groups. GET /customers/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "customer_id"
            ],
            "properties": {
              "customer_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet customer id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get customer",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_customer_by_code",
          "title": "Get customer by code",
          "description": "One customer by customer code. GET /customers/code/{code}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "KiotViet customer code."
              }
            }
          },
          "annotations": {
            "title": "Get customer by code",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_create_customer",
          "title": "Create customer",
          "description": "WRITE: create a new customer in the shop (name required; code is generated by KiotViet if omitted). Always check with the user first, and look the customer up by phone before creating a duplicate. POST /customers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name"
            ],
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Customer code (optional; KiotViet generates one)."
              },
              "name": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1,
                "description": "Customer name."
              },
              "email": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1,
                "description": "Email address."
              },
              "address": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "Street address."
              },
              "comments": {
                "type": "string",
                "maxLength": 1000,
                "minLength": 1,
                "description": "Note on the customer."
              },
              "tax_code": {
                "type": "string",
                "maxLength": 50,
                "minLength": 1,
                "description": "Tax code (ma so thue)."
              },
              "group_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 20,
                "description": "Customer group ids."
              },
              "birth_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "organization": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1,
                "description": "Company name."
              },
              "contact_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Phone number."
              }
            }
          },
          "annotations": {
            "title": "Create customer",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_invoices",
          "title": "List invoices",
          "description": "List sales invoices (code, date, branch, customer, total, amount paid, status, lines). Filter by branch, customer, status, order, purchase-date range or last change. GET /invoices.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                "maxItems": 10,
                "description": "KiotViet status code(s) to include."
              },
              "order_by": {
                "enum": [
                  "createdDate",
                  "modifiedDate",
                  "purchaseDate",
                  "code"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "order_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only the invoice created from this sales order.",
                "exclusiveMinimum": 0
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "customer_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only invoices of these customers."
              },
              "customer_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only invoices of the customer with this code."
              },
              "include_payment": {
                "type": "boolean",
                "description": "Include the payments."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "to_purchase_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "from_purchase_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List invoices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_invoice",
          "title": "Get invoice",
          "description": "One invoice by id with its lines, payments and delivery. GET /invoices/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invoice_id"
            ],
            "properties": {
              "invoice_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet invoice id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get invoice",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_invoice_by_code",
          "title": "Get invoice by code",
          "description": "One invoice by invoice code (for example HD000123). GET /invoices/code/{code}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "KiotViet invoice code."
              }
            }
          },
          "annotations": {
            "title": "Get invoice by code",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_orders",
          "title": "List sales orders",
          "description": "List sales orders (code, date, branch, customer, total, status, lines, delivery). Filter by branch, customer, status, creation date (from) or last change (from/to). GET /orders.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                "maxItems": 10,
                "description": "KiotViet status code(s) to include."
              },
              "order_by": {
                "enum": [
                  "createdDate",
                  "modifiedDate",
                  "purchaseDate",
                  "code"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "created_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only orders created at or after this date."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "customer_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only orders of these customers."
              },
              "customer_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only orders of the customer with this code."
              },
              "include_payment": {
                "type": "boolean",
                "description": "Include the payments."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "sale_channel_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only orders from this sales channel.",
                "exclusiveMinimum": 0
              },
              "last_modified_to": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only orders last changed up to this date-time (KiotViet toDate is a bound on the modification time, not the creation time). Use with last_modified_from."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              },
              "include_order_delivery": {
                "type": "boolean",
                "description": "Include the delivery details."
              }
            }
          },
          "annotations": {
            "title": "List sales orders",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_order",
          "title": "Get sales order",
          "description": "One sales order by id with its lines, payments and delivery. GET /orders/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "order_id"
            ],
            "properties": {
              "order_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet order id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get sales order",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_order_by_code",
          "title": "Get sales order by code",
          "description": "One sales order by order code (for example DH000123). GET /orders/code/{code}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "KiotViet order code."
              }
            }
          },
          "annotations": {
            "title": "Get sales order by code",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_create_order",
          "title": "Create sales order",
          "description": "WRITE: create a sales order (an order, not an invoice: no invoice is made and no payment is recorded) with lines of existing products in a branch, for an existing customer or none. Always confirm the products, quantities and prices with the user first. POST /orders.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "branch_id",
              "items"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "product_id",
                    "quantity",
                    "price"
                  ],
                  "properties": {
                    "note": {
                      "type": "string",
                      "maxLength": 500,
                      "minLength": 1,
                      "description": "Line note."
                    },
                    "price": {
                      "type": "number",
                      "maximum": 1000000000000,
                      "minimum": 0,
                      "description": "Unit price."
                    },
                    "discount": {
                      "type": "number",
                      "maximum": 1000000000000,
                      "minimum": 0,
                      "description": "Line discount amount."
                    },
                    "quantity": {
                      "type": "number",
                      "maximum": 1000000,
                      "description": "Quantity.",
                      "exclusiveMinimum": 0
                    },
                    "product_id": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "description": "Product id.",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "The order lines."
              },
              "discount": {
                "type": "number",
                "maximum": 1000000000000,
                "minimum": 0,
                "description": "Order discount amount."
              },
              "branch_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Branch the order is for (see kiotviet_list_branches).",
                "exclusiveMinimum": 0
              },
              "sold_by_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Salesperson user id (see kiotviet_list_users).",
                "exclusiveMinimum": 0
              },
              "customer_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Existing customer id (see kiotviet_list_customers).",
                "exclusiveMinimum": 0
              },
              "description": {
                "type": "string",
                "maxLength": 1000,
                "minLength": 1,
                "description": "Note on the order."
              },
              "sale_channel_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Sales channel id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Create sales order",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_branches",
          "title": "List branches",
          "description": "List the shop's branches (id, name, code, phone, address). Use the ids to filter other tools. GET /branches.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              }
            }
          },
          "annotations": {
            "title": "List branches",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_stock",
          "title": "List stock on hand",
          "description": "Stock on hand and reserved quantity per product and branch. Filter by branch or last change. GET /productOnHands.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "order_by": {
                "enum": [
                  "code",
                  "createdDate",
                  "modifiedDate"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List stock on hand",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_suppliers",
          "title": "List suppliers",
          "description": "List suppliers (code, name, phone, email, address, debt, total invoiced). Filter by code, name, phone or last change. GET /suppliers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Supplier code."
              },
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Filter by supplier name."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "include_total": {
                "type": "boolean",
                "description": "Include financial totals (debt, total invoiced)."
              },
              "contact_number": {
                "type": "string",
                "maxLength": 30,
                "minLength": 1,
                "description": "Filter by phone number."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List suppliers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_supplier",
          "title": "Get supplier",
          "description": "One supplier by id. GET /suppliers/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "supplier_id"
            ],
            "properties": {
              "supplier_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet supplier id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get supplier",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_purchase_orders",
          "title": "List goods receipts",
          "description": "List goods receipts from suppliers (nhap hang: code, date, branch, supplier, total, lines). Filter by branch, status or purchase-date range. GET /purchaseorders.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "status": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                "maxItems": 10,
                "description": "KiotViet status code(s) to include."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "include_payment": {
                "type": "boolean",
                "description": "Include the payments."
              },
              "to_purchase_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "from_purchase_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List goods receipts",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_purchase_order",
          "title": "Get goods receipt",
          "description": "One goods receipt (nhap hang) by id with its lines. GET /purchaseorders/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "purchase_order_id"
            ],
            "properties": {
              "purchase_order_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet goods receipt id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get goods receipt",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_supplier_orders",
          "title": "List supplier orders",
          "description": "List orders placed with suppliers (dat hang nhap: code, date, branch, supplier, status, lines, amount paid). Filter by branch, status, supplier or product text. GET /ordersuppliers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "status": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0,
                "description": "KiotViet status code."
              },
              "code_key": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Order code."
              },
              "branch_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only this branch.",
                "exclusiveMinimum": 0
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "product_key": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Product code or name."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "supplier_key": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Supplier code, name or phone."
              }
            }
          },
          "annotations": {
            "title": "List supplier orders",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_returns",
          "title": "List returns",
          "description": "List customer returns (code, date, branch, customer, invoice, return total, lines). GET /returns.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "order_by": {
                "enum": [
                  "createdDate",
                  "modifiedDate",
                  "code"
                ],
                "type": "string",
                "description": "Sort field."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "include_payment": {
                "type": "boolean",
                "description": "Include the payments."
              },
              "order_direction": {
                "enum": [
                  "Asc",
                  "Desc"
                ],
                "type": "string",
                "description": "Sort direction."
              },
              "last_modified_from": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Only records changed at or after this date-time (shop local time)."
              }
            }
          },
          "annotations": {
            "title": "List returns",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_return",
          "title": "Get return",
          "description": "One customer return by id with its lines. GET /returns/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "return_id"
            ],
            "properties": {
              "return_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet return id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get return",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_cashflow",
          "title": "List cash flow",
          "description": "List cash-book entries (receipts and payments: code, branch, method, partner, amount, date, status). Filter by branch, direction or date range. GET /cashflow.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Voucher code."
              },
              "end_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 50,
                "description": "Only these branches (see kiotviet_list_branches)."
              },
              "is_receipt": {
                "type": "boolean",
                "description": "true = receipts (money in), false = payments (money out)."
              },
              "start_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
                "description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "partner_name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Customer, supplier or other partner name."
              }
            }
          },
          "annotations": {
            "title": "List cash flow",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_users",
          "title": "List users",
          "description": "List the shop's staff users (id, username, name, phone, email). GET /users.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              }
            }
          },
          "annotations": {
            "title": "List users",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_list_price_books",
          "title": "List price books",
          "description": "List price books (bang gia: name, active flag, validity dates, branches, customer groups). GET /pricebooks.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "include_branches": {
                "type": "boolean",
                "description": "Include the branches each price book applies to."
              },
              "include_customer_groups": {
                "type": "boolean",
                "description": "Include the customer groups each price book applies to."
              }
            }
          },
          "annotations": {
            "title": "List price books",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "kiotviet_get_price_book",
          "title": "Get price book prices",
          "description": "The product prices of one price book (product id, code, price), paged. GET /pricebooks/{id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "price_book_id"
            ],
            "properties": {
              "page_size": {
                "type": "integer",
                "maximum": 100,
                "description": "Records per page, 1-100 (default 20).",
                "exclusiveMinimum": 0
              },
              "current_item": {
                "type": "integer",
                "maximum": 10000000,
                "minimum": 0,
                "description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
              },
              "price_book_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "KiotViet price book id.",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "title": "Get price book prices",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "getting_started",
          "description": "What you can do with KiotViet here, with example requests to try."
        },
        {
          "name": "check_stock_by_branch",
          "description": "The AI shows stock on hand and reserved quantities per product and branch, so you can see what is running low where."
        },
        {
          "name": "review_the_day_s_sales",
          "description": "The AI lists sales invoices for a date range with totals and payment status, and opens one invoice with its lines and payments."
        },
        {
          "name": "look_up_a_customer_and_their_orders",
          "description": "The AI finds a customer by code, name or phone, shows debt and totals, and lists the latest orders of that customer."
        },
        {
          "name": "take_a_sales_order",
          "description": "The AI creates a sales order with lines of existing products in a branch, after you confirm the products, quantities and prices."
        },
        {
          "name": "add_a_new_customer",
          "description": "The AI checks by phone number whether the customer exists, and creates a new customer record when it does not."
        },
        {
          "name": "review_supplier_purchases",
          "description": "The AI lists goods receipts and supplier orders for a period, with suppliers, totals and lines, so you can see what you bought."
        }
      ]
    },
    "instructions": "Tools for KiotViet, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: \"Which products are running low on stock at the Hanoi branch?\"; \"Show today's invoices with their totals and payment status.\"; \"Find the customer with phone number 0901234567 and list their latest orders.\". Read-only tools never change data; ask the user before a tool that creates, changes or deletes KiotViet data. Free plan: 50 tool calls per month. Run kiotviet_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run kiotviet_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run kiotviet_upgrade without a plan: it returns both plans, each with a payment link for the user to open. kiotviet_cancel_subscription cancels Pro at the end of the paid period."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}