API & MCP

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

HTTP API

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

  • Favorlane Favour Balance – Who helped whom? Time-bank balances and the fewest favours that even them out. favorlane_favour_balance
  • Household Chore Rotator – Fair chore rotation by effort and availability, with per-person totals and a calendar. household_chore_rotator
  • Chore Roulette – Spin a fair chore rota: random but balanced by effort, with a “not again” rule. chore_roulette

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