{"name":"com.kapruka/kapruka-mcp","slug":"kapruka-mcp","title":"Kapruka MCP","description":"Free public MCP server for Kapruka.com — Sri Lanka's largest e-commerce platform.","url":"https://mcp.market/server/kapruka-mcp","rating":null,"grade":"B","score":81,"certified":false,"status":"active","category":"ecommerce","tags":["ecommerce"],"presence":{"score":36,"stars":21,"forks":15,"downloads_week":null,"last_push_at":"2026-09-18T12:42:20.000Z","license":null},"claimed":false,"transport":"remote","callable_via_gateway":true,"default_price_micros":0,"repository":"https://github.com/kapruka/mcp","website":"https://mcp.kapruka.com/","version":"0.4.0","remotes":[{"type":"streamable-http","url":"https://mcp.kapruka.com/mcp"}],"packages":[],"tools":[{"name":"kapruka_check_delivery","description":"Check whether Kapruka can deliver to a given city on a given date, and at what rate.\n\n    Returns the flat delivery rate (LKR), whether the requested date is available,\n    and — if not — the next available date plus reason. Kapruka delivers as a\n    single shipment per order at one flat rate regardless of item count.\n\n    Pass `product_id` whenever the customer has named a product: the answer then\n    also checks that ITEM's delivery scope (restaurant food, hotel cakes and\n    liquor only reach selected cities, typically the Colombo area). With a\n    product_id, `available` is true only if the date is open AND the item is\n    deliverable to that city. When `item_deliverable` is false, offer the\n    customer one of the returned `deliverable_cities` or an island-wide\n    alternative — do not attempt kapruka_create_order with the same city, it\n    will be rejected. An unknown product_id is silently ignored (no item fields\n    in the result), so check `item_deliverable` is present before relying on it.\n\n    Perishable codes (CAKE*, FLOWER*, COMBO*) additionally get a freshness\n    warning when the chosen delivery date is more than 1 day out.\n\n    Args:\n        params (CheckDeliveryInput):\n            - city (str): Canonical city name (e.g. 'Colombo 03', 'Galle')\n            - delivery_date (Optional[str]): YYYY-MM-DD; defaults to today (LK time)\n            - product_id (Optional[str]): Check the city against this item's delivery scope\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Delivery feasibility + rate in the requested format.\n\n        JSON schema:\n        {\n          \"city\": str,\n          \"now\": str,                       # ISO timestamp, Sri Lanka time\n          \"checked_date\": str,              # YYYY-MM-DD\n          \"available\": bool,                # date open AND (if product_id) item deliverable\n          \"rate\": number,                   # flat LKR rate per order\n          \"currency\": \"LKR\",\n          \"reason\": str | null,             # date-block message, else \"This item is not delivered to <City>.\"\n          \"next_available_date\": str|null,  # only for date blocks\n          \"item_deliverable\": bool,         # only when product_id resolved to a real product\n          \"deliverable_cities\": [str],      # only when item_deliverable=false (capped at 60)\n          \"perishable_warning\": str | null  # populated when product_id is perishable\n        }\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/CheckDeliveryInput"}},"required":["params"],"$defs":{"CheckDeliveryInput":{"additionalProperties":false,"properties":{"city":{"description":"Canonical city name (use kapruka_list_delivery_cities to find one). Examples: 'Colombo 03', 'Anuradhapura', 'Galle'.","maxLength":100,"minLength":2,"title":"City","type":"string"},"delivery_date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Target delivery date in ISO format (YYYY-MM-DD), Sri Lanka time. Omit to check today.","title":"Delivery Date"},"product_id":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Product ID to check the city AGAINST THAT ITEM'S delivery scope. Food, hotel cakes and liquor only reach selected cities — always pass this when a customer names a product and a city, and only promise delivery if `available` is true. Also adds a freshness warning for perishable codes (cake/flower/combo) when the date is >1 day out.","title":"Product Id"},"response_format":{"default":"markdown","description":"'markdown' (default) or 'json'","title":"Response Format","type":"string"}},"required":["city"],"title":"CheckDeliveryInput","type":"object"}},"title":"kapruka_check_deliveryArguments"}},{"name":"kapruka_create_order","description":"Create a guest-checkout order on Kapruka and return a click-to-pay link.\n\n    Builds a Kapruka order from the supplied cart + recipient + delivery + sender,\n    then returns a checkout URL the customer opens in a browser to complete payment.\n    No Kapruka account is required. Prices are locked for the lifetime of the link\n    (60 minutes) — the customer pays exactly the quoted grand total even if the\n    catalog price changes meanwhile.\n\n    Free public tier limits: 30 orders per hour per client IP. Cart up to 30 items,\n    quantity up to 99 per item. A fresh idempotency key is generated per call so\n    retries on transient errors return the same checkout URL rather than duplicates.\n\n    Args:\n        params (CreateOrderInput):\n            - cart (list[CartItem]): 1–30 lines. Catalogue line: product_id, quantity (default 1), optional icing_text (cakes only).\n              Custom cake line: custom_cake_request_id + phone — orders the cake Kapruka staff quoted via\n              kapruka_custom_cake_status (status must be 'quoted'; quantity is always 1; never send a price).\n              Lines can be mixed in one order — one delivery fee covers everything; the whole cart must be\n              deliverable to delivery.city. Only place a custom cake order after the customer clearly\n              accepted the quoted total.\n            - recipient (Recipient): name + phone (E.164 +9477… or local 077…)\n            - delivery (Delivery): address, city (must be Kapruka-deliverable — use kapruka_list_delivery_cities), location_type (house/apartment/office/other, default house), date (YYYY-MM-DD, today-or-future Asia/Colombo), optional instructions\n            - sender (Sender): name + anonymous flag\n            - gift_message (Optional[str]): Up to 300 chars\n            - currency (str): LKR (default), USD, GBP, AUD, CAD, EUR\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Order confirmation with checkout URL.\n\n        JSON schema:\n        {\n          \"checkout_url\": str,           # Open in browser to pay (no login required)\n          \"order_ref\": str,              # e.g. \"ORD-20260520-7823\"\n          \"order_id\": str,               # id used by the bank-deposit flow\n          \"summary\": {\n            \"items_total\":   number,\n            \"delivery_fee\":  number,\n            \"addons_total\":  number,\n            \"grand_total\":   number,     # items_total + delivery_fee + addons_total\n            \"currency\":      str\n          },\n          \"expires_at\": str              # ISO 8601 — link stops working after this\n        }\n\n        Error: \"Error (<code>): <message>\" on failure. Common codes:\n          empty_cart, missing_field, past_delivery_date, product_not_found,\n          product_out_of_stock, city_not_deliverable (city not in the network at\n          all), date_not_deliverable, city_not_deliverable_for_item.\n\n        Custom cake lines add: request_not_found (404 — wrong id/phone or staff\n        removed it), quote_not_ready (409 — staff haven't priced it; check\n        kapruka_custom_cake_status later), quote_expired (410 — submit a new\n        kapruka_custom_cake_request). summary.items_total may differ from the\n        quoted cake total by a few rupees (USD round-trip) — quote the summary\n        numbers when asking for payment.\n\n        city_not_deliverable_for_item (HTTP 422): at least one cart item (food /\n        hotel cake / liquor) cannot reach delivery.city. NOTHING is created — the\n        API never places a partial order and neither should you. The error text\n        names every blocking item and lists the cities the whole cart CAN go to.\n        Tell the customer which item blocks the order and offer to (a) change the\n        city to one of those, or (b) remove/replace that item. Never retry with\n        the same city. Avoid this entirely by calling kapruka_check_delivery with\n        `product_id` for each limited item before ordering.\n    ","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/CreateOrderInput"}},"required":["params"],"$defs":{"CartItem":{"additionalProperties":false,"description":"One cart line — EITHER a catalogue product OR a quoted custom cake.\n\nCatalogue line:   {\"product_id\": \"...\", \"quantity\": 1, \"icing_text\": \"...\"}\nCustom cake line: {\"custom_cake_request_id\": \"...\", \"phone\": \"+9477...\"}\nThe custom cake line is turned into the staff-quoted cake server-side\n(name, picture, price); quantity is always 1 and no price is ever sent.","properties":{"product_id":{"anyOf":[{"maxLength":80,"minLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"Kapruka product ID (e.g. 'cakeXX000000'). Catalogue line.","title":"Product Id"},"quantity":{"anyOf":[{"maximum":99,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Quantity (1–99, default 1). Catalogue lines only.","title":"Quantity"},"icing_text":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Cake icing text. Silently ignored for non-cake products. Catalogue lines only.","title":"Icing Text"},"custom_cake_request_id":{"anyOf":[{"maxLength":80,"minLength":6,"type":"string"},{"type":"null"}],"default":null,"description":"request_id of a custom cake that kapruka_custom_cake_status reports as 'quoted'. Orders the staff-quoted cake (quantity 1). Requires `phone`.","title":"Custom Cake Request Id"},"phone":{"anyOf":[{"maxLength":30,"minLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"The customer.phone the custom cake request was made with (custom cake lines only).","title":"Phone"}},"title":"CartItem","type":"object"},"CreateOrderInput":{"additionalProperties":false,"properties":{"cart":{"description":"1–30 items.","items":{"$ref":"#/$defs/CartItem"},"maxItems":30,"minItems":1,"title":"Cart","type":"array"},"recipient":{"$ref":"#/$defs/Recipient"},"delivery":{"$ref":"#/$defs/Delivery"},"sender":{"$ref":"#/$defs/Sender"},"gift_message":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Optional gift card message.","title":"Gift Message"},"currency":{"default":"LKR","description":"Pricing currency. Supported: LKR, USD, GBP, AUD, CAD, EUR.","title":"Currency","type":"string"},"response_format":{"default":"markdown","description":"'markdown' (default) or 'json'.","title":"Response Format","type":"string"}},"required":["cart","recipient","delivery","sender"],"title":"CreateOrderInput","type":"object"},"Delivery":{"additionalProperties":false,"properties":{"address":{"description":"Street address.","maxLength":250,"minLength":3,"title":"Address","type":"string"},"city":{"description":"Must be a Kapruka delivery city (canonical name from kapruka_list_delivery_cities) that EVERY cart item can reach. The order ships as one shipment, so food / hotel cake / liquor items restrict the whole cart to their city set — verify with kapruka_check_delivery(city, product_id) first; otherwise the order is rejected with city_not_deliverable_for_item.","maxLength":100,"minLength":2,"title":"City","type":"string"},"location_type":{"default":"house","description":"One of: house, apartment, office, other.","title":"Location Type","type":"string"},"date":{"description":"Delivery date in YYYY-MM-DD (Asia/Colombo). Must be today or future.","title":"Date","type":"string"},"instructions":{"anyOf":[{"maxLength":250,"type":"string"},{"type":"null"}],"default":null,"description":"Free-form delivery instructions.","title":"Instructions"}},"required":["address","city","date"],"title":"Delivery","type":"object"},"Recipient":{"additionalProperties":false,"properties":{"name":{"description":"Recipient name shown on the order.","maxLength":80,"minLength":1,"title":"Name","type":"string"},"phone":{"description":"Recipient phone — E.164 (+9477…) or local SL (077…) format.","maxLength":30,"minLength":7,"title":"Phone","type":"string"}},"required":["name","phone"],"title":"Recipient","type":"object"},"Sender":{"additionalProperties":false,"properties":{"name":{"description":"Sender name on the gift card.","maxLength":80,"minLength":1,"title":"Name","type":"string"},"anonymous":{"default":false,"description":"If true, gift card shows 'Anonymous' instead of the sender name.","title":"Anonymous","type":"boolean"}},"required":["name"],"title":"Sender","type":"object"}},"title":"kapruka_create_orderArguments"}},{"name":"kapruka_get_product","description":"Fetch full details for a single Kapruka product by its product ID.\n\n    Returns name, description, price (with optional currency conversion), stock status,\n    images, variants, shipping info, delivery scope, and a direct product URL.\n\n    Delivery scope: most gifts ship island-wide, but restaurant food, hotel cakes\n    and liquor only reach a limited city set (typically the Colombo area). The\n    `delivery` object is the authority — search results do NOT carry it. When\n    `delivery.island_wide` is false, tell the customer up front that the item is\n    delivered only to selected cities, and confirm their city with\n    kapruka_check_delivery(city, product_id) before promising anything. If\n    `deliverable_city_count` exceeds the returned list, the list is truncated —\n    say \"and more\", don't treat it as complete.\n\n    Note: Some IDs starting with 'CATSYM' are category landing pages, not purchasable\n    products — this tool will flag those clearly.\n\n    Args:\n        params (GetProductInput):\n            - product_id (str): Kapruka product ID (e.g. 'cakeXX000000')\n            - currency (str): Price currency — LKR (default), USD, GBP, AUD, CAD, EUR\n            - type (Optional[str]): Optional type hint (e.g. 'specialgifts')\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Product details in the requested format.\n\n        JSON schema:\n        {\n          \"id\": str,\n          \"name\": str,\n          \"description\": str,\n          \"summary\": str,\n          \"price\": {\"amount\": float, \"currency\": str},\n          \"compare_at_price\": {\"amount\": float, \"currency\": str} | null,\n          \"in_stock\": bool,\n          \"stock_level\": str,           # \"low\" | \"medium\" | \"high\"\n          \"category\": {\"id\": str, \"name\": str, \"slug\": str, \"path\": str},\n          \"variants\": [{\"id\": str, \"name\": str, \"sku\": str, \"price\": {...},\n                        \"in_stock\": bool, \"stock_level\": str, \"attributes\": {...}}],\n          \"images\": [str],              # list of full-resolution image URLs\n          \"attributes\": {\"type\": str, \"subtype\": str, \"weight\": str, \"vendor\": str},\n          \"shipping\": {\"ships_from\": str, \"ships_internationally\": bool, \"restricted_countries\": [str]},\n          \"delivery\": {\n            \"island_wide\": bool,\n            \"deliverable_city_count\": int,   # only when island_wide=false; TRUE total\n            \"deliverable_cities\": [str]      # only when island_wide=false; capped at 60\n          },\n          \"rating\": null,\n          \"url\": str\n        }\n\n        Error: \"Error: <message>\" on failure.\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/GetProductInput"}},"required":["params"],"$defs":{"GetProductInput":{"additionalProperties":false,"properties":{"product_id":{"description":"Kapruka product ID (e.g. 'cakeXX000000', 'EF_PC_CHOC0V2774P00065')","maxLength":80,"minLength":3,"title":"Product Id","type":"string"},"currency":{"default":"LKR","description":"Price currency. Supported: LKR, USD, GBP, AUD, CAD, EUR","title":"Currency","type":"string"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional product type hint passed to the API (e.g. 'specialgifts'). Rarely needed.","title":"Type"},"response_format":{"default":"markdown","description":"'markdown' for human-readable output, 'json' for raw structured data.","title":"Response Format","type":"string"}},"required":["product_id"],"title":"GetProductInput","type":"object"}},"title":"kapruka_get_productArguments"}},{"name":"kapruka_list_categories","description":"List top-level Kapruka product categories by name with browse URLs.\n\n    Returns category names (usable as the `category` filter on kapruka_search_products)\n    plus the public Kapruka.com URL for each category landing page — useful for shopping\n    agents that want to send users directly to a category to browse. Internal IDs and\n    product counts are not exposed. Results are cached for 30 minutes server-side.\n\n    Args:\n        params (ListCategoriesInput):\n            - depth (int): Sub-category levels to include, 1 or 2 (default 1)\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Category tree in the requested format.\n\n        JSON schema:\n        {\n          \"categories\": [\n            {\n              \"name\": str,\n              \"url\": str,                  # kapruka.com category landing page\n              \"children\": [{\"name\": str, \"url\": str, \"children\": [...]}]\n            }\n          ]\n        }\n\n        Error: \"Error: <message>\" on failure.\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/ListCategoriesInput"}},"required":["params"],"$defs":{"ListCategoriesInput":{"additionalProperties":false,"properties":{"depth":{"default":1,"description":"How many levels of sub-categories to include (1 or 2). Default 1.","maximum":2,"minimum":1,"title":"Depth","type":"integer"},"response_format":{"default":"markdown","description":"'markdown' for human-readable output, 'json' for raw structured data.","title":"Response Format","type":"string"}},"title":"ListCategoriesInput","type":"object"}},"title":"kapruka_list_categoriesArguments"}},{"name":"kapruka_list_delivery_cities","description":"List or search Sri Lankan cities Kapruka delivers to.\n\n    Use the `query` param to filter (e.g. \"colombo\" → all Colombo zones,\n    \"anur\" → Anuradhapura). Without a query you get the first 25 cities\n    alphabetically, which is rarely what an agent needs — pass a query.\n\n    Returns canonical city names (use these as the `city` argument to\n    kapruka_check_delivery) plus any common aliases / vernacular spellings.\n\n    Args:\n        params (ListDeliveryCitiesInput):\n            - query (Optional[str]): Partial match filter\n            - limit (int): Max results, 1–50 (default 25)\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Cities list in the requested format.\n\n        JSON schema:\n        {\n          \"cities\": [{\"name\": str, \"aliases\": [str]}],\n          \"total_matched\": int,\n          \"showing\": int\n        }\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/ListDeliveryCitiesInput"}},"required":["params"],"$defs":{"ListDeliveryCitiesInput":{"additionalProperties":false,"properties":{"query":{"anyOf":[{"maxLength":50,"type":"string"},{"type":"null"}],"default":null,"description":"Filter cities by partial match against name or aliases (case-insensitive). Omit to see the first `limit` cities alphabetically.","title":"Query"},"limit":{"default":25,"description":"Max cities to return (1–50).","maximum":50,"minimum":1,"title":"Limit","type":"integer"},"response_format":{"default":"markdown","description":"'markdown' (default) or 'json'","title":"Response Format","type":"string"}},"title":"ListDeliveryCitiesInput","type":"object"}},"title":"kapruka_list_delivery_citiesArguments"}},{"name":"kapruka_render_options_card","description":"Render 1-4 products as ONE shareable JPEG \"menu\" card and return its URL.\n\n    The card shows each product's photo with a big numbered badge (the ref you\n    assign), and its name + price printed under the photo. Built for chat\n    commerce (WhatsApp): send the image, tell the customer \"reply 1, 2 or 3\",\n    and they pick without opening links. No AI is involved — the image is\n    server-composited from the live catalog data, so prices match what the\n    product tools return.\n\n    Ref numbering contract: refs are yours to assign — use sequential numbers\n    per conversation and NEVER reuse one (if the first card was 1-3, the next\n    card starts at 4). A number must keep meaning the same product for the whole\n    conversation.\n\n    Args:\n        params (RenderOptionsCardInput):\n            - items (list[CardProduct]): 1-4 of {product_id, ref}\n            - currency (str): LKR (default), USD, GBP, AUD, CAD, EUR\n\n    Returns:\n        str: JSON:\n        {\n          \"card_url\": str,              # public JPEG URL — send this as the image\n          \"items\": [{\"ref\": int, \"product_id\": str, \"name\": str,\n                      \"price\": {\"amount\": float, \"currency\": str}, \"url\": str}],\n          \"unavailable\": [str]          # product_ids that failed to load (omitted from card)\n        }\n\n        Error: \"Error: <message>\" when no product could be loaded.\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/RenderOptionsCardInput"}},"required":["params"],"$defs":{"CardProduct":{"additionalProperties":false,"properties":{"product_id":{"description":"Kapruka product ID (from a search result).","maxLength":80,"minLength":3,"title":"Product Id","type":"string"},"ref":{"description":"The reference number to print on this product's badge (customer replies with it). Assign sequentially per conversation and NEVER reuse a number.","maximum":99,"minimum":1,"title":"Ref","type":"integer"}},"required":["product_id","ref"],"title":"CardProduct","type":"object"},"RenderOptionsCardInput":{"additionalProperties":false,"properties":{"items":{"description":"1-4 products to show side by side.","items":{"$ref":"#/$defs/CardProduct"},"maxItems":4,"minItems":1,"title":"Items","type":"array"},"currency":{"default":"LKR","description":"Price currency: LKR, USD, GBP, AUD, CAD, EUR.","title":"Currency","type":"string"}},"required":["items"],"title":"RenderOptionsCardInput","type":"object"}},"title":"kapruka_render_options_cardArguments"}},{"name":"kapruka_search_products","description":"Search for products on Kapruka.com by keyword, with optional category filter and pagination.\n\n    Returns a ranked list of matching products with prices, stock status, images, and URLs.\n    Supports cursor-based pagination — pass next_cursor from one response into the next call.\n    Pagination is capped at 3 pages per query to discourage catalog enumeration; for broader\n    discovery, refine the query or filter by category instead.\n\n    Queries must be at least 3 characters and contain specific terms — pure stopword queries\n    (e.g. \"the\", \"a an\") are rejected.\n\n    By default, category landing pages (CATSYM entries with price=0) are filtered out so results\n    contain only purchasable products. Set include_stubs=true to include them.\n\n    Search results carry NO delivery-scope information. Food, hotel cakes and liquor\n    are delivered only to selected cities — never infer deliverability from a search\n    hit. Before quoting delivery on a specific item, call kapruka_get_product (read\n    `delivery.island_wide`) or kapruka_check_delivery with `product_id`.\n\n    Args:\n        params (SearchProductsInput):\n            - q (str): Search query (e.g. 'birthday cake', 'roses', 'tea gift'). Min 3 chars.\n            - category (Optional[str]): Category filter (e.g. 'Birthday', 'Flowers')\n            - limit (int): Results per page, 1–50 (default 10)\n            - cursor (Optional[str]): Pagination cursor from previous response\n            - currency (str): LKR (default), USD, GBP, AUD, CAD, EUR\n            - min_price (Optional[float]): Min price (inclusive) in the requested currency\n            - max_price (Optional[float]): Max price (inclusive) in the requested currency\n            - in_stock_only (bool): Restrict to in-stock items (default false)\n            - sort (str): 'relevance' | 'price_asc' | 'price_desc' | 'newest' | 'bestseller'\n            - include_stubs (bool): Include category landing pages (default false)\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Search results in the requested format.\n\n        JSON schema:\n        {\n          \"results\": [\n            {\n              \"id\": str,\n              \"name\": str,\n              \"summary\": str,\n              \"price\": {\"amount\": float | null, \"currency\": str},\n              \"compare_at_price\": {\"amount\": float, \"currency\": str} | null,\n              \"in_stock\": bool,\n              \"stock_level\": str,\n              \"image_url\": str | null,\n              \"category\": {\"id\": str, \"name\": str, \"slug\": str},\n              \"rating\": null,\n              \"ships_internationally\": bool,\n              \"url\": str\n            }\n          ],\n          \"next_cursor\": str | null,    # null after page 3 even if upstream has more\n          \"applied_filters\": {\"q\": str, \"limit\": int, \"in_stock_only\": bool}\n        }\n\n        Error: \"Error: <message>\" or \"No products found for '<query>'\" on failure.\n    ","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/SearchProductsInput"}},"required":["params"],"$defs":{"SearchProductsInput":{"additionalProperties":false,"properties":{"q":{"description":"Search query (e.g. 'birthday cake', 'roses', 'chocolates for mom'). Min 3 characters, must contain specific terms (not stopwords only).","maxLength":200,"minLength":3,"title":"Q","type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by category name (e.g. 'Birthday', 'Cakes', 'Flowers'). Case-insensitive.","title":"Category"},"limit":{"default":10,"description":"Number of results to return (1–50).","maximum":50,"minimum":1,"title":"Limit","type":"integer"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Pagination cursor from a previous search response's 'next_cursor' field.","title":"Cursor"},"currency":{"default":"LKR","description":"Price currency. Supported: LKR, USD, GBP, AUD, CAD, EUR","title":"Currency","type":"string"},"min_price":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Minimum price (inclusive), in the requested currency.","title":"Min Price"},"max_price":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Maximum price (inclusive), in the requested currency.","title":"Max Price"},"in_stock_only":{"default":false,"description":"If true, only return products currently in stock.","title":"In Stock Only","type":"boolean"},"sort":{"default":"relevance","description":"Sort order: 'relevance' (default), 'price_asc', 'price_desc', 'newest', 'bestseller'.","title":"Sort","type":"string"},"include_stubs":{"default":false,"description":"If false (default), category landing pages (CATSYM entries, price=0) are filtered out.","title":"Include Stubs","type":"boolean"},"response_format":{"default":"markdown","description":"'markdown' for human-readable output, 'json' for raw structured data.","title":"Response Format","type":"string"}},"required":["q"],"title":"SearchProductsInput","type":"object"}},"title":"kapruka_search_productsArguments"}},{"name":"kapruka_track_order","description":"Look up status and delivery progress for a Kapruka order by order number.\n\n    Returns current status (received / confirmed / out-for-delivery / delivered /\n    cancelled), the recipient and delivery details on file, a timestamped progress\n    timeline, the cart contents, and flags for whether a delivery photo or video is\n    available. Use this after a customer has placed and paid for an order and reads\n    back the order number from their confirmation email or the order complete page.\n\n    The order number is NOT the `order_ref` returned by kapruka_create_order\n    (which is the pre-payment checkout reference). Once the customer completes\n    payment in the browser, Kapruka emails them a separate order number — that\n    is what this tool expects.\n\n    Args:\n        params (TrackOrderInput):\n            - order_number (str): Kapruka order number (e.g. 'VIMP34456CB2')\n            - response_format (str): 'markdown' (default) or 'json'\n\n    Returns:\n        str: Order tracking details in the requested format.\n\n        JSON schema:\n        {\n          \"order_number\": str,\n          \"pnref\": str,                 # internal payment reference (numeric; not the same as order_number)\n          \"status\": str,                # received | confirmed | shipped | delivered | cancelled | ...\n          \"status_display\": str,        # human label\n          \"order_date\": str,            # human-formatted, Asia/Colombo\n          \"delivery_date\": str,         # human-formatted\n          \"shipped_date\": str | null,\n          \"amount\": str,                # LKR string (e.g. \"15500.00\")\n          \"payment_method\": str,\n          \"comments\": str | null,\n          \"recipient\": {\"name\": str, \"phone\": str, \"address\": str, \"city\": str},\n          \"greeting_message\": str | null,\n          \"special_instructions\": str | null,\n          \"progress\": [{\"step\": str, \"timestamp\": str}],\n          \"live_tracking_available\": bool,\n          \"has_delivery_video\": bool,\n          \"has_delivery_photo\": bool,\n          \"items\": [{\"product_id\": str, \"name\": str, \"quantity\": int, \"selling_price\": float}]\n        }\n\n        Error: \"Error: <message>\" on failure (e.g. order not found).\n    ","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"params":{"$ref":"#/$defs/TrackOrderInput"}},"required":["params"],"$defs":{"TrackOrderInput":{"additionalProperties":false,"properties":{"order_number":{"description":"Order number from the customer's Kapruka order confirmation email or the order complete page on kapruka.com (e.g. 'VIMP34456CB2'). This is NOT the same as the order_ref returned by kapruka_create_order — the customer must complete payment first; the Kapruka order number is then emailed to them.","maxLength":40,"minLength":4,"title":"Order Number","type":"string"},"response_format":{"default":"markdown","description":"'markdown' (default) or 'json'.","title":"Response Format","type":"string"}},"required":["order_number"],"title":"TrackOrderInput","type":"object"}},"title":"kapruka_track_orderArguments"}}],"scan":{"score":81,"grade":"B","scanned_at":"2026-09-19T09:53:17.260Z","report":{"scannerVersion":"0.1.3","scannedAt":"2026-09-19T09:53:17.161Z","components":{"code":{"score":-1,"max":25,"notes":["remote-only server, no package to scan"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 770ms"]},"poisoning":{"score":13,"max":15,"notes":["8 tool descriptions checked"]},"auth":{"score":3,"max":15,"notes":["open endpoint exposes 2 write-action tools with no auth"]},"maintenance":{"score":15,"max":15,"notes":["last push 1 days ago"]},"identity":{"score":10,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year","website matches verified namespace"]}},"findings":[{"id":"auth.open-write","severity":"high","component":"auth","title":"Write-action tools reachable without authentication"},{"id":"poison.long-description","severity":"low","component":"poisoning","title":"Unusually long tool description (over 2,000 characters)","evidence":"tool kapruka_get_product: …Fetch full details for a single Kapruka product by its product ID. Returns name, description, price (with optional currency conversion), stock status, images, variants, shipping info, delivery scope, and a direct product URL. Delivery scope: most gifts ship island-wide, but restaurant food, hotel cakes and liquor only reach a limited city set (typically the Colombo area). The `delivery` object is the authority — search results do NOT carry it. When `delivery.island_wide` is false, tell the customer up front that the item is delivered only to selected cities, and confirm their city with kapruka_check_delivery(city, product_id) before promising anything. If `deliverable_city_count` exceeds the returned list, the list is truncated — say \"and more\", don't treat it as complete. Note: Some IDs starting with 'CATSYM' are category landing pages, not purchasable products — this tool will flag those clearly. Args: params (GetProductInput): - product_id (str): Kapruka product ID (e.g. 'cakeXX000000') - currency (str): Price currency — LKR (default), USD, GBP, AUD, CAD, EUR - type (Optional[str]): Optional type hint (e.g. 'specialgifts') - response_format (str): 'markdown' (default) or 'json' Returns: str: Product details in the requested format. JSON schema: { \"id\": str, \"name\": str, \"description\": str, \"summary\": str, \"price\": {\"amount\": float, \"currency\": str}, \"compare_at_price\": {\"amount\": float, \"currency\": str} | null, \"in_stock\": bool, \"stock_level\": str, # \"low\" | \"medium\" | \"high\" \"category\": {\"id\": str, \"name\": str, \"slug\": str, \"path\": str}, \"variants\": [{\"id\": str, \"name\": str, \"sku\": str, \"price\": {...}, \"in_stock\": bool, \"stock_level\": str, \"attributes\": {...}}], \"images\": [str], # list of full-resolution image URLs \"attributes\": {\"type\": str, \"subtype\": str, \"weight\": str, \"vendor\": str}, \"shipping\": {\"ships_from\": str, \"ships_internationally\": bool, \"restricted_countries\": [str]}, \"delivery\": { \"island_wide\": bool, \"deliverable_city_count\": int, # only when island_wide=false; TRUE total \"deliverable_cities\": [str] # only when island_wide=false; capped at 60 }, \"rating\": null, \"url\": str } Error: \"Error: <message>\" on failure. …"}],"inputs":{"probes":[{"url":"https://mcp.kapruka.com/mcp","reachable":true,"authRequired":false,"latencyMs":770,"serverInfo":{"name":"kapruka_mcp","version":"1.30.0"}}],"packages":[],"repo":{"found":true,"owner":"kapruka","repo":"mcp","archived":false,"pushedAt":"2026-09-18T12:42:20Z","stars":21,"forks":15,"openIssues":4,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/54682880?v=4","ownerCreatedAt":"2019-08-29T17:53:09Z"},"icon":{"url":"https://www.kapruka.com/static/icons/apple-touch-icon-180x180.png?v2","source":"site","width":180,"height":180},"presence":{"stars":21,"forks":15,"downloadsWeek":null,"license":null,"lastPushAt":"2026-09-18T12:42:20.000Z","score":36}}}},"grade_history":[],"reviews":[]}