{
  "id": "availability-slots-compose",
  "name": "Supplied-calendar availability slot composer",
  "description": "Compose all grid-aligned candidate meetings with whole-slot attendee continuity, required participants and explicit meeting buffers from supplied available/busy intervals.",
  "category": "structured",
  "priceUsd": "0.005",
  "pricingStatus": "proposed-unverified",
  "pricing": {
    "unit": "one successful operation call",
    "proposedNominalUsd": "0.005",
    "sixDecimalTokenBaseUnits": "5000",
    "subscription": false,
    "includesPayerWalletOrNetworkFees": false,
    "liveQuoteVerified": false,
    "condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
  },
  "intents": [
    "find candidate meeting slots from supplied calendars",
    "enumerate whole-meeting attendee availability",
    "compose buffered quorum meeting candidates"
  ],
  "whenToUse": [
    "find candidate meeting slots from supplied calendars",
    "enumerate whole-meeting attendee availability",
    "compose buffered quorum meeting candidates"
  ],
  "whenNotToUse": [
    "Live account access, invitations, booking or authenticating external observations",
    "Aggregate concurrency without the same attendees available for the entire meeting",
    "Ranked preferences, scheduling optimization or a conflict-free set of meetings",
    "Accessing calendars, scheduling jobs, reserving meetings, network requests or external state changes"
  ],
  "capabilities": [
    "Half-open intervals; union available and busy separately, subtract busy, then fit each attendee's protected meeting span; supplied availability is not verified",
    "Buffers may extend outside search window only within supplied free intervals",
    "Explicit grid origin permits negative conceptual grid indices; sorted complete attendee lists and all eligible candidates",
    "Caller-supplied data only; no current clock, randomness, environment or timezone-database reads",
    "Complete bounded validation before payment challenge; externalRequests=0"
  ],
  "limits": {
    "inputBytes": 100000,
    "outputBytes": 400000,
    "jsonNodes": 12000,
    "depth": 20,
    "profile": "supplied-calendar-grid-v1",
    "participants": 32,
    "intervals": 512,
    "endpointTicks": 1000000000000,
    "windowTicks": 1000000000,
    "durationStepBufferTicks": 1000000000,
    "consideredStarts": 4096,
    "slots": 1024,
    "primitiveComparisons": 1000000,
    "labelCodeUnits": 128
  },
  "related": [
    "interval-analyze",
    "icalendar-compose",
    "assignment-cost-optimize"
  ],
  "errorCodes": [
    "INPUT_LIMIT",
    "OUTPUT_LIMIT",
    "COMPLEXITY_LIMIT",
    "INVALID_JSON",
    "INVALID_NUMBER",
    "INVALID_UNICODE",
    "UNSAFE_KEY",
    "INVALID_INTERVAL",
    "INVALID_WINDOW",
    "INVALID_ATTENDEE_COUNT",
    "DUPLICATE_ID"
  ],
  "requirementsProfile": {
    "format": "declared-requirements-v1",
    "facts": {
      "execution.suppliedCode": false,
      "execution.remoteMutation": false,
      "execution.llmInference": false,
      "execution.paidMcp": false,
      "verification.semanticTruth": false,
      "verification.sourceAuthenticity": false,
      "verification.liveVulnerabilities": false,
      "numbers.arbitraryPrecisionJson": false,
      "numbers.model": "ieee754-binary64",
      "privacy.requestBodyPersisted": false,
      "execution.deterministic": true,
      "execution.networkAccess": false,
      "privacy.resultBodyPersisted": false,
      "payment.x402": true,
      "payment.mpp": true,
      "operation.id": "availability-slots-compose",
      "operation.category": "structured",
      "limit.httpRequestBytes": 131072,
      "limit.requestBytes": 100000,
      "limit.responseBytes": 524288,
      "limit.resultBytes": 400000,
      "limit.jsonDepth": 20,
      "limit.jsonNodes": 12000,
      "availability.profile": "supplied-calendar-grid-v1",
      "availability.maxParticipants": 32,
      "availability.maxIntervals": 512,
      "availability.maxConsideredStarts": 4096,
      "availability.maxReturnedSlots": 1024,
      "availability.halfOpenIntervals": true,
      "availability.wholeProtectedSpanRequired": true,
      "availability.allEligibleAttendeesReturned": true,
      "availability.liveCalendarAccess": false,
      "availability.verified": false,
      "availability.reservesMeetings": false,
      "availability.conflictFreeSchedule": false,
      "availability.wallTimeInterpretation": false,
      "input.duration.maximum": 1000000000,
      "input.duration.minimum": 1,
      "input.step.maximum": 1000000000,
      "input.step.minimum": 1,
      "input.gridOrigin.maximum": 1000000000000,
      "input.gridOrigin.minimum": 0,
      "input.unit.maxLength": 128,
      "input.unit.minLength": 1,
      "input.minimumAttendees.maximum": 32,
      "input.minimumAttendees.minimum": 1,
      "input.participants.maxItems": 32,
      "input.participants.minItems": 1
    },
    "unknownPolicy": "Undeclared requirements are unknown, never compatible. Matching declared facts does not establish semantic fit or input validity.",
    "preflight": "/preflight"
  },
  "documentation": "/reference/tools/availability-slots-compose.md",
  "serviceContract": "/reference/services/availability-slots-compose.json",
  "errors": [
    {
      "status": 400,
      "meaning": "Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch",
      "retry": "Correct the request before payment"
    },
    {
      "status": 402,
      "meaning": "Payment challenge or rejected payment",
      "retry": "Use official protocol SDK; inspect payment outcome before another payment"
    },
    {
      "status": 409,
      "meaning": "Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN",
      "retry": "Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay"
    },
    {
      "status": 413,
      "meaning": "Input or generated output too large",
      "retry": "Reduce input; no payment attempted for validation failure"
    },
    {
      "status": 415,
      "meaning": "Unsupported media type or compression",
      "retry": "Send uncompressed application/json"
    },
    {
      "status": 422,
      "meaning": "Schema or service-specific semantic validation failure",
      "retry": "Correct input using returned error code; no payment attempted"
    },
    {
      "status": 429,
      "meaning": "Request/payment-attempt rate exceeded",
      "retry": "Wait for rate limit window; preserve existing payment identity"
    },
    {
      "status": 503,
      "meaning": "Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement",
      "retry": "Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation"
    }
  ],
  "numericPrecision": "JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.",
  "paymentWorkflow": {
    "discoveryOnly": false,
    "supportedProtocols": [
      "x402",
      "mpp"
    ],
    "x402": {
      "credentialHeader": "PAYMENT-SIGNATURE",
      "challengeHeader": "PAYMENT-REQUIRED",
      "receiptHeader": "PAYMENT-RESPONSE",
      "version": 2,
      "scheme": "exact",
      "paymentIdentifier": "payment-identifier extension MUST equal the HTTP Idempotency-Key",
      "sdk": "@x402/core with @x402/evm"
    },
    "mpp": {
      "supported": true,
      "credentialHeader": "Authorization",
      "challengeHeader": "WWW-Authenticate",
      "receiptHeader": "Payment-Receipt",
      "method": "tempo",
      "intent": "charge",
      "sdk": "mppx",
      "tokenDecimals": 6
    },
    "steps": [
      "Check configured readiness and the exact service schema",
      "Generate a fresh random Idempotency-Key for this operation; never use a discovery probe fixture for purchases",
      "Send valid input without a credential to obtain the official protocol challenge",
      "Use the official SDK and authorized wallet to fulfill the challenge",
      "Retry only with identical key, body, protocol and credential",
      "On PAYMENT_UNCERTAIN stop and request operator reconciliation; never blindly pay again"
    ],
    "versionedRetries": "Request fingerprint includes service release version. Retries across a version upgrade can conflict; coordinate upgrades outside the 24-hour replay window and reconcile pending attempts.",
    "docs": "/llms.txt"
  },
  "method": "POST",
  "paths": {
    "x402": "/v1/x402/availability-slots-compose",
    "mpp": "/v1/mpp/availability-slots-compose"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "window": {
        "type": "object",
        "properties": {
          "start": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000000
          },
          "end": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000000
          }
        },
        "required": [
          "start",
          "end"
        ],
        "additionalProperties": false
      },
      "duration": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000000
      },
      "step": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000000
      },
      "gridOrigin": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000000000
      },
      "unit": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      },
      "minimumAttendees": {
        "type": "integer",
        "minimum": 1,
        "maximum": 32
      },
      "participants": {
        "minItems": 1,
        "maxItems": 32,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
            },
            "required": {
              "type": "boolean"
            },
            "available": {
              "maxItems": 512,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000
                  },
                  "end": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000
                  }
                },
                "required": [
                  "start",
                  "end"
                ],
                "additionalProperties": false
              }
            },
            "busy": {
              "maxItems": 512,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000
                  },
                  "end": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000
                  }
                },
                "required": [
                  "start",
                  "end"
                ],
                "additionalProperties": false
              }
            },
            "bufferBefore": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            },
            "bufferAfter": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            }
          },
          "required": [
            "id",
            "required",
            "available",
            "busy",
            "bufferBefore",
            "bufferAfter"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "window",
      "duration",
      "step",
      "gridOrigin",
      "unit",
      "minimumAttendees",
      "participants"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "operation",
      "version",
      "result",
      "provenance"
    ],
    "properties": {
      "operation": {
        "const": "availability-slots-compose",
        "type": "string"
      },
      "version": {
        "const": "0.29.0",
        "type": "string"
      },
      "result": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "profile": {
            "type": "string",
            "const": "supplied-calendar-grid-v1"
          },
          "unit": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "consideredStarts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4096
          },
          "slots": {
            "maxItems": 1024,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000000
                },
                "end": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000000
                },
                "attendeeIds": {
                  "minItems": 1,
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  }
                }
              },
              "required": [
                "start",
                "end",
                "attendeeIds"
              ],
              "additionalProperties": false
            }
          },
          "complete": {
            "type": "boolean",
            "const": true
          },
          "availabilityVerified": {
            "type": "boolean",
            "const": false
          },
          "execution": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "profile",
          "unit",
          "consideredStarts",
          "slots",
          "complete",
          "availabilityVerified",
          "execution"
        ],
        "additionalProperties": false
      },
      "provenance": {
        "type": "object",
        "required": [
          "inputSha256",
          "outputSha256",
          "deterministic",
          "externalRequests"
        ],
        "properties": {
          "inputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "outputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "deterministic": {
            "const": true
          },
          "externalRequests": {
            "const": 0
          }
        }
      }
    },
    "additionalProperties": false
  },
  "exampleInput": {
    "window": {
      "start": 0,
      "end": 120
    },
    "duration": 30,
    "step": 15,
    "gridOrigin": 0,
    "unit": "minutes-from-supplied-origin",
    "minimumAttendees": 2,
    "participants": [
      {
        "id": "A",
        "required": true,
        "available": [
          {
            "start": 0,
            "end": 120
          }
        ],
        "busy": [
          {
            "start": 30,
            "end": 45
          }
        ],
        "bufferBefore": 0,
        "bufferAfter": 0
      },
      {
        "id": "B",
        "required": false,
        "available": [
          {
            "start": 15,
            "end": 90
          }
        ],
        "busy": [],
        "bufferBefore": 0,
        "bufferAfter": 0
      },
      {
        "id": "C",
        "required": false,
        "available": [
          {
            "start": 60,
            "end": 120
          }
        ],
        "busy": [],
        "bufferBefore": 0,
        "bufferAfter": 0
      }
    ]
  },
  "exampleResponse": {
    "operation": "availability-slots-compose",
    "version": "0.29.0",
    "result": {
      "profile": "supplied-calendar-grid-v1",
      "unit": "minutes-from-supplied-origin",
      "consideredStarts": 7,
      "slots": [
        {
          "start": 45,
          "end": 75,
          "attendeeIds": [
            "A",
            "B"
          ]
        },
        {
          "start": 60,
          "end": 90,
          "attendeeIds": [
            "A",
            "B",
            "C"
          ]
        },
        {
          "start": 75,
          "end": 105,
          "attendeeIds": [
            "A",
            "C"
          ]
        },
        {
          "start": 90,
          "end": 120,
          "attendeeIds": [
            "A",
            "C"
          ]
        }
      ],
      "complete": true,
      "availabilityVerified": false,
      "execution": false
    },
    "provenance": {
      "inputSha256": "7ae7ef63263d7ff8b510767d3a8eea50e01fc39c9dab15988e2379a3f92c8c6a",
      "outputSha256": "347105516dc56b43ed286eab482e138976e52026adfba297f7c6d7433921d895",
      "deterministic": true,
      "externalRequests": 0
    }
  },
  "requiredHeaders": {
    "Content-Type": "application/json",
    "Idempotency-Key": "random 16–128 character operation identifier"
  },
  "fixedExample": "/reference/examples/availability-slots-compose.json",
  "execution": {
    "deterministic": true,
    "externalRequests": 0,
    "maxExternalRequests": 0,
    "resultSnapshotPersisted": false,
    "fixedExampleIsIllustrativeSnapshot": false,
    "requiresPayment": true,
    "supportsMcpExecution": false
  },
  "releaseSnapshot": {
    "format": "static-release-reference-v1",
    "sourceVersion": "0.29.0",
    "sourceRegistrySha256": "a2b5ec09bf6c38b9d2879d746a4fded374f5928b445377b0270ef6aa8e6cac65",
    "generatedAt": "2026-10-06T15:38:00Z",
    "releaseAcceptance": "not-verified-by-generator",
    "runtimeReadiness": "not-evaluated",
    "livePaymentsVerified": false,
    "indexingVerified": false,
    "apiOrigin": null,
    "notice": "Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment."
  }
}
