API & MCP

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

HTTP API

  • GET https://officeloft.usefulweb.app/api/v1/tools – catalog
  • GET https://officeloft.usefulweb.app/api/v1/tools/{id} – inputs, output schema, examples
  • POST https://officeloft.usefulweb.app/api/v1/tools/{id}/calculate – run a tool
  • GET https://officeloft.usefulweb.app/api/v1/workflows · POST https://officeloft.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 Officeloft

  • Officeloft SDP & ICE Inspector – Read a WebRTC offer, answer or ICE candidates: media, codecs, encryption and connection paths. officeloft_sdp_inspector
  • Officeloft Mesh Call Bandwidth – How much upload a peer-to-peer video call needs for 2–12 people, and whether your line copes. officeloft_mesh_bandwidth
  • TimeFair Meeting Planner – Find fair meeting times across time zones, with DST-exact local times and rotation. timefair

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