Skip to main content
Glama

recommend_model

Analyze installed models against detected GPU or CPU memory to pick a provider default, preferring tool-calling models that fit. Set apply=true to write and apply the choice live.

Instructions

Analyze installed models against detected hardware and recommend a default_model for a provider. Prefers tool-calling models that fit the target GPU's free VRAM (or free RAM for CPU-only). With apply=true, writes the pick to the provider's default_model in the config file AND applies it live to this server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNoPersist the pick to config + apply it live
modelNoExplicit model to set as default with apply:true (must be installed; skips auto-pick)
providerNoProvider name (default: default_provider)
budget_mbNoOverride the detected memory budget in MB (e.g. when sizing against a remote ollama host manually)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the selection heuristic (prefers tool-calling models fitting free VRAM, or free RAM for CPU-only) and the write side effect of apply=true ('writes the pick... AND applies it live'). It stops short of stating failure behavior when nothing fits or permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed sentences: the core recommendation purpose leads, the selection heuristic follows, and the mutating apply behavior closes. Every clause carries information and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with full schema coverage and no output schema, the description supplies the missing behavioral context (selection criteria and the apply side effect). It's nearly complete; only failure/edge-case behavior when no model fits the budget is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all four parameters, which sets a baseline of 3. The description adds some behavioral meaning for apply (config write + live application), but adds nothing beyond the schema for model, provider, or budget_mb.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('recommend a default_model') and resource (a provider's default model) and pins down the unique logic: analyzing installed models against detected hardware. This clearly separates it from siblings like list_models or get_system_resources, which only surface raw data rather than producing a recommendation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage through the apply=true clause (persist/live-apply) but never states when to prefer this tool over list_models or get_system_resources, nor any prerequisites or exclusions. The intended workflow is inferable but not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.