API & MCP

Everything a person can do on Material Transport Scheduler, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Material Transport Scheduler

Plan material moves on a shared fleet using fixed travel times or a network of shared route segments.

Inputs of Material Transport Scheduler
FieldTypeDefaultDescription
tripstextarea"Move A,0,60,30\nMove B,10,60,30\nMove C,20,45,20"Trips: name, request time, loaded travel, empty return (seconds). Without a network, use name, request, loaded time, empty return. With a network, use name, request, pickup location, destination. Times are seconds.
networktextarea—Optional route network: location A, location B, travel seconds, capacity. One two-way shared segment per row. When supplied, requests use pickup and destination names and vehicles start at the depot.
depottext—Initial depot location for network mode. All vehicles start here; after a delivery each stays at its destination.
vehiclesnumber1Number of identical vehicles

Example request

Three requests and one cart

curl -X POST https://twinworkstransportscheduler.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"trips":"Move A,0,60,30\nMove B,10,60,30\nMove C,20,45,20","vehicles":1}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "twinworks-transport-scheduler": { "type": "http", "url": "https://twinworkstransportscheduler.usefulweb.site/mcp" }
  }
}