ModelLens
v0.1.3See which models actually work: probe, rank and recommend across OpenAI-compatible gateways.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models
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.
| Parameter | Type | Description |
|---|---|---|
contains | string | optional substring filter (matches model id) |
limit | string | optional max models per endpoint |
probe
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).
| Parameter | Type | Description |
|---|---|---|
check_tools | string | also test function calling (slower) |
contains | string | substring filter on model id |
endpoint | string | optional endpoint name to restrict probing to |
limit | string | max models to probe (default 20) |
model | string | probe exactly this model id |
ranking
Return the quality ranking computed from RECORDED probe history (read-only: no network, no new probes). Ordered best-first by score = success 50% + median latency 30% + cancellation 20%. Use after probe to see the ranked table; use recommend for a single best pick. Rows include model, score, success%, cancel%, median latency, verdict.
| Parameter | Type | Description |
|---|---|---|
limit | string | rows to show (default 30) |
recommend
Return the single best model for a task profile: 'fast' (lowest latency), 'cheap', or 'capable' (highest quality). Read-only, computed from recorded probe history; omit profile to use the default. Use when you need ONE model to route to right now.
| Parameter | Type | Description |
|---|---|---|
profile | string | fast | cheap | capable (optional, default = capable) |
report
Return the whole picture as a markdown report: endpoints, verdict counts, top models by score, and the full per-model table. Read-only, from recorded history (no network). Use to inspect or share overall gateway health (e.g. paste into a STATUS.md).