API & MCP

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

HTTP API

  • GET https://tickwork.usefulweb.app/api/v1/tools – catalog
  • GET https://tickwork.usefulweb.app/api/v1/tools/{id} – inputs, output schema, examples
  • POST https://tickwork.usefulweb.app/api/v1/tools/{id}/calculate – run a tool
  • GET https://tickwork.usefulweb.app/api/v1/workflows · POST https://tickwork.usefulweb.app/api/v1/workflows/{id}/run
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Tools on Tickwork

  • MIDI File Inspector – See what is inside a MIDI file: tracks, instruments, tempo map, notes, length and an estimated key. tickwork_midi_inspector
  • Euclidean Rhythm Generator (MIDI) – Spread k beats evenly over n steps for several drums at once and download the groove as a MIDI file. tickwork_euclidean_rhythm
  • MIDI Quantizer with Swing – Tighten the timing of a MIDI file to a grid, with strength, swing and a window that keeps the feel. tickwork_midi_quantizer

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://tickwork.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: tickwork_midi_inspector, tickwork_euclidean_rhythm, tickwork_midi_quantizer
  • Local stdio connector: node src/mcp-stdio.ts
{
  "mcpServers": {
    "usefulweb": { "type": "http", "url": "https://tickwork.usefulweb.app/mcp" }
  }
}