Skip to main content
Glama

Resolve the original offer attempt safely

resolve_offer_attempt
Idempotent

Use this when the customer explicitly asks to resolve an earlier offer attempt and continue safely. Do not use for a first request, automatic status polling or retrying an existing execution. Supply resolveRequested=true and the original submissionId/resumeToken pair. This mutating, idempotent operation may durably close an attempt only if it has never been claimed; it never creates an offer, contact, booking, message or payment. Existing executions remain unchanged and their current status is returned. Only restart_ready with originalRequestClosed=true and the matching submissionId proves the original can no longer execute and permits a separately reviewed new request. pending, ambiguous, unavailable or not_found do not permit a fresh attempt. Check a lost response with get_offer_status using the same pair; never invent another identity or infer a timeout proves failure. Status reads remain read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "submissionId": "<submissionId>",
      "resumeToken": "<resumeToken>",
      "resolveRequested": "<resolveRequested>"
    },
    "name": "resolve_offer_attempt"
  }
}

Input Schema

NameRequiredDescriptionDefault
resumeTokenYesOriginal private 64-character hexadecimal resumeToken sent with this submissionId. Reuse it unchanged; never generate a replacement. Expired, invalid or foreign-provider proof can return not_found without proving that no booking exists.
submissionIdYesOriginal submissionId UUID sent to prepare_offer for this attempt, including when its response was lost. Reuse it with the original resumeToken; do not generate a new ID or substitute a booking ID.
resolveRequestedYesPresent true only for an explicit customer request to resolve this original attempt before a new request.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "const": "invalid_request",
      -        "description": "Input does not match this operation.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingUrl": {
      -        "description": "Booking page for this locale.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "unavailable",
      -        "description": "This read could not be completed safely.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingUrl": {
      -        "description": "Booking page for this locale.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "locations": {
      -        "description": "Areas this business currently publishes.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "areas": {
      -              "description": "Areas that can be quoted.",
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "id": {
      -                    "description": "Published area id.",
      -                    "type": "string"
      -                  },
      -                  "label": {
      -                    "description": "Area label for the locale.",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "label"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "countryCode": {
      -              "description": "Country code, when set.",
      -              "type": "string"
      -            },
      -            "key": {
      -              "description": "Service-location key.",
      -              "type": "string"
      -            },
      -            "label": {
      -              "description": "Location label for the locale.",
      -              "type": "string"
      -            },
      -            "timeZone": {
      -              "description": "Time zone of this location.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "countryCode",
      -            "timeZone",
      -            "label",
      -            "areas"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nextAction": {
      -        "description": "Use a published area. Do not invent a price.",
      -        "type": "string"
      -      },
      -      "reason": {
      -        "const": "outside_service_area",
      -        "description": "Price withheld because the request is outside the served area.",
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "outside_service_area",
      -        "description": "No price: outside the published areas.",
      -        "type": "string"
      -      },
      -      "timeZone": {
      -        "description": "Time zone used for this decision.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "reason",
      -      "bookingUrl",
      -      "timeZone",
      -      "locations",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "retryAfterSeconds": {
      -        "description": "Seconds to wait, then reuse the same pair.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "status": {
      -        "const": "pending",
      -        "description": "This offer intent is still pending.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "retryAfterSeconds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "retryAfterSeconds": {
      -        "description": "Seconds to wait before the same retry.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "status": {
      -        "const": "rate_limited",
      -        "description": "Offer admission is rate-limited.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "retryAfterSeconds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "description": "conflict, ambiguous, or not_found. Do not create another offer.",
      -        "enum": [
      -          "conflict",
      -          "ambiguous",
      -          "not_found"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "originalRequestClosed": {
      -        "const": true,
      -        "description": "A permanent original-execution fence is proven; not a timeout or an absence-only assertion.",
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "const": "restart_ready",
      -        "description": "The exact original attempt is durably fenced before execution; no offer or booking was created by this operation.",
      -        "type": "string"
      -      },
      -      "submissionId": {
      -        "description": "The original submissionId covered by the proven execution fence.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "originalRequestClosed",
      -      "submissionId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "booking": {
      -        "additionalProperties": false,
      -        "description": "Stored booking state.",
      -        "properties": {
      -          "recordedStatus": {
      -            "description": "Stored reservation status.",
      -            "maxLength": 64,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "recordedStatus"
      -        ],
      -        "type": "object"
      -      },
      -      "bookingKey": {
      -        "description": "Stored reservation id. It grants no access alone.",
      -        "maxLength": 128,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "bookingReference": {
      -        "description": "Customer reference, or the reservation id.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "customerPortalUrl": {
      -        "description": "Private login for this submission proof.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "fulfillment": {
      -        "additionalProperties": false,
      -        "description": "Stored assignment flags.",
      -        "properties": {
      -          "chauffeurAssignmentRecorded": {
      -            "description": "A driver id is stored.",
      -            "type": "boolean"
      -          },
      -          "completionRecorded": {
      -            "description": "Stored status is completed.",
      -            "type": "boolean"
      -          },
      -          "vehicleAssignmentRecorded": {
      -            "description": "A vehicle id is stored.",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "chauffeurAssignmentRecorded",
      -          "vehicleAssignmentRecorded",
      -          "completionRecorded"
      -        ],
      -        "type": "object"
      -      },
      -      "payment": {
      -        "additionalProperties": false,
      -        "description": "Stored payment state.",
      -        "properties": {
      -          "recordedStatus": {
      -            "description": "Stored payment status.",
      -            "maxLength": 64,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "recordedStatus"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "available",
      -        "description": "Stored booking fields passed validation.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "bookingKey",
      -      "bookingReference",
      -      "booking",
      -      "payment",
      -      "fulfillment",
      -      "customerPortalUrl"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingUrl": {
      -        "description": "Booking page for this locale.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Why review is required.",
      -        "type": "string"
      -      },
      -      "review": {
      -        "additionalProperties": false,
      -        "description": "Structured review and next step.",
      -        "properties": {
      -          "availabilityConfirmed": {
      -            "const": false,
      -            "description": "Availability is not confirmed.",
      -            "type": "boolean"
      -          },
      -          "code": {
      -            "description": "Which requirement needs review.",
      -            "enum": [
      -              "additional_requirements_review",
      -              "model_guarantee_review",
      -              "address_review",
      -              "service_scope_review",
      -              "booking_window_review",
      -              "route_review"
      -            ],
      -            "type": "string"
      -          },
      -          "customerContactRequired": {
      -            "const": false,
      -            "description": "No contact is required for this review.",
      -            "type": "boolean"
      -          },
      -          "nextAction": {
      -            "const": "review_requirements",
      -            "description": "Review the requirements before continuing.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "customerContactRequired",
      -          "availabilityConfirmed",
      -          "nextAction"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "review_required",
      -        "description": "Offer preparation needs review.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "bookingUrl",
      -      "message",
      -      "review"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "const": "expired",
      -        "description": "The bound offer has expired.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "const": "declined",
      -        "description": "The customer declined this offer; it is closed.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingConfirmed": {
      -        "const": false,
      -        "description": "Preparation does not confirm or charge.",
      -        "type": "boolean"
      -      },
      -      "checkoutUrl": {
      -        "description": "Private page where the customer confirms.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "customerPortalUrl": {
      -        "description": "Private customer login for this submission.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "nextAction": {
      -        "description": "Open the offer page and let the customer confirm.",
      -        "type": "string"
      -      },
      -      "offer": {
      -        "additionalProperties": false,
      -        "description": "Bound offer amount and expiry.",
      -        "properties": {
      -          "completeTermsBound": {
      -            "const": true,
      -            "description": "Complete terms are bound to this offer.",
      -            "type": "boolean"
      -          },
      -          "currency": {
      -            "const": "EUR",
      -            "description": "Offer currency: EUR.",
      -            "type": "string"
      -          },
      -          "customerConfirmationRequired": {
      -            "const": true,
      -            "description": "The customer must confirm on the offer page.",
      -            "type": "boolean"
      -          },
      -          "expiresAt": {
      -            "description": "When this bound offer expires.",
      -            "type": "string"
      -          },
      -          "grossTotalCents": {
      -            "description": "Bound gross total in euro cents.",
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "currency",
      -          "grossTotalCents",
      -          "expiresAt",
      -          "customerConfirmationRequired",
      -          "completeTermsBound"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "prepared",
      -        "description": "Unpaid offer links are ready for review.",
      -        "type": "string"
      -      },
      -      "termsUrl": {
      -        "description": "Same page, including the bound terms.",
      -        "format": "uri",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "bookingConfirmed",
      -      "checkoutUrl",
      -      "termsUrl",
      -      "offer",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "const": "invalid_request",
      +        "description": "Input does not match this operation.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingUrl": {
      +        "description": "Existing booking page for this locale. After quoted, show this exact URL unchanged, including its query and rideDraft fragment, so the customer can review the ride.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "unavailable",
      +        "description": "This read could not be completed safely.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingUrl": {
      +        "description": "Existing booking page for this locale. After quoted, show this exact URL unchanged, including its query and rideDraft fragment, so the customer can review the ride.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "locations": {
      +        "description": "Areas this business currently publishes.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "areas": {
      +              "description": "Areas that can be quoted.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "description": "Published area id.",
      +                    "type": "string"
      +                  },
      +                  "label": {
      +                    "description": "Area label for the locale.",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "label"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "countryCode": {
      +              "description": "Country code, when set.",
      +              "type": "string"
      +            },
      +            "key": {
      +              "description": "Service-location key.",
      +              "type": "string"
      +            },
      +            "label": {
      +              "description": "Location label for the locale.",
      +              "type": "string"
      +            },
      +            "timeZone": {
      +              "description": "Time zone of this location.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "countryCode",
      +            "timeZone",
      +            "label",
      +            "areas"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nextAction": {
      +        "description": "Use a published area. Do not invent a price.",
      +        "type": "string"
      +      },
      +      "reason": {
      +        "const": "outside_service_area",
      +        "description": "Price withheld because the request is outside the served area.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "outside_service_area",
      +        "description": "No price: outside the published areas.",
      +        "type": "string"
      +      },
      +      "timeZone": {
      +        "description": "Time zone used for this decision.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "reason",
      +      "bookingUrl",
      +      "timeZone",
      +      "locations",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "retryAfterSeconds": {
      +        "description": "Seconds to wait, then reuse the same pair.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "pending",
      +        "description": "This offer intent is still pending.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "retryAfterSeconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "retryAfterSeconds": {
      +        "description": "Seconds to wait before the same retry.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "rate_limited",
      +        "description": "Offer admission is rate-limited.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "retryAfterSeconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "description": "conflict, ambiguous, or not_found. Do not create another offer.",
      +        "enum": [
      +          "conflict",
      +          "ambiguous",
      +          "not_found"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "originalRequestClosed": {
      +        "const": true,
      +        "description": "A permanent original-execution fence is proven; not a timeout or an absence-only assertion.",
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "const": "restart_ready",
      +        "description": "The exact original attempt is durably fenced before execution; no offer or booking was created by this operation.",
      +        "type": "string"
      +      },
      +      "submissionId": {
      +        "description": "The original submissionId covered by the proven execution fence.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "originalRequestClosed",
      +      "submissionId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "booking": {
      +        "additionalProperties": false,
      +        "description": "Stored booking state.",
      +        "properties": {
      +          "recordedStatus": {
      +            "description": "Stored reservation status.",
      +            "maxLength": 64,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "recordedStatus"
      +        ],
      +        "type": "object"
      +      },
      +      "bookingKey": {
      +        "description": "Stored reservation id. It grants no access alone.",
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "bookingReference": {
      +        "description": "Customer reference, or the reservation id.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "customerPortalUrl": {
      +        "description": "Private login for this submission proof.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "fulfillment": {
      +        "additionalProperties": false,
      +        "description": "Stored assignment flags.",
      +        "properties": {
      +          "chauffeurAssignmentRecorded": {
      +            "description": "A driver id is stored.",
      +            "type": "boolean"
      +          },
      +          "completionRecorded": {
      +            "description": "Stored status is completed.",
      +            "type": "boolean"
      +          },
      +          "vehicleAssignmentRecorded": {
      +            "description": "A vehicle id is stored.",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "chauffeurAssignmentRecorded",
      +          "vehicleAssignmentRecorded",
      +          "completionRecorded"
      +        ],
      +        "type": "object"
      +      },
      +      "payment": {
      +        "additionalProperties": false,
      +        "description": "Stored payment state.",
      +        "properties": {
      +          "recordedStatus": {
      +            "description": "Stored payment status.",
      +            "maxLength": 64,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "recordedStatus"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "available",
      +        "description": "Stored booking fields passed validation.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "bookingKey",
      +      "bookingReference",
      +      "booking",
      +      "payment",
      +      "fulfillment",
      +      "customerPortalUrl"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingUrl": {
      +        "description": "Existing booking page for this locale. After quoted, show this exact URL unchanged, including its query and rideDraft fragment, so the customer can review the ride.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "message": {
      +        "description": "Why review is required.",
      +        "type": "string"
      +      },
      +      "review": {
      +        "additionalProperties": false,
      +        "description": "Structured review and next step.",
      +        "properties": {
      +          "availabilityConfirmed": {
      +            "const": false,
      +            "description": "Availability is not confirmed.",
      +            "type": "boolean"
      +          },
      +          "code": {
      +            "description": "Which requirement needs review.",
      +            "enum": [
      +              "additional_requirements_review",
      +              "model_guarantee_review",
      +              "address_review",
      +              "service_scope_review",
      +              "booking_window_review",
      +              "route_review"
      +            ],
      +            "type": "string"
      +          },
      +          "customerContactRequired": {
      +            "const": false,
      +            "description": "No contact is required for this review.",
      +            "type": "boolean"
      +          },
      +          "nextAction": {
      +            "const": "review_requirements",
      +            "description": "Review the requirements before continuing.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "customerContactRequired",
      +          "availabilityConfirmed",
      +          "nextAction"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "review_required",
      +        "description": "Offer preparation needs review.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "bookingUrl",
      +      "message",
      +      "review"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "const": "expired",
      +        "description": "The bound offer has expired.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "const": "declined",
      +        "description": "The customer declined this offer; it is closed.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingConfirmed": {
      +        "const": false,
      +        "description": "Preparation does not confirm or charge.",
      +        "type": "boolean"
      +      },
      +      "checkoutUrl": {
      +        "description": "Private page where the customer confirms.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "customerPortalUrl": {
      +        "description": "Private customer login for this submission.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "nextAction": {
      +        "description": "Open the offer page and let the customer confirm.",
      +        "type": "string"
      +      },
      +      "offer": {
      +        "additionalProperties": false,
      +        "description": "Bound offer amount and expiry.",
      +        "properties": {
      +          "completeTermsBound": {
      +            "const": true,
      +            "description": "Complete terms are bound to this offer.",
      +            "type": "boolean"
      +          },
      +          "currency": {
      +            "const": "EUR",
      +            "description": "Offer currency: EUR.",
      +            "type": "string"
      +          },
      +          "customerConfirmationRequired": {
      +            "const": true,
      +            "description": "The customer must confirm on the offer page.",
      +            "type": "boolean"
      +          },
      +          "expiresAt": {
      +            "description": "When this bound offer expires.",
      +            "type": "string"
      +          },
      +          "grossTotalCents": {
      +            "description": "Bound gross total in euro cents.",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "currency",
      +          "grossTotalCents",
      +          "expiresAt",
      +          "customerConfirmationRequired",
      +          "completeTermsBound"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "prepared",
      +        "description": "Unpaid offer links are ready for review.",
      +        "type": "string"
      +      },
      +      "termsUrl": {
      +        "description": "Same page, including the bound terms.",
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "bookingConfirmed",
      +      "checkoutUrl",
      +      "termsUrl",
      +      "offer",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare mutating, idempotent and non-destructive, and the description adds substantive context beyond them: the tool never creates downstream entities, existing executions remain unchanged and their status is returned, and closing only happens for a never-claimed attempt. It also spells out the restart_ready/originalRequestClosed gating rule and which statuses do not permit a fresh attempt. The only gap is that the returned payload's shape is left to the output schema.

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

Conciseness4/5

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

It is front-loaded with the trigger and exclusions, then moves to parameters, side effects, and recovery, with no filler sentences. The prose is dense and a few clauses are packed together (the restart_ready gating rule in particular), which costs it the top score.

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 mutating, gated operation this is complete: trigger, exclusions, parameter reuse rules, side effects, negative-outcome semantics, and a recovery path for lost responses are all covered, and an output schema exists to carry return values. An agent has everything needed to call it correctly and interpret ambiguous results.

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% and the schema fields already explain reuse of the original resumeToken and submissionId in detail, so the baseline applies. The description reinforces the pairing requirement ('the original submissionId/resumeToken pair') and the resolveRequested=true precondition, but adds no new syntax or format meaning beyond the structured fields.

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

Purpose4/5

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

The description names a specific operation and its actual effect: it 'may durably close an attempt only if it has never been claimed' and never creates an offer, contact, booking, message or payment. That distinguishes it clearly from prepare_offer and get_offer_status. The opening sentence leans on when-to-use rather than what-it-does, so the mechanism arrives slightly late, keeping it just short of a 5.

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

Usage Guidelines5/5

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

It states the triggering condition (an explicit customer request to resolve an earlier attempt), three explicit exclusions (first request, automatic status polling, retrying an existing execution), and names the correct alternative for a lost response (get_offer_status with the same submissionId/resumeToken pair). Nothing about selection is left to inference.

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