API & MCP

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

HTTP API

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

  • Parley Chat Transcript – Turn a Parley channel export into a readable Markdown, HTML or text transcript. parley_transcript
  • Parley Message Check – See how a chat message renders: formatting, safe links, @mentions and what gets notified. parley_message_check
  • Safe Markdown Preview – Render Markdown with GFM tables and footnotes to sanitised HTML and see what was removed. safe_markdown_preview

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