{
  "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": "smaregi.usefulapi.io",
    "site": "usefulapi.io",
    "addresses": [
      {
        "address": "104.21.62.184",
        "endpoints": 1099,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.32.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.138.37",
        "endpoints": 1099,
        "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": 1099,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3030::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::6815:3eb8",
        "endpoints": 1099,
        "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-22T21:03:02.094Z",
        "last_seen": "2026-11-22T21:03:02.094Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "smaregi-mcp",
      "version": "1.17.4",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1098,
      "sample": [
        {
          "id": "22186",
          "url": "https://mcp.easyscribe.guide/mcp",
          "server_name": "guide.easyscribe/easy-scribe",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T17:59:02.319Z"
        },
        {
          "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": 1103,
      "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": 1103,
      "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": 1103,
      "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": "42939",
    "server_name": "io.usefulapi/smaregi",
    "url": "https://smaregi.usefulapi.io/mcp",
    "host": "smaregi.usefulapi.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T21:03:02.094Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "e1381208f3e25e6679bbbeb304cc99f251670cabb43cbfd7d50e2a9e814b1671",
    "first_listed_at": "2026-11-22T21:03:02.094Z",
    "created_at": "2026-11-21T12:45:10.572Z",
    "resolved_addresses": [
      "104.21.62.184",
      "172.67.138.37",
      "2606:4700:3030::ac43:8a25",
      "2606:4700:3032::6815:3eb8"
    ]
  },
  "server": {
    "name": "io.usefulapi/smaregi",
    "title": "Smaregi MCP by usefulapi",
    "description": "Read Smaregi stores, products, customers, stock and transactions; manage customers, products, stock.",
    "version": "1.17.4",
    "registry_status": "active",
    "repository_url": "https://github.com/m190/usefulapi-mcp",
    "website_url": "https://usefulapi.io/smaregi/",
    "published_at": "2026-11-18T11:02:42.191Z",
    "updated_at": "2026-11-18T11:02:42.191Z",
    "first_seen": "2026-11-21T12:45:09.928Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "reads-chain"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T21:03:07.544Z"
  },
  "operator": {
    "key": "usefulapi.io",
    "name": "usefulapi.io",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 211,
    "first_check_in_window": "2026-11-22T21:03:02.094Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "e1381208f3e25e6679bbbeb304cc99f251670cabb43cbfd7d50e2a9e814b1671",
    "tools": 20,
    "resources": 0,
    "prompts": 7,
    "first_seen": "2026-11-22T21:03:02.309Z",
    "tool_names": [
      "smaregi_list_stores",
      "smaregi_get_store",
      "smaregi_list_staffs",
      "smaregi_get_staff",
      "smaregi_list_categories",
      "smaregi_get_category",
      "smaregi_list_products",
      "smaregi_get_product",
      "smaregi_list_customers",
      "smaregi_get_customer",
      "smaregi_list_stock",
      "smaregi_list_stock_changes",
      "smaregi_list_transactions",
      "smaregi_get_transaction",
      "smaregi_create_customer",
      "smaregi_update_customer",
      "smaregi_create_product",
      "smaregi_update_product",
      "smaregi_set_stock",
      "smaregi_adjust_stock"
    ],
    "declared": {
      "tools": [
        {
          "name": "smaregi_list_stores",
          "title": "List stores",
          "description": "List the stores (shops) of the Smaregi contract: id, code, name, address, phone. Use the ids to filter stock and transactions. GET /stores.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              }
            }
          },
          "annotations": {
            "title": "List stores",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_store",
          "title": "Get store",
          "description": "One store by id. GET /stores/{store_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "store_id"
            ],
            "properties": {
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              }
            }
          },
          "annotations": {
            "title": "Get store",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_staffs",
          "title": "List staff",
          "description": "List staff members: id, code, name, role, e-mail. Passwords are never returned. GET /staffs.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              }
            }
          },
          "annotations": {
            "title": "List staff",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_staff",
          "title": "Get staff member",
          "description": "One staff member by id. GET /staffs/{staff_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "staff_id"
            ],
            "properties": {
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "staff_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              }
            }
          },
          "annotations": {
            "title": "Get staff member",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_categories",
          "title": "List categories",
          "description": "List product categories (departments): id, code, name, parent, level. Use the ids when creating or filtering products. GET /categories.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              }
            }
          },
          "annotations": {
            "title": "List categories",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_category",
          "title": "Get category",
          "description": "One product category by id. GET /categories/{category_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "category_id"
            ],
            "properties": {
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "category_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              }
            }
          },
          "annotations": {
            "title": "Get category",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_products",
          "title": "List products",
          "description": "List products with id, category, code, name, price, cost and update time. Filter by category, code, group code, display flag or update time (a 31-day maximum range). GET /products.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "group_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only products with this group code."
              },
              "updated_to": {
                "type": "string",
                "description": "Only products changed at or before this date-time (the range may span 31 days at most)."
              },
              "category_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only products of this category id."
              },
              "display_flag": {
                "enum": [
                  "0",
                  "1"
                ],
                "type": "string",
                "description": "1 = shown on the register, 0 = hidden."
              },
              "product_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only the product with this exact product code."
              },
              "updated_from": {
                "type": "string",
                "description": "Only products changed at or after this date-time (ISO 8601 with timezone)."
              },
              "supplier_product_no": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only products with this supplier product number."
              }
            }
          },
          "annotations": {
            "title": "List products",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_product",
          "title": "Get product",
          "description": "One product by id, optionally with store prices, bundled items, store assignments, reserved stock, attribute items and order settings. GET /products/{product_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id"
            ],
            "properties": {
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "with_prices": {
                "type": "boolean",
                "description": "Add the store/period-specific prices."
              },
              "with_stores": {
                "type": "boolean",
                "description": "Add the store assignments."
              },
              "with_order_setting": {
                "type": "boolean",
                "description": "Add the ordering settings."
              },
              "with_reserve_items": {
                "type": "boolean",
                "description": "Add the free-form reserve items."
              },
              "with_attribute_items": {
                "type": "boolean",
                "description": "Add the attribute items."
              },
              "with_inventory_reservations": {
                "type": "boolean",
                "description": "Add the inventory reservations."
              }
            }
          },
          "annotations": {
            "title": "Get product",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_customers",
          "title": "List customers",
          "description": "List customers (members): id, code, number, name, phone, e-mail, address. Smaregi cannot search by name, phone or e-mail: filter by customer code, member number, id range or update time, or page through. Contains shoppers' personal data. GET /customers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "updated_to": {
                "type": "string",
                "description": "Only customers changed at or before this date-time (31 days at most)."
              },
              "customer_no": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only the customer with this member number."
              },
              "updated_from": {
                "type": "string",
                "description": "Only customers changed at or after this date-time (ISO 8601 with timezone)."
              },
              "customer_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only the customer with this exact customer code."
              },
              "customer_id_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only customers with an id at or below this."
              },
              "customer_id_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only customers with an id at or above this."
              }
            }
          },
          "annotations": {
            "title": "List customers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_customer",
          "title": "Get customer",
          "description": "One customer by id, optionally with the contract's custom fields. Contains personal data. GET /customers/{customer_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "customer_id"
            ],
            "properties": {
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "customer_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "with_custom_fields": {
                "type": "boolean",
                "description": "Add the custom field values."
              }
            }
          },
          "annotations": {
            "title": "Get customer",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_stock",
          "title": "List stock levels",
          "description": "List stock levels per store and product (stockAmount, reserved amount). Filter by store or product. Smaregi only lists a product once its quantity has changed at least once. An update-time filter needs both bounds (31 days at most). GET /stock.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only this store id."
              },
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only this product id."
              },
              "updated_to": {
                "type": "string",
                "description": "Only stock changed at or before this date-time (give updated_from as well)."
              },
              "updated_from": {
                "type": "string",
                "description": "Only stock changed at or after this date-time (give updated_to as well)."
              }
            }
          },
          "annotations": {
            "title": "List stock levels",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_stock_changes",
          "title": "List stock history",
          "description": "The stock change history of one product in one store: date, amount, division (sale, purchase, transfer, adjustment...). GET /stock/changes/{product_id}/{store_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id",
              "store_id"
            ],
            "properties": {
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "target_date": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "Only changes of this target date, as Smaregi formats it (yyyy-mm-dd)."
              },
              "stock_division": {
                "type": "string",
                "maxLength": 10,
                "minLength": 1,
                "description": "Only changes of this stock division code."
              }
            }
          },
          "annotations": {
            "title": "List stock history",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_list_transactions",
          "title": "List transactions",
          "description": "List sales transactions (receipts) in a time window of at most 31 days: id, date-time, division (1 = normal sale, 2 = deposit, 3 = withdrawal...), store, terminal, customer, totals. Optionally with the line items (limit 100 then). Contains shoppers' personal data. GET /transactions.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "from",
              "to"
            ],
            "properties": {
              "to": {
                "type": "string",
                "description": "End of the window (at most 31 days after from)."
              },
              "from": {
                "type": "string",
                "description": "Start of the window: transaction date-time (when Smaregi received it), ISO 8601 with timezone."
              },
              "page": {
                "type": "integer",
                "maximum": 100000,
                "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
                "exclusiveMinimum": 0
              },
              "sort": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(:desc)?(,[A-Za-z][A-Za-z0-9]*(:desc)?)*$",
                "maxLength": 200,
                "description": "Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc)."
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "description": "Results per page, 1-500 (default 50).",
                "exclusiveMinimum": 0
              },
              "fields": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9]*(,[A-Za-z][A-Za-z0-9]*)*$",
                "maxLength": 500,
                "description": "Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Only this store id."
              },
              "with_details": {
                "enum": [
                  "none",
                  "summary",
                  "all"
                ],
                "type": "string",
                "description": "Add the line items: none (default), summary or all. Any other value than none caps limit at 100."
              },
              "customer_code": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only this customer code."
              },
              "transaction_uuid": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Only the transaction with this receipt number."
              },
              "transaction_head_division": {
                "enum": [
                  "1",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "7",
                  "8",
                  "9",
                  "11",
                  "13",
                  "14",
                  "15",
                  "16"
                ],
                "type": "string",
                "description": "Transaction division: 1 normal sale, 2 deposit, 3 withdrawal, 4 advance payment, 5 advance refund, 6 points added, 7 points deducted, 8 points expired, 9 coupon ticket, 11 tip, 13 miles added, 14 miles deducted, 15 value card deposit, 16 receipt."
              }
            }
          },
          "annotations": {
            "title": "List transactions",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_get_transaction",
          "title": "Get transaction",
          "description": "One transaction (receipt) by its transaction id (transactionHeadId), optionally with line items, discounts and payments. Contains personal data. GET /transactions/{transaction_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "transaction_id"
            ],
            "properties": {
              "with_details": {
                "type": "boolean",
                "description": "Add the line items."
              },
              "with_payments": {
                "type": "boolean",
                "description": "Add the payments."
              },
              "transaction_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "The transactionHeadId."
              },
              "with_discounts": {
                "type": "boolean",
                "description": "Add the discounts."
              }
            }
          },
          "annotations": {
            "title": "Get transaction",
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_create_customer",
          "title": "Create customer",
          "description": "WRITE: create a customer (member). customerCode, firstName and lastName are required; the contract's own required-column settings may demand more. Not idempotent: calling twice with a different code creates two customers. POST /customers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "customerCode",
              "firstName",
              "lastName"
            ],
            "properties": {
              "sex": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Sex: 0 = unknown, 1 = male, 2 = female."
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Note."
              },
              "rank": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member rank."
              },
              "note2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Second note."
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member status: 0 = active, 1 = suspended, 2 = card lost, 3 = withdrawn, 4 = merged."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Address."
              },
              "storeId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Store id the customer belongs to."
              },
              "lastKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Last name, kana."
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Last name."
              },
              "postCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Postal code."
              },
              "birthDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Birth date, yyyy-mm-dd."
              },
              "entryDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Enrollment (membership start) date, yyyy-mm-dd; some contracts require it when creating a customer."
              },
              "faxNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Fax number."
              },
              "firstKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "First name, kana."
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "First name."
              },
              "customerNo": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Customer / member number."
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Company name."
              },
              "mailAddress": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "E-mail address."
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Phone number."
              },
              "customerCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Customer code (unique per contract)."
              },
              "mobileNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Mobile number."
              },
              "departmentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Department name."
              },
              "mailReceiveFlag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Whether the customer accepts guidance mail: 0 = refuse, 1 = allow (default)."
              },
              "pointExpireDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Point expiry date, yyyy-mm-dd; some contracts require it when creating a customer."
              }
            }
          },
          "annotations": {
            "title": "Create customer",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_update_customer",
          "title": "Update customer",
          "description": "WRITE: change fields of one customer (only the fields you pass are changed). Overwrites the old values. PATCH /customers/{customer_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "customer_id"
            ],
            "properties": {
              "sex": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Sex: 0 = unknown, 1 = male, 2 = female."
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Note."
              },
              "rank": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member rank."
              },
              "note2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Second note."
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member status: 0 = active, 1 = suspended, 2 = card lost, 3 = withdrawn, 4 = merged."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Address."
              },
              "storeId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Store id the customer belongs to."
              },
              "lastKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Last name, kana."
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Last name."
              },
              "postCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Postal code."
              },
              "birthDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Birth date, yyyy-mm-dd."
              },
              "entryDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Enrollment (membership start) date, yyyy-mm-dd; some contracts require it when creating a customer."
              },
              "faxNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Fax number."
              },
              "firstKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "First name, kana."
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "First name."
              },
              "customerNo": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Customer / member number."
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Company name."
              },
              "customer_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "mailAddress": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "E-mail address."
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Phone number."
              },
              "customerCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Customer code (unique per contract)."
              },
              "mobileNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Mobile number."
              },
              "departmentName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Department name."
              },
              "mailReceiveFlag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Whether the customer accepts guidance mail: 0 = refuse, 1 = allow (default)."
              },
              "pointExpireDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Point expiry date, yyyy-mm-dd; some contracts require it when creating a customer."
              }
            }
          },
          "annotations": {
            "title": "Update customer",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "smaregi_create_product",
          "title": "Create product",
          "description": "WRITE: create a product. categoryId, productName and price are required. Not idempotent. POST /products.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "categoryId",
              "productName",
              "price"
            ],
            "properties": {
              "tag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Tag."
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product URL."
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Unit cost."
              },
              "size": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Size."
              },
              "color": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Color."
              },
              "price": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Selling price."
              },
              "division": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product division: 0 = normal (default), 1 = prepaid multi-use ticket (only contracts with that feature), 2 = option product."
              },
              "catchCopy": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Catch copy."
              },
              "groupCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Group code."
              },
              "categoryId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Category id (smaregi_list_categories)."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Description."
              },
              "displayFlag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Show on the register (0 = hidden, 1 = shown)."
              },
              "productCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product code (unique per contract)."
              },
              "productKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product name, kana."
              },
              "productName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product name."
              },
              "taxDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Tax division code (0 = tax included, 1 = tax excluded, 2 = tax free)."
              },
              "customerPrice": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member price."
              },
              "salesDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Sales accounting: 0 = counted in sales (default), 1 = excluded from sales totals. Does not control whether the product can be sold; use displayFlag to hide it from the register."
              },
              "supplierProductNo": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Supplier's product number."
              },
              "productPriceDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Price division: 1 = standard price (default), 2 = open price."
              },
              "stockControlDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Stock control: 0 = stock is managed (default), 1 = stock is not managed."
              }
            }
          },
          "annotations": {
            "title": "Create product",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "smaregi_update_product",
          "title": "Update product",
          "description": "WRITE: change fields of one product (only the fields you pass are changed), for example its price or name. Overwrites the old values. PATCH /products/{product_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id"
            ],
            "properties": {
              "tag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Tag."
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product URL."
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Unit cost."
              },
              "size": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Size."
              },
              "color": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Color."
              },
              "price": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Selling price."
              },
              "division": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product division: 0 = normal (default), 1 = prepaid multi-use ticket (only contracts with that feature), 2 = option product."
              },
              "catchCopy": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Catch copy."
              },
              "groupCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Group code."
              },
              "categoryId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Category (department) id, see smaregi_list_categories."
              },
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Description."
              },
              "displayFlag": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Show on the register (0 = hidden, 1 = shown)."
              },
              "productCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product code (unique per contract)."
              },
              "productKana": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product name, kana."
              },
              "productName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Product name."
              },
              "taxDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Tax division code (0 = tax included, 1 = tax excluded, 2 = tax free)."
              },
              "customerPrice": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Member price."
              },
              "salesDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Sales accounting: 0 = counted in sales (default), 1 = excluded from sales totals. Does not control whether the product can be sold; use displayFlag to hide it from the register."
              },
              "supplierProductNo": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Supplier's product number."
              },
              "productPriceDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Price division: 1 = standard price (default), 2 = open price."
              },
              "stockControlDivision": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "number"
                  }
                ],
                "description": "Stock control: 0 = stock is managed (default), 1 = stock is not managed."
              }
            }
          },
          "annotations": {
            "title": "Update product",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "smaregi_set_stock",
          "title": "Set stock level",
          "description": "WRITE: set the absolute stock quantity of one product in one store, replacing the current quantity. Use smaregi_adjust_stock for a relative change. PATCH /stock/{product_id}.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id",
              "store_id",
              "stock_amount"
            ],
            "properties": {
              "memo": {
                "type": "string",
                "maxLength": 200,
                "description": "Note stored in the stock history."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "stock_amount": {
                "type": "integer",
                "maximum": 1000000000,
                "minimum": -1000000000,
                "description": "The new quantity."
              }
            }
          },
          "annotations": {
            "title": "Set stock level",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "smaregi_adjust_stock",
          "title": "Adjust stock level",
          "description": "WRITE: add (positive) or subtract (negative) a quantity to the stock of one product in one store. Not idempotent: a repeat applies the change again. POST /stock/{product_id}/add.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "product_id",
              "store_id",
              "stock_amount"
            ],
            "properties": {
              "memo": {
                "type": "string",
                "maxLength": 200,
                "description": "Note stored in the stock history."
              },
              "store_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "product_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "exclusiveMinimum": 0
                  }
                ],
                "description": "Numeric Smaregi id (string or number)."
              },
              "stock_amount": {
                "type": "integer",
                "maximum": 1000000000,
                "minimum": -1000000000,
                "description": "The change: +5 adds five, -3 removes three."
              }
            }
          },
          "annotations": {
            "title": "Adjust stock level",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "getting_started",
          "description": "What you can do with Smaregi here, with example requests to try."
        },
        {
          "name": "review_a_store_s_sales_transactions_for_a_day",
          "description": "The AI lists sales transactions (receipts) for a store in a time window of up to 31 days, and reads one transaction with its line items, discounts and payments."
        },
        {
          "name": "find_products_that_are_low_on_stock",
          "description": "The AI reads stock levels and reserved amounts per store and product, with the product names, and points out the ones running low."
        },
        {
          "name": "check_the_stock_history_of_a_product",
          "description": "The AI reads the stock changes of one product in one store, with date, amount and type such as sale, purchase, transfer or adjustment."
        },
        {
          "name": "add_a_product_or_update_its_details",
          "description": "The AI changes fields of a product, such as its price or name, or creates a product with a category, name and price."
        },
        {
          "name": "set_or_adjust_the_stock_of_a_product_in_a_store",
          "description": "The AI sets the exact stock quantity of a product in a store, or adds or subtracts a quantity from it."
        },
        {
          "name": "add_or_update_a_customer_member",
          "description": "The AI lists customers by code, member number or update time, creates a member, or changes fields of an existing one."
        }
      ]
    },
    "instructions": "Tools for Smaregi, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: \"Show yesterday's sales transactions of my Tokyo store.\"; \"Which products are low on stock in store 2?\"; \"Change the price of product 1042 to 1,980 yen.\". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Smaregi data. Free plan: 50 tool calls per month. Run smaregi_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 smaregi_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 smaregi_upgrade without a plan: it returns both plans, each with a payment link for the user to open. smaregi_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."
}