Mistral — Agents API

Point Chamade at a Mistral Agent — one you already built in la Plateforme, or a fresh one Chamade creates for you. Auth is a single API key: no OAuth, no infra to run.

What it is

Chamade talks to Mistral's native Agents API (stateful Conversations). A human messages your agent, Chamade calls Mistral with the message, and delivers whatever the agent replies. Conversation memory is kept natively by Mistral — Chamade never re-stuffs history.

Two shapes, both under the Mistral preset:

Setup

  1. Grab a Mistral API key from console.mistral.ai → API Keys.
  2. In your dashboard → an agent → pick the Mistral preset.
  3. Paste the key, then either Browse your existing agents and pick one, or switch to Create new and choose a model (e.g. mistral-large-latest). Save.

Testing with your API key

The key is the only credential — paste it and Chamade validates it for you, no separate test step to run:

Editing later

Re-open the agent and leave the key field blank to keep the stored one — you only re-paste to rotate it. Changing the model or system prompt of a Chamade-created agent transparently re-creates the underlying ag_*; a picked agent is never mutated that way.

Acting & reading

Two complementary mechanisms — the same invariant as every other Chamade provider, act with XML, read with MCP:

Why the agent doesn't act through the MCP tools

Mistral runs Connector tools server-side, so a model that says it sent a message without actually calling the tool would silently drop the action. Acting therefore stays on the XML convention, which Chamade executes itself — the model emits a tag or it doesn't. The MCP is purely a read backstop.

The personal_and_shared scope (for MCP reads)

The optional MCP read backstop needs a Mistral key with the personal_and_shared primitive access scope (a standard console key without it gets a 403 on connector creation). Chamade probes this at browse time and the picker tells you whether the box is usable:

For a picked agent, attaching the connector adds one tool to your ag_* (a consented mutation) without touching its instructions; on a created agent it's wired in at creation. Either way it's removed again if you rotate the agent's internal bearer or delete the agent.

Memory & context

Mistral keeps the full conversation server-side per Conversation — Chamade maps each of your conversations to one and only ever appends the new message. There's no truncation or compaction: a very long session eventually hits Mistral's hard context limit and returns an error, which Chamade surfaces back on the originating channel. The system prompt persists across turns (re-applied every turn for a created agent; carried in the retained history for a picked one).

Good to know