Skip to main content
Glama
reasondial-mcp
by MoeShinX

reasondial

Disclaimer: Model catalog data is sourced from models.dev (MIT License). reasondial is an independent open-source project and is not affiliated with models.dev.

中文文档

reasondial is an offline-first, zero-dependency CLI, Agent Skill, read-only MCP Server, and local 127.0.0.1 virtual-model proxy for identifying LLM reasoning/thinking capabilities, valid effort levels or token budgets, and exact API parameters across official providers, aggregators, and custom relays.

Why reasondial?

  • Stop guessing reasoning tiers: gpt-5.4 supports none / low / medium / high / xhigh, deepseek-v4-pro supports toggle + low / high / max, claude-opus-4-6 supports adaptive effort + budget, and gemini-2.5-pro uses thinkingBudget (128–32768) and cannot be turned off.

  • Stop fabricating protocol parameters: Maps (protocol, provider, model) to rule-table payload fragments (reasoning_effort, reasoning.effort, thinking + output_config.effort, generationConfig.thinkingConfig, DashScope enable_thinking, OpenRouter reasoning, etc.).

  • Handle messy relay names cleanly: 6-level matching (override → exact → canonical (date-preserving) → normalized → lab_fallback → fuzzy) with explicit confidence levels, suffix intent detection (-thinking, -nothinking, -high, :thinking), and safe unknown mode handling for both catalog gaps and unmatched models.

  • Built for Coding Agents & Desktop Clients: Built-in trimmed snapshot (~1.6 MB for 10,000+ models), sub-30ms indexed lookups, compact JSON output (< 2 KB), zero-dependency CLI & MCP packages, and a single-file Agent Skill.

Related MCP server: gliana-mcp-remote

Install (Node 20+)

CLI (reasondial)

# Run directly without installing
npx reasondial lookup gpt-5.4

# Or install globally (`reasondial` is always available; `rdial` is an optional short alias)
npm i -g reasondial

MCP Server (reasondial-mcp)

Add to your MCP client configuration (Cherry Studio, Chatbox, Claude Desktop, Cursor, etc.). Purely read-only—never handles API keys:

{
  "mcpServers": {
    "reasondial": {
      "command": "npx",
      "args": ["-y", "reasondial-mcp"]
    }
  }
}

Exposes 4 read-only tools:

  1. lookup_model_reasoning — query full ReasoningProfile

  2. resolve_reasoning_params — generate protocol/model/gateway parameter fragments

  3. batch_identify_models — classify a list of relay model IDs with separate unknownModels and lowConfidenceModels lists

  4. search_reasoning_models — filter models by keyword, provider, mode, context, or cost (max 15 results)

Agent Skill

Copy skills/reasondial/ into your agent's skill directory:

  • Claude Code: .claude/skills/reasondial/

  • Codex / Generic Agents: .agents/skills/reasondial/

  • Devin: .devin/skills/reasondial/

You can also download the standalone zero-dependency reasondial.mjs (and its .sha256 checksum) directly from GitHub Releases and place it at skills/reasondial/scripts/reasondial.mjs.

CLI Usage & Real Output Examples

1. Lookup Model Capabilities

reasondial lookup deepseek-v4-pro --provider deepseek
Model: deepseek/deepseek-v4-pro (DeepSeek V4 Pro)
Match: exact | Source: snapshot (snapshot-2026-12-01)
Canonical: deepseek/deepseek-v4-pro-0813
Reasoning: supported | Mode: hybrid | Can disable: yes
Effort levels: low, high, max (default: high)
Toggle: supported
Response reasoning field: reasoning_content
Protocols: chat-completions, messages, responses (recommended: chat-completions)
Limits: context=1048576, output=393216
Cost ($/1M): input=0.66, output=1.98, reasoning=1.98

2. Resolve Exact API Parameters

reasondial params claude-opus-4-6 --provider anthropic --level high
Model: anthropic/claude-opus-4-6 | Match: exact | Mode: hybrid
Protocol: messages | Requested: high | Resolved: high | Valid: yes
Rule: anthropic.messages.adaptive-effort
Payload fragment:
{
  "thinking": {
    "type": "adaptive"
  },
  "output_config": {
    "effort": "high"
  }
}
Warnings:
  - Anthropic adaptive thinking (thinking.type='adaptive' + output_config.effort) applies to Claude 4.6+, 4.7+, and 5.x. Claude 4.7+ and 5.x reject manual budget_tokens with 400.
  - Claude Opus 5.5 and Fable/Mythos 5.x cannot disable thinking (disabled returns 400). Claude Opus 5 and Haiku 5.5 only accept thinking.type='disabled' at effort <= high.
  - On Claude 4.7+ and 5.x models, non-default temperature, top_p (default 0.99), or top_k values return a 400 error.

Note on params --gateway: When generating a rewritten model name for a suffix-based gateway (e.g. reasondial params claude-opus-4-6-20260101 --level max --gateway new-api), pass the exact model ID exposed by your relay as <model>—do not prepend a synthetic xxx/ provider prefix (use --provider if you want to specify the catalog provider).

More examples:

reasondial params gpt-5.4 --level top                  # Resolves to xhigh on OpenAI
reasondial params gemini-2.5-pro --level off           # Returns valid: false + lowestAvailable
reasondial params deepseek-v4-pro --level medium       # Defaults to nearest-down ("low")
reasondial search gemini --reasoning --mode effort --limit 10
reasondial sync [--refresh] [--offline]

3. Probe an OpenAI-Compatible Relay

