API & MCP

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

HTTP API

  • POST https://parleymessagecheck.usefulweb.app/api/v1/calculate – run Parley Message Check
  • GET https://parleymessagecheck.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.

Parley Message Check

Checks a chat message the way Parley does before sending it: the Markdown subset (bold, italic, code, links, lists, quotes, code blocks), which links are kept (only http(s) and mailto), which @mentions match a member list, whether @channel or @here notifies everybody, and the length limit. Shows the safe HTML and the plain text a notification would use.

Inputs of Parley Message Check
FieldTypeDefaultDescription
bodytextarea"Hi @Ana, the **release notes** are ready: https://example.com/notes\n- check thMessage. Up to 4000 characters. Mentions: @Name of a member (list below), @channel or @here.
memberstextarea"Ana\nBen Okafor\nCleo"Members (one name per line, optional). Used to resolve @Name mentions like Parley does with the workspace members.

Example request

Mentions, list and a link

curl -X POST https://parleymessagecheck.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"body":"Hi @Ana, the **release notes** are ready: https://example.com/notes\n- check the `v2` links\n- tell @channel when done","members":"Ana\nBen Okafor\nCleo"}'

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