Inspect an Ollama model's template, parameters, capabilities, and metadata with POST /api/show

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

Documented steps

  1. POST http://localhost:11434/api/show with {"model": "llava"}.
  2. The response includes: modelfile (the reconstructed Modelfile text), parameters (defaults like stop sequences), template (the Go-style prompt template), details (format/family/parameter_size/quantization_level), model_info (GGUF metadata keys like general.architecture, llama.context_length, llama.embedding_length), and capabilities (e.g. ["completion", "vision"]).
  3. Read model_info["<family>.context_length"] to learn the model's maximum context window before setting num_ctx.
  4. Check the capabilities array to detect vision/tool/thinking support before sending images, tools, or think parameters.
  5. Large array fields (tokenizer.ggml.tokens, token_type, merges) are returned empty unless you pass "verbose": true.

Known gotchas

Related routes

Create a customized Ollama model from an existing one with POST /api/create (system prompt, params, quantization)
ollama.com · 5 steps · unrated
List locally installed Ollama models via GET /api/tags
ollama.com · 4 steps · unrated
Pull a model from the Ollama library programmatically with POST /api/pull and track download progress
ollama.com · 6 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