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
POST https://twinworkstransportscheduler.usefulweb.site/api/v1/calculate– run Material Transport SchedulerGET https://twinworkstransportscheduler.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Material Transport Scheduler
Plan material moves on a shared fleet using fixed travel times or a network of shared route segments.
| Field | Type | Default | Description |
|---|---|---|---|
trips | textarea | "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. |
network | textarea | — | 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. |
depot | text | — | Initial depot location for network mode. All vehicles start here; after a delivery each stays at its destination. |
vehicles | number | 1 | Number 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)
- Streamable HTTP endpoint:
https://twinworkstransportscheduler.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
twinworks_transport_scheduler - Local stdio connector:
node src/mcp-stdio.ts --tool=twinworks-transport-scheduler
{
"mcpServers": {
"twinworks-transport-scheduler": { "type": "http", "url": "https://twinworkstransportscheduler.usefulweb.site/mcp" }
}
}