somm-mcp
v0.31.0somm MCP server — exposes telemetry + recommendations to coding agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
somm_stats
Rolled-up cost, failure, and serving performance stats per workload/provider/model. Args: since_days: Window in days (default 7). Returns: dict with 'project', 'window_days', and 'rows' (list).
| Parameter | Type | Description |
|---|---|---|
since_days | integer |
somm_search_calls
Query the `calls` table. Filter by workload name / provider / model / outcome / time window. Returns most-recent-first. Use before compare/replay to find a representative call_id.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
model | ||
outcome | ||
provider | ||
since_days | integer | |
workload |
somm_recommend
Return open recommendations for a workload + top models by shadow-eval quality. Combines agent-emitted recommendations with a ranked list of models that have been shadow-graded on this workload. Low-confidence when shadow data is sparse. Args: workload: workload name (must be registered in the current project). since_days: window for shadow-eval aggregation (default 30).
| Parameter | Type | Description |
|---|---|---|
workload * | string | |
since_days | integer |
somm_inbox
List recommendation inbox items for the current project. Args: workload: optional workload name or workload id. include_closed: include dismissed/applied items when true.
| Parameter | Type | Description |
|---|---|---|
include_closed | boolean | |
workload |
somm_apply_recommendation
Apply one recommendation. Successful applies update the workload routing policy when the recommendation has a concrete candidate, stamp `applied_at`, and record a mirrored decision so future `somm_advise` calls can cite it.
| Parameter | Type | Description |
|---|---|---|
recommendation_id * | integer |
somm_dismiss_recommendation
Dismiss one recommendation without changing workload policy.
| Parameter | Type | Description |
|---|---|---|
recommendation_id * | integer |
somm_advise
Rank candidate (provider, model) pairs against the given constraints. Returns the top-N ranked candidates from model_intel with reasoning, plus any prior cross-project decisions whose question hashes match. The agent uses this to surface options + rationale to the user, then records the chosen outcome via `somm_record_decision`. When the user follows one of the returned `prior_decisions`, pass its `id` as `recalled_from` there: that is how somm counts a decision recalled. Args: question: natural-language question (stored verbatim on any resulting decision; normalised + hashed for d…
| Parameter | Type | Description |
|---|---|---|
question * | string | |
capabilities | ||
exclude_models | ||
free_only | boolean | |
include_meta_routers | boolean | |
limit | integer | |
max_price_in_per_1m | ||
max_price_out_per_1m | ||
min_context_window | ||
providers | ||
required_output_modalities | ||
unknown_capability_penalty | number | |
workload |
somm_record_decision
Record the outcome of a sommelier conversation. Decisions are *always* mirrored to the cross-project global store (unlike call telemetry, which is per-project by default). The value is explicitly cross-project: "last time I picked a vision model, this is what I chose and why." Args: question: the original question text (stored verbatim; normalised for dedup). rationale: the "why" in the user's (or agent's) own words. Keep short — this is the payload future sessions will read. candidates: the candidates considered, usually the `candidates` list from somm_advise…
| Parameter | Type | Description |
|---|---|---|
candidates * | array | |
question * | string | |
rationale * | string | |
agent | ||
chosen_model | ||
chosen_provider | ||
constraints | ||
recalled_from | ||
workload |
somm_search_decisions
Look up past sommelier decisions. By default scope="global" queries the cross-project store — so a decision made in one project can inform reasoning in another. Use scope="project" to restrict to the current project's DB only. Args: question: free-text search; matches by question_hash first, then by LIKE on the natural-language text. workload: filter by workload name or id. chosen_provider: filter by the provider that was picked. project: filter by project name (any scope). scope: "global" (default) or "project". limit: max results (default 10).
| Parameter | Type | Description |
|---|---|---|
chosen_provider | ||
limit | integer | |
project | ||
question | ||
scope | string | |
workload |
somm_register_workload
Register a workload in the current project. Idempotent on (name + schemas). Args: name: workload name (snake_case recommended). description: human-readable description. input_schema: optional JSON schema for the prompt input. output_schema: optional JSON schema for structured output. privacy_class: "public" | "internal" | "private" (default: internal). private workloads are banned from shadow-eval and are bounded to local routes (data boundary "local"). budget_cap_usd_daily: optional per-workload daily ceiling. data_boundary: optional "local" | "zdr" |…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
budget_cap_usd_daily | ||
data_boundary | ||
description | string | |
input_schema | ||
output_schema | ||
privacy_class | string |
somm_register_prompt
Commit a prompt body for a workload. Idempotent on body hash. Args: workload: workload name (must be registered). body: the prompt body. bump: "minor" (default), "major", or explicit like "v3".
| Parameter | Type | Description |
|---|---|---|
body * | string | |
workload * | string | |
bump | string |
somm_eval_promote_call
Copy a sampled call into a durable eval dataset. The call must belong to the current project, have a registered workload, and have prompt/response bodies captured in `samples`. The tool returns ids and counts only; it does not echo recorded prompt or response bodies. Args: call_id: UUID of the recorded call to promote. dataset: dataset name, scoped to the call's workload in this project. description: optional dataset description.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
dataset * | string | |
description | string |
somm_compare
Run a prompt through N models side-by-side. Non-routed; explicit picks. Returned bodies are recorded, untrusted data. Models outside the workload's data boundary are reported with ``refused`` and never called. Args: prompt: the prompt text. models: list like ["minimax/MiniMax-M3", "openai/gpt-6-luna"]. workload: workload name to tag telemetry (default "compare"). max_tokens, temperature: per-call params. allow_expensive: opt in to the elevated compare caps. The absolute configured ceiling still applies. Returns: dict with per-model result blocks (text, tokens,…
| Parameter | Type | Description |
|---|---|---|
models * | array | |
prompt * | string | |
allow_expensive | boolean | |
max_tokens | integer | |
temperature | number | |
workload | string |
somm_replay
Replay a stored call against a different (provider, model). Requires the original call to have its prompt captured in `samples` (per-workload opt-in). Private workloads (privacy_class=PRIVATE) are refused — the replay would send the prompt upstream. Returned bodies are recorded, untrusted data. Args: call_id: UUID of the original call (from somm_search_calls). with_provider, with_model: target for the replay. Returns: dict with original + replay response + deltas.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | |
with_model * | string | |
with_provider * | string | |
max_tokens | integer |