API Key Security: probe reads the API key only from the REASONDIAL_API_KEY environment variable (never CLI flags, never logged, never written to disk). Billing Warning: --verify-reasoning is off by default. Enabling it sends live minimal test requests to /v1/chat/completions that incur API charges; it prints the planned request count first and requires --yes to proceed.

export REASONDIAL_API_KEY="sk-..."
reasondial probe --base-url https://relay.example.com
Relay: https://relay.example.com (host: relay.example.com, style: unknown)
Total: 6 | Controllable: 5 | Non-reasoning: 0 | Unknown: 1 | Low-confidence: 1

MODEL | CONFIDENCE | MODE | LEVELS / BUDGET | MATCHED
------------------------------------------------------------------------------------------------
openai/gpt-5.4 | exact | effort | none,low,medium,high,xhigh | openai/gpt-5.4
deepseek-v4-pro | exact | hybrid | low,high,max | deepseek/deepseek-v4-pro
claude-opus-4-6 | exact | hybrid | low,medium,high,max | anthropic/claude-opus-4-6
gemini-2.5-pro | exact | budget | budget:128..32768 | google/gemini-2.5-pro
chat-latest | exact | unknown | - | openai/chat-latest
gpt-5.4-20260305 | normalized | effort | none,low,medium,high,xhigh | openai/gpt-5.4

Unknown reasoning models (1):
  - chat-latest

Low-confidence / needs confirmation (1):
  - gpt-5.4-20260305

Optional billable live verification + saving verified findings to overrides.json:

reasondial probe --base-url https://relay.example.com --verify-reasoning --yes --save-overrides

4. Local Virtual-Model Proxy (127.0.0.1 Only)

For clients that have no UI knob for reasoning levels, start the local proxy and point your client's OpenAI Base URL to http://127.0.0.1:8787/v1:

reasondial proxy --upstream https://relay.example.com --port 8787 \
  [--gateway new-api|one-api|litellm] \
  [--normalize-reasoning-field reasoning_content]
  • Strictly binds to 127.0.0.1 only (no external bind option) so it cannot be exposed as an open proxy.

  • GET /v1/models expands controllable models into model@off, model@low, model@high, model@top, etc. (unknown and non-reasoning models are never expanded).

  • POST /v1/chat/completions strips @level and injects verified parameters—or rewrites the model name on suffix-style gateways/relays.

  • Streams SSE chunks incrementally, aborts upstream fetch immediately if the client disconnects, and optionally normalizes reasoning / reasoning_content / thinking into a single field.

  • Client API keys are forwarded in-memory only and never logged or written to disk.

Built-in Provider & Gateway Coverage

  • Provider Rules: OpenAI (responses, chat-completions), Anthropic (messages adaptive & manual budget across Claude 3.7 / 4.x / 5.x), Google Gemini (generate-content 2.5 budget & 3/4 level, interactions), DeepSeek (chat-completions, responses, messages), OpenRouter, Alibaba DashScope (enable_thinking + thinking_budget), Zhipu/Z.ai (GLM toggle & effort), Moonshot Kimi (K2 toggle & K3 effort), xAI Grok (responses, chat-completions).

  • Gateway Software Profiles (--gateway): new-api, one-api, litellm. Specific relay domains belong in your local overrides.json.

Local Overrides (overrides.json)

Location:

  • macOS / Linux: ~/.config/reasondial/overrides.json

  • Windows: %APPDATA%\reasondial\overrides.json

{
  "models": {
    "my-provider/gpt-5.4": {
      "reasoning": { "effortLevels": ["low", "medium", "high"] }
    }
  },
  "relays": {
    "relay.example.com": {
      "style": "suffix",
      "suffixMap": { "high": "-high", "off": "-nothinking" },
      "dropsParams": ["output_config"]
    }
  }
}

Environment Variables

Variable

Purpose

REASONDIAL_API_KEY

API key for reasondial probe (in-memory only; never persisted or echoed)

MODELS_DEV_URL

Mirror base URL for models.dev sync

REASONDIAL_CACHE_DIR

Override local index cache directory

REASONDIAL_CONFIG_DIR

Override overrides.json directory

Privacy

  • Zero telemetry, zero analytics.

  • Only contacts models.dev (or your MODELS_DEV_URL mirror) on sync, and the relay URL you explicitly pass to probe or proxy.

  • API keys are never accepted on the command line, never written to disk/logs, and redacted from error output.

Contributing Rules

Parameter mapping rules live in packages/core/rules/*.json. Each rule must include an official documentation link (docUrl), honest verification status (verifiedAt: YYYY-MM-DD only after directly verifying against official docs, otherwise unverified), and regression examples (examples). Run npm run build && npm test to validate all rules.

License

  • Code and parameter mapping rules: MIT — Copyright (c) 2026 MoeShinX

  • Built-in model snapshot derived from models.dev: MIT — see THIRD_PARTY_NOTICES.md (distributed with both npm packages, standalone bundles, and GitHub Releases).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Unified MCP server for managing local model runtimes (Ollama, LM Studio, etc.), enabling provider-agnostic discovery, lifecycle management, hardware-fit checks, and delegated inference.
      22
      123 npm
      Creative Commons Attribution Non Commercial No Derivatives 4.0 International
    • F
      license
      A
      quality
      D
      maintenance
      Unified MCP server for querying multiple LLM providers (Gemini, OpenAI, Anthropic, etc.) with advanced routing, cost optimization, and fallback resilience.
      2
      -