{
  "name": "The Purple Bear ordering agent",
  "description": "Official agent of The Purple Bear: answers about its menu, prices, hours and locations, and builds a checkout link with the order ready. The customer reviews and pays on the website; nothing is charged here. No account needed.",
  "version": "1.0.0",
  "supportedInterfaces": [
    {
      "url": "https://tpb.control77.com/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    },
    {
      "url": "https://tpb.control77.com/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "0.3"
    }
  ],
  "protocolVersion": "0.3.0",
  "url": "https://tpb.control77.com/a2a",
  "preferredTransport": "JSONRPC",
  "provider": {
    "organization": "The Purple Bear",
    "url": "https://tpb.control77.com"
  },
  "iconUrl": "https://tpb.control77.com/app-icon/192.png",
  "documentationUrl": "https://tpb.control77.com/agents.md",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "extendedAgentCard": false
  },
  "defaultInputModes": [
    "text/plain",
    "application/json"
  ],
  "defaultOutputModes": [
    "text/plain",
    "application/json"
  ],
  "skills": [
    {
      "id": "search_menu",
      "name": "Search the menu",
      "description": "Send a text message with a dish, ingredient, craving or category (e.g. 'something with mango', 'vegan'), or 'menu' to list it. Returns matching items with ids, prices, availability now and the option groups needed to order.",
      "tags": [
        "menu",
        "prices",
        "search",
        "food"
      ],
      "examples": [
        "Do you have anything with mango?",
        "vegan options",
        "menu"
      ],
      "inputModes": [
        "text/plain",
        "application/json"
      ],
      "outputModes": [
        "text/plain",
        "application/json"
      ]
    },
    {
      "id": "business_info",
      "name": "Hours and locations",
      "description": "Ask about hours, address, phone, whether it is open now, pickup or delivery. Or send a data part {\"skill\":\"business_info\"}.",
      "tags": [
        "hours",
        "location",
        "contact"
      ],
      "examples": [
        "Are you open now?",
        "What is your address?"
      ],
      "inputModes": [
        "text/plain",
        "application/json"
      ],
      "outputModes": [
        "text/plain",
        "application/json"
      ]
    },
    {
      "id": "get_menu_item",
      "name": "Menu item details",
      "description": "Send a data part {\"item_id\":\"<id from search_menu>\"} to get its price, options with choice ids, quantity limits and whether it takes a note.",
      "tags": [
        "menu",
        "options"
      ],
      "examples": [
        "{\"item_id\":\"<id>\"}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "text/plain",
        "application/json"
      ]
    },
    {
      "id": "create_checkout_link",
      "name": "Create checkout link",
      "description": "Send a data part {\"items\":[{\"item_id\":\"<id>\",\"quantity\":1,\"options\":{\"<group id>\":[\"<choice id>\"]}}]} (up to 40 lines). Checks it against the live menu and returns a link to this business's checkout page with the cart ready. The customer reviews and pays there; never ask for card details.",
      "tags": [
        "order",
        "checkout",
        "cart"
      ],
      "examples": [
        "{\"items\":[{\"item_id\":\"<id>\",\"quantity\":2}]}"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "text/plain",
        "application/json"
      ]
    }
  ]
}