Solves a scheduling/roster problem (gym class rosters, dance-school timetables, restaur…
Solves a scheduling/roster problem (gym class rosters, dance-school timetables, restaurant shift plans) with OR-Tools CP-SAT: assigns resources to slot demands honoring availability, tags, and constraints (no double-booking, max-per-day, min-rest, forbidden/r…
by x402-api-24223879872.us-east1.run.app · discovered, not yet claimed by its owner · updated 2026-09-23
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Solves a scheduling/roster problem (gym class rosters, dance-school timetables, restaurant shift plans) with OR-Tools CP-SAT: assigns resources to slot demands honoring availability, tags, and constraints (no double-booking, max-per-day, min-rest, forbidden/required pairs, fixed assignments, max total hours), optimizing the requested objective. Infeasible inputs come back with the specific conflicting demands/constraints named.
Tags: bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-09-23
{
"constraints": [
{
"type": "no_double_booking"
}
],
"demands": [
{
"id": "yoga-mon-9am",
"required": 1,
"requiresTags": [
"yoga"
],
"slotId": "mon-9am"
},
{
"id": "yoga-mon-10am",
"required": 1,
"requiresTags": [
"yoga"
],
"slotId": "mon-10am"
}
],
"objective": "balance_load",
"resources": [
{
"availability": "all",
"id": "alice",
"tags": [
"yoga"
]
},
{
"availability": [
"mon-9am",
"mon-10am"
],
"id": "bob",
"tags": [
"yoga",
"spin"
]
}
],
"slots": [
{
"day": "MON",
"end": "10:00",
"id": "mon-9am",
"start": "09:00"
},
{
"day": "MON",
"end": "11:00",
"id": "mon-10am",
"start": "10:00"
}
],
"timeLimitSeconds": 5
}{
"assignments": [
{
"demandId": "yoga-mon-9am",
"resourceId": "alice",
"slotId": "mon-9am"
},
{
"demandId": "yoga-mon-10am",
"resourceId": "bob",
"slotId": "mon-10am"
}
],
"stats": {
"objectiveValue": 0,
"resourceLoad": {
"alice": 1,
"bob": 1
},
"wallTimeMs": 42
},
"status": "optimal"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/53615.jsonfor the price and payment options. - Pay. Call
GET https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.3 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.3 | 0x8b9B012432A6B17dD08934Fa357D61aAb3fcE93D | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8b9B012432A6B17dD08934Fa357D61aAb3fcE93D",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "300000",
"amountUsd": 0.3,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"assignments": {
"items": {
"properties": {
"demandId": {
"type": "string"
},
"resourceId": {
"type": "string"
},
"slotId": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"infeasibility": {
"nullable": true,
"properties": {
"explanation": {
"type": "string"
},
"unsatisfiableConstraints": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"stats": {
"properties": {
"objectiveValue": {
"type": [
"number",
"null"
]
},
"resourceLoad": {
"type": "object"
},
"wallTimeMs": {
"type": "number"
}
},
"type": "object"
},
"status": {
"enum": [
"optimal",
"feasible",
"infeasible",
"timeout"
],
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"assignments": [
{
"demandId": "string",
"resourceId": "string",
"slotId": "string"
}
],
"infeasibility": {
"explanation": "string",
"unsatisfiableConstraints": [
"string"
]
},
"stats": {
"objectiveValue": 0,
"resourceLoad": {},
"wallTimeMs": 0
},
"status": "optimal"
},
"type": "string"
}Examples
curl "https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- x402-api-24223879872.us-east1.run.app
- Endpoint
- https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve
- Machine-readable
/resources/53615.json