three.ws Brain

v0.1.4
io.github.nirholas/brain-mcp Checked 1 hour ago Published 1 month ago

List LLM providers and run chat completions through the three.ws multi-provider router.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_providers List LLM providers and models

List every LLM the three.ws router can run a completion through — one entry per provider/model. Each entry has: `key` (the id you pass to `chat`), `label` (human name), `network` (e.g. Anthropic, OpenAI, xAI, DashScope, NVIDIA NIM, IBM watsonx.ai), `tier` (flagship | balanced | fast | reasoning | pro | coding), `maxOutput` (max output tokens), `description`, `available` (true when the server currently holds a working key/route for it), and `requiresAuth` (true when it is a paid first-party model that needs a three.ws API key — set THREE_WS_API_KEY; false for the free open-weight tiers). Ca…

chat Run a chat completion

Run a chat completion through the three.ws LLM router and get back the full reply as a single message. Pick `provider` from `list_providers` (default `gpt-oss-120b`, a free open-weight model). `messages` is the conversation so far (roles `user`/`assistant`); add system instructions via `system`. The route streams and auto-falls-back across mirrors/free tiers if the chosen model is briefly down — this tool collapses that into one reply and reports the actual route taken, token usage, and timing. Paid first-party flagships (Claude, GPT-5, o3, Grok, Qwen Plus, DeepSeek) need a three.ws API key…

ParameterTypeDescription
messages *arrayConversation turns in order, each { role: "user"|"assistant", content }. At least one.
maxTokensintegerMaximum output tokens. Clamped to the chosen model’s ceiling by the router. Defaults to 4096.
providerstringProvider/model key from list_providers (e.g. "claude-sonnet-5", "gpt-5.4", "deepseek-r1"). Defaults to "gpt-oss-120b".
systemstringOptional system prompt / instructions prepended to the conversation.