API & MCP

Everything a person can do on Prompt-to-Tool Router, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://prompttotoolrouter.usefulweb.site/api/v1/calculate – run Prompt-to-Tool Router
  • GET https://prompttotoolrouter.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Prompt-to-Tool Router

Takes a natural-language request (English or German) and ranks the usefulweb.site tools and workflows that can solve it, using transparent keyword matching (TF-IDF with synonyms), and proposes a sequence of tool calls.

Inputs of Prompt-to-Tool Router
FieldTypeDefaultDescription
request (required)textarea—What do you want to do?
maxResultsinteger5Max tools

Example request

Moving into a new apartment

curl -X POST https://prompttotoolrouter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"request":"I'm moving into a new apartment. Can you help me plan everything and avoid unnecessary expenses? Will my sofa fit through the door?"}'

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