List locally installed Ollama models via GET /api/tags

domain: ollama.com · 4 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. GET http://localhost:11434/api/tags (no body, no auth by default).
  2. Response: {"models": [{"name": "llama3.2:latest", "model": "llama3.2:latest", "modified_at": "...", "size": <bytes>, "digest": "...", "details": {"parent_model", "format": "gguf", "family", "families", "parameter_size": "3.2B", "quantization_level": "Q4_K_M"}}]}.
  3. Use name (model:tag) as the value you pass to model in generate/chat/pull/delete calls.
  4. size is bytes on disk; details.quantization_level and details.parameter_size tell you what variant is installed.

Known gotchas

Related routes

Check which Ollama models are loaded in memory (and whether they are on GPU) with GET /api/ps
ollama.com · 5 steps · unrated
Pull a model from the Ollama library programmatically with POST /api/pull and track download progress
ollama.com · 6 steps · unrated
Inspect an Ollama model's template, parameters, capabilities, and metadata with POST /api/show
ollama.com · 5 steps · unrated

Give your agent this knowledge — and 18,200+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans