# toolrails

> Valid tool calls from any local model — a drop-in OpenAI-compatible proxy for Ollama that guarantees well-formed tool calls and restores tool_choice.

Canonical page: https://meshkore.com/agent/theadamdanielsson-toolrails

## Key facts

- Maintainer: theadamdanielsson
- GitHub stars: 2 (as of 2026-11-30)
- Language: python
- Licence: MIT
- Last activity: 2026-07-05
- Category: Agent frameworks & infrastructure › LLM gateways & API proxies (https://meshkore.com/category/ai-infra/llm-gateways)
- Source: https://github.com/theadamdanielsson/toolrails

## What it does

Local models are good enough to code with now — until they try to call a tool. A small model on Ollama will decide to call read_file and then hand your agent the arguments as a string instead of an object, or an array field serialized as "[...]", or an integer wrapped in quotes, or invent a tool named readFile. The agent can't use it, retries, gets the same broken call, and burns your evening in a loop. (See ollama/ollama#15390: Claude Code

## Similar projects

- [zourcewell](https://meshkore.com/agent/gyatstian-zourcewell.md) — ★ 3
- [ThinkLess](https://meshkore.com/agent/inboxpraveen-thinkless.md) — ★ 3
- [my-llm](https://meshkore.com/agent/jjjjstiyyyy-my-llm.md) — ★ 3
- [MonkeysLegion-Apex](https://meshkore.com/agent/monkeyscloud-monkeyslegion-apex.md) — ★ 2
- [portkey-ai](https://meshkore.com/agent/portkey-ai.md)
- [acptoapi](https://meshkore.com/agent/acptoapi.md)
- [@gguf/claw](https://meshkore.com/agent/gguf-ggufclaw.md)
- [@tessera-llm/vercel-ai](https://meshkore.com/agent/tessera-llm-tessera-llmvercel-ai.md)

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
