API & MCP

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

HTTP API

  • POST https://tickworkmidiinspector.usefulweb.app/api/v1/calculate – run MIDI File Inspector
  • GET https://tickworkmidiinspector.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

MIDI File Inspector

Reads a Standard MIDI File (.mid, format 0, 1 or 2) and lists its tracks with channels, General MIDI instruments, note counts and ranges, the tempo map, time and key signatures, note lengths, the most notes sounding at once, drum hits and an estimated key from the pitch content. Includes a piano-roll overview. The same reader Tickwork uses to import MIDI files.

Inputs of MIDI File Inspector
FieldTypeDefaultDescription
filefile—MIDI file (.mid). Up to 4 MB. Leave empty to inspect a built-in sample. Nothing is stored; the file is read once for this report.
sampleselect (lofi-song, acid-locks, humanized-groove)"lofi-song"Sample when no file is uploaded

Example request

Inspect the lo-fi song sample

curl -X POST https://tickworkmidiinspector.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"sample":"lofi-song"}'

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://tickworkmidiinspector.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
  • Local stdio connector: node src/mcp-stdio.ts --tool=tickwork-midi-inspector
{
  "mcpServers": {
    "tickwork-midi-inspector": { "type": "http", "url": "https://tickworkmidiinspector.usefulweb.app/mcp" }
  }
}