An agent tool that floats to the latest version will change under you: a parameter renamed, a result reshaped, a behaviour tweaked, and the run that worked yesterday fails today with no code change on your side. Pinning is the fix: record the exact version of each tool the agent uses, and change versions deliberately, one at a time, with a test run after each change. MCP servers declare their tool sets, and those sets can change over time, which is why the list the client sees should be the pinned one, not whatever the server happens to offer today. A pinned tool is a tool you can reason about.
What you need
- A list of the tools the agent uses, with their current versions
- A record of the pinned versions, kept with the agent configuration
- A test task that exercises each tool, to run after any version change
Step 1: Record the exact version of every tool
Write down the version of each tool the agent uses, next to the agent configuration, and make the agent load that version. A version nobody wrote down is a version nobody can reproduce.
Step 2: Change one version at a time, with a test run
When a tool updates, change only that tool’s pinned version, then run the test task and compare the result with the previous run. Changing several at once hides which one broke the run.
Step 3: Roll back the pin when a new version breaks the run
If the test run fails on the new version, set the pin back to the old version and report the breakage to the tool owner. The run stays working while the new version is investigated.
Worked example: synthetic tool version pin check
The table below is a synthetic example. It shows the expected result of version pinning; no tool was updated.
| Tool | Pinned version | Test after change |
|---|---|---|
| lookup_order | 2.3.1 | Pass |
| search_docs | 1.8.0 | Pass |
| send_message | 4.0.2 | Rolled back |
| Runs use pinned versions only | Yes | Pass |
Expected result (UNTESTED). every tool runs at its pinned version, and the one broken update is rolled back while the run keeps working. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Pinning freezes behaviour, including bug fixes, so review pins on a schedule.
- A pinned version can be withdrawn by its owner, so keep a fallback version in mind.
- Pinning the tool does not pin the model, so a model change can still shift behaviour.
- A pin record that lives outside the configuration will drift from what actually runs.
