getAllAvailabilityBlocks
Fetch all availability blocks for reservations in Mews MCP by applying filters such as date ranges, IDs, or collision intervals. Supports rate, space, and category blocks with a maximum time span of 100 hours.
Instructions
Returns all availability blocks (reservations blocked by rate, space category, or space) based on filter parameters. Note: At least one filter must be provided (CreatedUtc, UpdatedUtc, CollidingUtc, AvailabilityBlockIds, or ExternalIdentifiers). The time interval must not exceed 100 hours.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
AvailabilityBlockIds | No | Filter by specific availability block IDs | |
CollidingUtc | No | Find blocks that collide with this time range | |
EndUtc | Yes | End date for search (ISO 8601) | |
ServiceIds | No | Filter by service IDs | |
StartUtc | Yes | Start date for search (ISO 8601) |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"AvailabilityBlockIds": {
"description": "Filter by specific availability block IDs",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"CollidingUtc": {
"description": "Find blocks that collide with this time range",
"properties": {
"EndUtc": {
"description": "End of collision range (ISO 8601)",
"type": "string"
},
"StartUtc": {
"description": "Start of collision range (ISO 8601)",
"type": "string"
}
},
"type": "object"
},
"EndUtc": {
"description": "End date for search (ISO 8601)",
"type": "string"
},
"ServiceIds": {
"description": "Filter by service IDs",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"StartUtc": {
"description": "Start date for search (ISO 8601)",
"type": "string"
}
},
"required": [
"StartUtc",
"EndUtc"
],
"type": "object"
}