Skip to main content
Glama

Tanatasa Beauty

start_checkout

Idempotent

Fastest way to buy: send the whole basket (items [{variant_id, quantity}]) and the buyer's details (name, email, phone, Singapore address) in one call. Creates the cart, quotes it and starts checkout; no account needed. Returns checkout_id, details_version, total, buyer_summary and, for guests, a private guest_token to pass on later calls. Delivery is free anywhere in Singapore with no minimum spend, so prices shown are delivered prices. Does not charge anything. Next: show the buyer buyer_summary; after they approve, prepare_payment.

Input Schema

NameRequiredDescriptionDefault
itemsYesThe whole basket: up to 20 variants. A variant listed twice is added together.
detailsNoThe buyer's contact and Singapore delivery details. Include them: the result is then ready for the buyer's approval and prepare_payment.
use_creditNoUse the signed-in customer's cashback credit (default true).
coupon_codeNoA coupon code or a friend's referral code to apply; null removes both. quote_cart previews it; create_checkout applies it.
guest_tokenNoPrivate guest session token from create_cart. Retain for cart, checkout and purchase-status calls; no account login needed.
account_tokenNoPrivate account token from sign_in, after the customer gave you the code from their email. Lets quotes and checkout use their cashback credit, and opens their orders.
idempotency_keyYesA new random key per purchase. Retry with the same key and exact input; never reuse it for a different purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "anyOf": [
      -    {
      -      "$schema": "http://json-schema.org/draft-07/schema#",
      -      "additionalProperties": true,
      -      "properties": {
      -        "buyer_details": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "properties": {
      -                "contact": {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "email": {
      -                      "type": "string"
      -                    },
      -                    "name": {
      -                      "type": "string"
      -                    },
      -                    "phone": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "name",
      -                    "email",
      -                    "phone"
      -                  ],
      -                  "type": "object"
      -                },
      -                "delivery": {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "address_line1": {
      -                      "type": "string"
      -                    },
      -                    "postal_code": {
      -                      "type": "string"
      -                    },
      -                    "unit_number": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "address_line1",
      -                    "postal_code"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "contact",
      -                "delivery"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "buyer_summary": {
      -          "type": "string"
      -        },
      -        "cart_id": {
      -          "type": "string"
      -        },
      -        "cart_url": {
      -          "anyOf": [
      -            {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "checkout_id": {
      -          "type": "string"
      -        },
      -        "checkout_status": {
      -          "enum": [
      -            "cancelled",
      -            "confirmed",
      -            "cart_changed",
      -            "payment_pending",
      -            "ready_for_payment",
      -            "details_required"
      -          ],
      -          "type": "string"
      -        },
      -        "checkout_url": {
      -          "anyOf": [
      -            {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "confirmation_url": {
      -          "anyOf": [
      -            {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "currency": {
      -          "const": "SGD",
      -          "type": "string"
      -        },
      -        "details_version": {
      -          "type": "integer"
      -        },
      -        "expires_at": {
      -          "format": "date-time",
      -          "type": "string"
      -        },
      -        "guest_token": {
      -          "type": "string"
      -        },
      -        "handoff_options": {
      -          "items": {
      -            "additionalProperties": true,
      -            "properties": {
      -              "available": {
      -                "type": "boolean"
      -              },
      -              "buyer_action": {
      -                "type": "string"
      -              },
      -              "path": {
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "url": {
      -                "anyOf": [
      -                  {
      -                    "format": "uri",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "path",
      -              "available"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "money_unit": {
      -          "const": "cents",
      -          "type": "string"
      -        },
      -        "next_action": {
      -          "type": "string"
      -        },
      -        "order_id": {
      -          "type": "string"
      -        },
      -        "payment_confirmed": {
      -          "type": "boolean"
      -        },
      -        "payment_status": {
      -          "type": "string"
      -        },
      -        "payment_url": {
      -          "anyOf": [
      -            {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "payment_url_expires_at": {
      -          "anyOf": [
      -            {
      -              "format": "date-time",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "quote": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "buyer_summary": {
      -              "type": "string"
      -            },
      -            "cart_id": {
      -              "type": "string"
      -            },
      -            "checkout_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "coupon_code": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "currency": {
      -              "const": "SGD",
      -              "type": "string"
      -            },
      -            "delivery_estimate": {
      -              "additionalProperties": true,
      -              "properties": {
      -                "estimated_delivery_date": {
      -                  "description": "Estimated Singapore delivery date, YYYY-MM-DD; not a guarantee.",
      -                  "type": "string"
      -                },
      -                "working_days": {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "max": {
      -                      "type": "integer"
      -                    },
      -                    "min": {
      -                      "type": "integer"
      -                    }
      -                  },
      -                  "required": [
      -                    "min",
      -                    "max"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "working_days",
      -                "estimated_delivery_date"
      -              ],
      -              "type": "object"
      -            },
      -            "discount": {
      -              "description": "Integer SGD cents; 1690 means S$16.90.",
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "discounts": {
      -              "items": {
      -                "additionalProperties": true,
      -                "properties": {
      -                  "amount": {
      -                    "description": "Integer SGD cents; 1690 means S$16.90.",
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "code": {
      -                    "type": "string"
      -                  },
      -                  "description": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "code",
      -                  "amount",
      -                  "description"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "free_delivery": {
      -              "const": true,
      -              "type": "boolean"
      -            },
      -            "lines": {
      -              "items": {
      -                "additionalProperties": true,
      -                "properties": {
      -                  "available": {
      -                    "type": "boolean"
      -                  },
      -                  "brand": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "compare_at_price": {
      -                    "anyOf": [
      -                      {
      -                        "description": "Integer SGD cents; 1690 means S$16.90.",
      -                        "minimum": 0,
      -                        "type": "integer"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Integer SGD cents; 1690 means S$16.90."
      -                  },
      -                  "condition": {
      -                    "type": "string"
      -                  },
      -                  "condition_label": {
      -                    "type": "string"
      -                  },
      -                  "currency": {
      -                    "const": "SGD",
      -                    "type": "string"
      -                  },
      -                  "delivery_working_days": {
      -                    "type": "integer"
      -                  },
      -                  "expiry": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "fulfilment": {
      -                    "additionalProperties": true,
      -                    "properties": {
      -                      "code": {
      -                        "type": "string"
      -                      },
      -                      "label": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "code",
      -                      "label"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "gtin": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "image": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": true,
      -                        "properties": {
      -                          "alt": {
      -                            "type": [
      -                              "string",
      -                              "null"
      -                            ]
      -                          },
      -                          "height": {
      -                            "anyOf": [
      -                              {
      -                                "exclusiveMinimum": 0,
      -                                "type": "integer"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ]
      -                          },
      -                          "mime_type": {
      -                            "description": "MIME type inferred from the stored image URL extension; null when unknown.",
      -                            "type": [
      -                              "string",
      -                              "null"
      -                            ]
      -                          },
      -                          "url": {
      -                            "format": "uri",
      -                            "type": "string"
      -                          },
      -                          "width": {
      -                            "anyOf": [
      -                              {
      -                                "exclusiveMinimum": 0,
      -                                "type": "integer"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ]
      -                          }
      -                        },
      -                        "required": [
      -                          "url",
      -                          "alt",
      -                          "width",
      -                          "height",
      -                          "mime_type"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "image_url": {
      -                    "anyOf": [
      -                      {
      -                        "format": "uri",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "line_total": {
      -                    "description": "Integer SGD cents; 1690 means S$16.90.",
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "max_quantity": {
      -                    "type": "integer"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "option_name": {
      -                    "type": "string"
      -                  },
      -                  "product_id": {
      -                    "type": "integer"
      -                  },
      -                  "product_name": {
      -                    "type": "string"
      -                  },
      -                  "quantity": {
      -                    "type": "integer"
      -                  },
      -                  "sku": {
      -                    "type": "string"
      -                  },
      -                  "slug": {
      -                    "type": "string"
      -                  },
      -                  "stock_source": {
      -                    "type": "string"
      -                  },
      -                  "tanatasa_pick": {
      -                    "type": "boolean"
      -                  },
      -                  "unit_price": {
      -                    "description": "Integer SGD cents; 1690 means S$16.90.",
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "unit_pricing": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": true,
      -                        "properties": {
      -                          "basis": {
      -                            "enum": [
      -                              "ml",
      -                              "g"
      -                            ],
      -                            "type": "string"
      -                          },
      -                          "per_100": {
      -                            "description": "Integer SGD cents; 1690 means S$16.90.",
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "per_1000": {
      -                            "description": "Integer SGD cents; 1690 means S$16.90.",
      -                            "minimum": 0,
      -                            "type": "integer"
      -                          },
      -                          "per_1000_label": {
      -                            "type": "string"
      -                          },
      -                          "per_100_label": {
      -                            "type": "string"
      -                          },
      -                          "total_quantity": {
      -                            "type": "number"
      -                          }
      -                        },
      -                        "required": [
      -                          "basis",
      -                          "total_quantity",
      -                          "per_100",
      -                          "per_1000",
      -                          "per_100_label",
      -                          "per_1000_label"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "url": {
      -                    "format": "uri",
      -                    "type": "string"
      -                  },
      -                  "variant_id": {
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "variant_id",
      -                  "product_id",
      -                  "slug",
      -                  "sku",
      -                  "name",
      -                  "option_name",
      -                  "product_name",
      -                  "brand",
      -                  "currency",
      -                  "unit_price",
      -                  "compare_at_price",
      -                  "available",
      -                  "max_quantity",
      -                  "url",
      -                  "image_url",
      -                  "image",
      -                  "gtin",
      -                  "condition",
      -                  "condition_label",
      -                  "expiry",
      -                  "stock_source",
      -                  "fulfilment",
      -                  "tanatasa_pick",
      -                  "unit_pricing",
      -                  "quantity",
      -                  "line_total",
      -                  "delivery_working_days"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "money_unit": {
      -              "const": "cents",
      -              "type": "string"
      -            },
      -            "next_action": {
      -              "type": "string"
      -            },
      -            "quoted_at": {
      -              "format": "date-time",
      -              "type": "string"
      -            },
      -            "return_policy": {
      -              "additionalProperties": true,
      -              "properties": {
      -                "condition": {
      -                  "type": "string"
      -                },
      -                "policy_url": {
      -                  "format": "uri",
      -                  "type": "string"
      -                },
      -                "summary": {
      -                  "type": "string"
      -                },
      -                "window_days": {
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "window_days",
      -                "condition",
      -                "summary",
      -                "policy_url"
      -              ],
      -              "type": "object"
      -            },
      -            "shipping": {
      -              "description": "Integer SGD cents; 1690 means S$16.90.",
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "stock_reserved": {
      -              "const": false,
      -              "type": "boolean"
      -            },
      -            "subtotal": {
      -              "description": "Integer SGD cents; 1690 means S$16.90.",
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "total": {
      -              "description": "Integer SGD cents; 1690 means S$16.90.",
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "version": {
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "currency",
      -            "money_unit",
      -            "cart_id",
      -            "version",
      -            "lines",
      -            "coupon_code",
      -            "discounts",
      -            "subtotal",
      -            "discount",
      -            "shipping",
      -            "free_delivery",
      -            "total",
      -            "checkout_id",
      -            "stock_reserved",
      -            "quoted_at",
      -            "delivery_estimate",
      -            "return_policy",
      -            "buyer_summary",
      -            "next_action"
      -          ],
      -          "type": "object"
      -        },
      -        "total": {
      -          "description": "Integer SGD cents; 1690 means S$16.90.",
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "currency",
      -        "money_unit",
      -        "checkout_id",
      -        "order_id",
      -        "checkout_url",
      -        "cart_url",
      -        "details_version",
      -        "checkout_status",
      -        "payment_url",
      -        "payment_url_expires_at",
      -        "payment_confirmed",
      -        "confirmation_url",
      -        "expires_at",
      -        "total",
      -        "payment_status",
      -        "buyer_summary",
      -        "next_action",
      -        "buyer_details",
      -        "handoff_options",
      -        "cart_id",
      -        "quote"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": true,
      -      "properties": {
      -        "error": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "message": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "error"
      -      ],
      -      "type": "object"
      -    }
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "$schema": "http://json-schema.org/draft-07/schema#",
      +      "additionalProperties": true,
      +      "properties": {
      +        "buyer_details": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "properties": {
      +                "contact": {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "email": {
      +                      "type": "string"
      +                    },
      +                    "name": {
      +                      "type": "string"
      +                    },
      +                    "phone": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "name",
      +                    "email",
      +                    "phone"
      +                  ],
      +                  "type": "object"
      +                },
      +                "delivery": {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "address_line1": {
      +                      "type": "string"
      +                    },
      +                    "postal_code": {
      +                      "type": "string"
      +                    },
      +                    "unit_number": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "address_line1",
      +                    "postal_code"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "contact",
      +                "delivery"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "buyer_summary": {
      +          "type": "string"
      +        },
      +        "cart_id": {
      +          "type": "string"
      +        },
      +        "cart_url": {
      +          "anyOf": [
      +            {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "checkout_id": {
      +          "type": "string"
      +        },
      +        "checkout_status": {
      +          "enum": [
      +            "cancelled",
      +            "confirmed",
      +            "cart_changed",
      +            "payment_pending",
      +            "ready_for_payment",
      +            "details_required"
      +          ],
      +          "type": "string"
      +        },
      +        "checkout_url": {
      +          "anyOf": [
      +            {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "confirmation_url": {
      +          "anyOf": [
      +            {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "currency": {
      +          "const": "SGD",
      +          "type": "string"
      +        },
      +        "details_version": {
      +          "type": "integer"
      +        },
      +        "expires_at": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "guest_token": {
      +          "type": "string"
      +        },
      +        "handoff_options": {
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "available": {
      +                "type": "boolean"
      +              },
      +              "buyer_action": {
      +                "type": "string"
      +              },
      +              "path": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "anyOf": [
      +                  {
      +                    "format": "uri",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "path",
      +              "available"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "money_unit": {
      +          "const": "cents",
      +          "type": "string"
      +        },
      +        "next_action": {
      +          "type": "string"
      +        },
      +        "order_id": {
      +          "type": "string"
      +        },
      +        "payment_confirmed": {
      +          "type": "boolean"
      +        },
      +        "payment_status": {
      +          "type": "string"
      +        },
      +        "payment_url": {
      +          "anyOf": [
      +            {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "payment_url_expires_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "quote": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "buyer_summary": {
      +              "type": "string"
      +            },
      +            "cart_id": {
      +              "type": "string"
      +            },
      +            "checkout_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "coupon_code": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "currency": {
      +              "const": "SGD",
      +              "type": "string"
      +            },
      +            "delivery_estimate": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "estimated_delivery_date": {
      +                  "description": "Estimated Singapore delivery date, YYYY-MM-DD; not a guarantee.",
      +                  "type": "string"
      +                },
      +                "working_days": {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "max": {
      +                      "type": "integer"
      +                    },
      +                    "min": {
      +                      "type": "integer"
      +                    }
      +                  },
      +                  "required": [
      +                    "min",
      +                    "max"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "working_days",
      +                "estimated_delivery_date"
      +              ],
      +              "type": "object"
      +            },
      +            "discount": {
      +              "description": "Integer SGD cents; 1690 means S$16.90.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "discounts": {
      +              "items": {
      +                "additionalProperties": true,
      +                "properties": {
      +                  "amount": {
      +                    "description": "Integer SGD cents; 1690 means S$16.90.",
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "code": {
      +                    "type": "string"
      +                  },
      +                  "description": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "code",
      +                  "amount",
      +                  "description"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "free_delivery": {
      +              "const": true,
      +              "type": "boolean"
      +            },
      +            "lines": {
      +              "items": {
      +                "additionalProperties": true,
      +                "properties": {
      +                  "available": {
      +                    "type": "boolean"
      +                  },
      +                  "brand": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "compare_at_price": {
      +                    "anyOf": [
      +                      {
      +                        "description": "Integer SGD cents; 1690 means S$16.90.",
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Integer SGD cents; 1690 means S$16.90."
      +                  },
      +                  "condition": {
      +                    "type": "string"
      +                  },
      +                  "condition_label": {
      +                    "type": "string"
      +                  },
      +                  "currency": {
      +                    "const": "SGD",
      +                    "type": "string"
      +                  },
      +                  "delivery_working_days": {
      +                    "type": "integer"
      +                  },
      +                  "expiry": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "fulfilment": {
      +                    "additionalProperties": true,
      +                    "properties": {
      +                      "code": {
      +                        "type": "string"
      +                      },
      +                      "label": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "code",
      +                      "label"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "gtin": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "image": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": true,
      +                        "properties": {
      +                          "alt": {
      +                            "type": [
      +                              "string",
      +                              "null"
      +                            ]
      +                          },
      +                          "height": {
      +                            "anyOf": [
      +                              {
      +                                "exclusiveMinimum": 0,
      +                                "type": "integer"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ]
      +                          },
      +                          "mime_type": {
      +                            "description": "MIME type inferred from the stored image URL extension; null when unknown.",
      +                            "type": [
      +                              "string",
      +                              "null"
      +                            ]
      +                          },
      +                          "url": {
      +                            "format": "uri",
      +                            "type": "string"
      +                          },
      +                          "width": {
      +                            "anyOf": [
      +                              {
      +                                "exclusiveMinimum": 0,
      +                                "type": "integer"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ]
      +                          }
      +                        },
      +                        "required": [
      +                          "url",
      +                          "alt",
      +                          "width",
      +                          "height",
      +                          "mime_type"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "image_url": {
      +                    "anyOf": [
      +                      {
      +                        "format": "uri",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "line_total": {
      +                    "description": "Integer SGD cents; 1690 means S$16.90.",
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "max_quantity": {
      +                    "type": "integer"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "option_name": {
      +                    "type": "string"
      +                  },
      +                  "product_id": {
      +                    "type": "integer"
      +                  },
      +                  "product_name": {
      +                    "type": "string"
      +                  },
      +                  "quantity": {
      +                    "type": "integer"
      +                  },
      +                  "sku": {
      +                    "type": "string"
      +                  },
      +                  "slug": {
      +                    "type": "string"
      +                  },
      +                  "stock_source": {
      +                    "type": "string"
      +                  },
      +                  "tanatasa_pick": {
      +                    "type": "boolean"
      +                  },
      +                  "unit_price": {
      +                    "description": "Integer SGD cents; 1690 means S$16.90.",
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "unit_pricing": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": true,
      +                        "properties": {
      +                          "basis": {
      +                            "enum": [
      +                              "ml",
      +                              "g"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          "per_100": {
      +                            "description": "Integer SGD cents; 1690 means S$16.90.",
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "per_1000": {
      +                            "description": "Integer SGD cents; 1690 means S$16.90.",
      +                            "minimum": 0,
      +                            "type": "integer"
      +                          },
      +                          "per_1000_label": {
      +                            "type": "string"
      +                          },
      +                          "per_100_label": {
      +                            "type": "string"
      +                          },
      +                          "total_quantity": {
      +                            "type": "number"
      +                          }
      +                        },
      +                        "required": [
      +                          "basis",
      +                          "total_quantity",
      +                          "per_100",
      +                          "per_1000",
      +                          "per_100_label",
      +                          "per_1000_label"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "url": {
      +                    "format": "uri",
      +                    "type": "string"
      +                  },
      +                  "variant_id": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "variant_id",
      +                  "product_id",
      +                  "slug",
      +                  "sku",
      +                  "name",
      +                  "option_name",
      +                  "product_name",
      +                  "brand",
      +                  "currency",
      +                  "unit_price",
      +                  "compare_at_price",
      +                  "available",
      +                  "max_quantity",
      +                  "url",
      +                  "image_url",
      +                  "image",
      +                  "gtin",
      +                  "condition",
      +                  "condition_label",
      +                  "expiry",
      +                  "stock_source",
      +                  "fulfilment",
      +                  "tanatasa_pick",
      +                  "unit_pricing",
      +                  "quantity",
      +                  "line_total",
      +                  "delivery_working_days"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "money_unit": {
      +              "const": "cents",
      +              "type": "string"
      +            },
      +            "next_action": {
      +              "type": "string"
      +            },
      +            "quoted_at": {
      +              "format": "date-time",
      +              "type": "string"
      +            },
      +            "return_policy": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "condition": {
      +                  "type": "string"
      +                },
      +                "policy_url": {
      +                  "format": "uri",
      +                  "type": "string"
      +                },
      +                "summary": {
      +                  "type": "string"
      +                },
      +                "window_days": {
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "window_days",
      +                "condition",
      +                "summary",
      +                "policy_url"
      +              ],
      +              "type": "object"
      +            },
      +            "shipping": {
      +              "description": "Integer SGD cents; 1690 means S$16.90.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "stock_reserved": {
      +              "const": false,
      +              "type": "boolean"
      +            },
      +            "subtotal": {
      +              "description": "Integer SGD cents; 1690 means S$16.90.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "total": {
      +              "description": "Integer SGD cents; 1690 means S$16.90.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "version": {
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "currency",
      +            "money_unit",
      +            "cart_id",
      +            "version",
      +            "lines",
      +            "coupon_code",
      +            "discounts",
      +            "subtotal",
      +            "discount",
      +            "shipping",
      +            "free_delivery",
      +            "total",
      +            "checkout_id",
      +            "stock_reserved",
      +            "quoted_at",
      +            "delivery_estimate",
      +            "return_policy",
      +            "buyer_summary",
      +            "next_action"
      +          ],
      +          "type": "object"
      +        },
      +        "total": {
      +          "description": "Integer SGD cents; 1690 means S$16.90.",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "currency",
      +        "money_unit",
      +        "checkout_id",
      +        "order_id",
      +        "checkout_url",
      +        "cart_url",
      +        "details_version",
      +        "checkout_status",
      +        "payment_url",
      +        "payment_url_expires_at",
      +        "payment_confirmed",
      +        "confirmation_url",
      +        "expires_at",
      +        "total",
      +        "payment_status",
      +        "buyer_summary",
      +        "next_action",
      +        "buyer_details",
      +        "handoff_options",
      +        "cart_id",
      +        "quote"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": true,
      +      "properties": {
      +        "error": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses important behavior: no account is needed, free Singapore delivery with no minimum spend, prices are delivered prices, nothing is charged at this stage, and guest users receive a private guest_token for later calls. It also describes the return shape and the approval workflow, which is substantial context for a non-read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core value proposition and then proceeds through inputs, return values, pricing behavior, and next steps. The sentences are dense but purposeful, with no irrelevant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex checkout-start tool with nested inputs and no output schema, the description is complete enough: it explains the one-call flow, key constraints, return values, guest token handling, no-charge behavior, and the next action. Missing details such as idempotency are covered by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all seven parameters in detail. The description reinforces the high-level meaning of items and details and mentions the guest_token, but it mostly repeats structured schema information rather than adding new parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action and resource: it takes the whole basket and buyer details, creates the cart, quotes it, and starts checkout in one call. This clearly distinguishes it from multi-step siblings such as create_cart, quote_cart, and create_checkout by emphasizing the one-call, fastest-to-buy flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context: use it when you have the whole basket and buyer details and want the fastest one-call checkout, with no account needed. It also describes the next step after approval (prepare_payment), but it does not explicitly name when to prefer sibling tools like create_cart or create_checkout instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources