Title100/100
Groupon deal details
The title clearly communicates the tool’s action and subject. Keep it concise.
Description96/100
Returns the full detail of one Groupon deal, identified by the deal uuid a deals-search result carries. The answer has six parts: description and highlights, fine print, every purchase option with its price and selling state, every redemption location, the review summary, and availability with the merchant name and website. Long fields and long lists are shortened, and the answer states what was shortened.
The description explains the capability, when to use it, and what to expect.
Inputs88/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
dealId
Deal uuid, as it appears in a deals-search result (structuredContent.deals[].uuid), e.g. 'cb6d7944-4baf-46c8-9521-8a302c9fe473'. The slug in a deal URL is a different identifier.
Clear enough to supply this argument.
optionId
Option uuid from the same deal, as deals-search carries it in optionId. The matching option is listed first and marked as selected. A value that is not a uuid is rejected, the same as for dealId. An empty value counts as omitted.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Annotations100/100
All four behavior hints are declared.
{
"title": "Groupon deal details",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}Output schema78/100
The output schema explains the structured result.
View output schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"uuid",
"title",
"url",
"status",
"description",
"finePrint",
"options",
"optionsTotal",
"locations"
],
"properties": {
"url": {
"type": "string",
"description": "Deal page on groupon.com, with channel attribution parameters."
},
"uuid": {
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "string",
"description": "BUY, SOLD_OUT, EXPIRED or NOT_YET."
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"uuid",
"title",
"optionStatus",
"isSoldOut",
"isSelected"
],
"properties": {
"id": {
"type": "string"
},
"uuid": {
"type": "string"
},
"endAt": {
"type": [
"string",
"null"
],
"description": "When the option stops being on sale."
},
"price": {
"anyOf": [
{
"type": "object",
"required": [
"amount",
"currencyCode",
"currencyExponent"
],
"properties": {
"amount": {
"type": "number",
"description": "Minor units; divide by 10^currencyExponent for the display amount."
},
"suffix": {
"type": [
"string",
"null"
],
"description": "Qualifies what the amount buys, e.g. 'per night'."
},
"currencyCode": {
"type": "string"
},
"formattedAmount": {
"type": [
"string",
"null"
],
"description": "The amount as the consumer API formats it, e.g. '$24.00'."
},
"currencyExponent": {
"type": "integer"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"title": {
"type": "string"
},
"discount": {
"type": [
"string",
"null"
]
},
"expiresAt": {
"type": [
"string",
"null"
],
"description": "When a bought voucher expires."
},
"isSoldOut": {
"type": "boolean"
},
"isSelected": {
"type": "boolean",
"description": "True for the option named in optionId."
},
"optionStatus": {
"type": "string",
"description": "BUY, SOLD_OUT, EXPIRED, NOT_YET or QTY_EXCEEDED."
},
"strikeThroughPrice": {
"anyOf": [
{
"$ref": "#/properties/options/items/properties/price/anyOf/0"
},
{
"type": "null"
}
]
},
"maximumPurchaseQuantity": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"minimumPurchaseQuantity": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"description": "Purchase options, at most 30, the pinned one first."
},
"reviews": {
"anyOf": [
{
"type": "object",
"properties": {
"total": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "How many ratings the rating is the average of. Can differ from reviewsCount."
},
"rating": {
"type": [
"string",
"null"
],
"description": "Average rating as the consumer API reports it, a string on a 5-point scale."
},
"reviewsCount": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "How many written reviews the deal has. Not the population the rating averages."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"endsAtIso": {
"type": [
"string",
"null"
]
},
"finePrint": {
"type": "string",
"description": "Fine print as plain text, shortened when long."
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"city": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"address": {
"type": [
"string",
"null"
]
},
"country": {
"type": [
"string",
"null"
]
},
"postalCode": {
"type": [
"string",
"null"
]
},
"phoneNumber": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"description": "Redemption locations, at most 25, in consumer-API order."
},
"description": {
"type": "string",
"description": "Deal description and highlights as plain text, shortened when long."
},
"merchantName": {
"type": [
"string",
"null"
]
},
"optionsTotal": {
"type": "integer",
"description": "How many options the deal has in total."
},
"locationsTotal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "How many redemption locations the deal has in total. Null when the deal has no locations at all."
},
"merchantWebsiteUrl": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}