ModelLens
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DATA | Yes | Path to the history file passed via `--data` (e.g. "/path/to/history.json"). Stores the newest 200 probes per model so rankings improve over time. | |
| CONFIG | Yes | Path to the JSON config file passed via `--config` (e.g. "/path/to/config.json"). Defines the `endpoints` array, where each entry has `name`, `base_url`, an optional `api_key` (may be empty for a localhost gateway), an optional `models` filter, and an optional `enabled` flag. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
ModelLens: discover, probe, rank and recommend models across OpenAI-compatible endpoints.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modelsA | List the models each configured endpoint advertises (GET {base_url}/models). Read-only network call to your own configured endpoints — no inference, no token cost. Use this FIRST, before probe/ranking, to see what is available. Returns model ids grouped by endpoint name; empty list if an endpoint is unreachable. |
| probeA | Probe models by sending REAL chat-completion requests; measures latency, success rate, streaming and tool calling. Side effects: consumes upstream tokens/quota and hits the network (open-world) — every probe is a real, billed completion. Use to measure what works RIGHT NOW, then call ranking. Returns per-model probe rows (ok, latency_ms, status, stream_ok, tools_ok). |
| rankingA | Return the quality ranking computed from RECORDED probe history (read-only scoring; also does a live read-only GET of each endpoint's /models list — no inference, no new probes, no token cost). Ordered best-first by score = success 50% + median latency 30% + cancellation 20%. Use after probe to see the ranked table; use recommend for a routing pick. Rows include model, score, success%, cancel%, median latency, verdict. |
| recommendA | Return the best model(s) for a task profile: 'fast' (lowest latency among models with >=90% success), 'cheap' (zero-priced when the endpoint advertises pricing, else a reliability fallback), or 'capable' (highest score). Read-only: scores from recorded history plus a live read-only /models GET; omit profile to use the default. Use when you need ONE model to route to right now. |
| reportA | Return the whole picture as a markdown report: endpoints, verdict counts, top models by score, and the full per-model table. Read-only scoring plus live read-only /models discovery (no inference, no token cost). Use to inspect or share overall gateway health (e.g. paste into a STATUS.md). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
The core split between side-effectful probing and read-only ranking/recommendation/reporting is clear and reinforced by sequencing guidance. Some overlap remains because list_models, report, ranking, and recommend all mention live /models discovery, and report versus ranking both return model tables, but the descriptions mostly distinguish their intended use.
Only list_models follows a clear verb_noun pattern; report, probe, and recommend are bare verbs while ranking is a noun/gerund. The names remain readable and none are chaotic, but the convention is mixed rather than predictable.
Five tools fit the server's purpose cleanly: discovery, active probing, historical ranking, task-specific recommendation, and reporting. Each tool has a distinct role and the surface does not feel padded or thin.
The suite covers the main lifecycle: listing available models, probing them, ranking recorded results, recommending a routing pick, and reporting gateway health. Minor gaps exist around endpoint configuration, history management or reset, and targeted probe controls, but the core evaluation workflow is complete.