{
  "tools": [
    {
      "name": "search_cards",
      "title": "Search ready-made cards",
      "description": "Search Snailgram's ready-made greeting cards by words (forgiving typos, e.g. \"30th birthday\", \"cat\", \"christmas\") and/or occasion. Each result has a cover image, a details page and a link to personalise it. Every card costs A$8.99 with regular post (untracked) anywhere in Australia included; tracked Express Post is A$8 more. If nothing fits, start_card can make a new cover from a description.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 200,
            "description": "Words to search for. Leave out to list cards."
          },
          "occasion": {
            "type": "string",
            "enum": [
              "thinking",
              "birthday",
              "love",
              "christmas",
              "congrats",
              "fun"
            ],
            "description": "Only cards for this occasion."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "delivery_dates",
      "title": "Delivery dates",
      "description": "When a card ordered now is posted and the earliest day it can arrive at an Australian postcode, counting business days and public holidays. The dates are for Express Post; regular post usually takes about three business days more. Give arrive_by to learn the last day to order for that date, and whether it can still make it. For a card overseas there is no postcode: it goes by International post (untracked) and usually arrives 15 days or more after the posting day this gives.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "postcode": {
            "type": "string",
            "pattern": "^\\d{4}$",
            "description": "The recipient's 4-digit Australian postcode."
          },
          "arrive_by": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Optional date it should arrive by, YYYY-MM-DD."
          }
        },
        "required": [
          "postcode"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "start_card",
      "title": "Start a card",
      "description": "A link to the Snailgram studio where the person finishes their card: either a ready-made card (card_id from search_cards) or a new cover made from a one-sentence description. In the studio they write their own message, enter the address, choose the arrival day and pay. Give them the link; this tool orders nothing.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "card_id": {
            "type": "string",
            "description": "A ready-made card's id, from search_cards."
          },
          "cover": {
            "type": "string",
            "maxLength": 140,
            "description": "Or a one-sentence description of a new cover, e.g. \"a corgi in a party hat surfing at Bondi\". Not the message inside."
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "buy_card",
      "title": "Buy a card with Stripe or USDC",
      "description": "Prepare the HTTP request to buy a ready-made card or use the person's own image. Choose payment stripe to POST for a hosted payment_url that the buyer opens to pay in AUD through Stripe (Link when enabled). Or choose usdc (default) for an x402 client to pay USDC on Base. A$8.99 posted in Australia; Express Post A$8 more, International post A$6 more. Confirm the recipient, message and price first. This tool only returns a request: it creates no order and pays nothing. Preserve the returned Idempotency-Key for Stripe retries.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "payment": {
            "type": "string",
            "enum": [
              "usdc",
              "stripe"
            ],
            "default": "usdc",
            "description": "stripe returns a request for a buyer-paid checkout URL; usdc returns an x402 purchase request."
          },
          "card_id": {
            "type": "string",
            "description": "A ready-made card's id, from search_cards. Leave out to use the person's own image."
          },
          "message": {
            "type": "string",
            "maxLength": 800,
            "description": "The message written inside, in the sender's own words, up to 160 characters on a fun size card. Never write it for them."
          },
          "sign_off": {
            "type": "string",
            "maxLength": 40,
            "description": "Optional, like \"Love, Sam\"."
          },
          "sender_name": {
            "type": "string",
            "maxLength": 100,
            "description": "Who it's from, for the envelope."
          },
          "email": {
            "type": "string",
            "description": "The buyer's email, for the receipt and tracking."
          },
          "recipient": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "street": {
                "type": "string"
              },
              "suburb": {
                "type": "string",
                "description": "Suburb, or town or city overseas."
              },
              "state": {
                "type": "string",
                "description": "In Australia: NSW, VIC, QLD, WA, SA, TAS, ACT or NT."
              },
              "postcode": {
                "type": "string"
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$",
                "description": "Two-letter code; AU if left out."
              }
            },
            "required": [
              "name",
              "street",
              "suburb"
            ]
          },
          "postage": {
            "type": "string",
            "enum": [
              "regular",
              "express",
              "international"
            ],
            "description": "regular (untracked, the default in Australia), express (tracked), or international (overseas)."
          },
          "arrive_by": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Optional YYYY-MM-DD; defaults to the earliest."
          },
          "handwriting": {
            "type": "string",
            "description": "Optional handwriting style; easy (the default) or quick are always offered."
          },
          "card_size": {
            "type": "string",
            "enum": [
              "5x7",
              "fun"
            ],
            "description": "5x7 (default) or fun, 2″ × 3″."
          }
        },
        "required": [
          "message",
          "sender_name",
          "email",
          "recipient"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": true
      }
    },
    {
      "name": "about_snailgram",
      "title": "About Snailgram",
      "description": "The facts about Snailgram: price, card sizes, covers, message length, delivery, tracking, payment, privacy and contact. Use it rather than guessing.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      }
    }
  ]
}
