Mistral Large 4 — Agents, tool calling, MCP and OpenCode
The European frontier — vision, tool use, agency, 9+ EU languages. Agent loops, tools, MCP servers, OpenRouter/OpenCode wiring.
Agent architecture
- Planner: Mistral Large 4 decomposes the goal into 2–7 tool-eligible steps.
- Executor: a small model or rule engine performs calls; never let planner call shell unless invoked by policy.
- Verifier: deterministic checks + judge model; rejects incomplete runs.
- Memory: session summary in context; long-term store outside prompt when over 20 turns.
- Tools: internal APIs and MCP servers; every write requires explicit approval gate.
MCP server recipe
{
"servers": {
"internaldatabase": { "command": "node", "args": ["mcp-db.js"], "env": { "DB_READ_ONLY": "true" } },
"github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"] }
}
}
OpenCode / OpenRouter / Cursor / Kilo Code wiring
- OpenCode:
~/.opencode/config.jsonadd provider → baseURL → apiKey; then/model mistral-ai. - OpenRouter: point to
https://openrouter.ai/api/v1; choose the exact slug; setextra_body={"provider":{"order":["Mistral AI"]}}. - Cursor: Settings → Models → Add OpenAI-compatible provider; enable only safe tools; disable network hosts by default.
- Kilo Code: Code mode → provider → OpenAI-compatible; paste baseURL and key; set max_tokens and temperature.
- CLI: use for one-shot file edits; connect to local CI for post-change checks.
Tool schema example
{
"name":"approve_refund","description":"Approve a refund under $500 after policy checks",
"parameters":{"type":"object","required":["id","amount_usd"],"properties":{
"id":{"type":"string"},"amount_usd":{"type":"number"},
"reason":{"type":"string"}}}
}
Frequently asked questions
How current is this guide for Mistral Large 4?
Pricing, model IDs and availability change monthly. Check the console/provider docs before you deploy; mark every figure “as of Nov 2026” in your internal notes.
Can I use Mistral Large 4 for regulated decisions?
Use it as decision support, never as an unattended decision maker. Redact PII, require human approval, keep an evidence trail and match DPA/region to your policy.
Where do Mistral AI guides fit beside the AI Models Atlas?
The Atlas card answers “should I use it?”; this guide answers “how do I ship it?” — keys, code, agents, pricing, evaluation and failure handling.
Security defaults
Never commit keys; use a secrets manager; rotate after any leak; scope keys to least privilege; keep a blocked-model allowlist/denylist.
← All Knowledge Base minisites · Mistral AI hub · Prompt Library