UUIDs in LLM tool calls: short handles removed the copy errors, and word handles made one model ask less
· updated · by Plori Engineering
TL;DR. Short handles in place of raw database ids removed the copy errors in our test.
With raw ids, one of three models passed a wrong id in 3 of 40 trials, and with either handle
format no model did in 200 trials. Handles built from real words, such as ws-amber-otter,
also changed a decision: on an ambiguous request, one model asked which item the user meant
in 3 of 6 trials, against 6 of 6 with raw ids. We believed at first that models never show
raw ids to users, but we had not measured it. A search of the stored replies found an id in
21 of 124, and the format did not change that rate. The samples are small, and the change in
asking appeared on one model of three.
Plori runs AI agents in cloud Workspaces. Its chat assistant gets a list of the user's Workspaces and notices about their tasks, and when it calls a tool it copies the id of a Workspace or a task into the call. This post is about which form of that id the model should see.
Three id formats on three models
We compared three formats for the ids in the list and the notices:
- Raw ids are the database ids. A Workspace has a 36-character UUID, and a task has a 32-character hexadecimal string.
- Word handles are a prefix and two words, such as
ws-amber-otterandrun-polite-river. - Letter-digit handles are a prefix and four characters that alternate letter and digit,
such as
ws-k7q2.
A handle is valid only inside one user's conversation. The platform replaces it with the real id before the tool runs, and it rejects a handle that it did not issue.
The test had 20 cases and three models from three providers, which we call model A, model B and model C. A full round had 200 trials: 6 per case for model A and 2 per case for models B and C. Code checked the tool name and the id argument. We ran the test on 2026-11-07.
Do LLMs copy UUIDs wrong in tool calls?
One of our three did. With raw ids, model B passed a wrong id in 3 of 40 trials. One was a UUID with six groups where a UUID has five, one had 13 characters in its last group where a UUID has 12, and the third did not match the expected task id. Models A and C passed no wrong id.
Word handles gave 0 wrong ids in 200 trials, after we fixed a defect in the test harness, and letter-digit handles also gave 0 wrong ids in 200 trials. Three errors is a small count, but the model that made them made none with either handle format: 0 of 40 with word handles and 0 of 40 with letter-digit handles.
Word handles made one model ask less often
This is the result that we cannot explain. In this case the user says "update the report". Two Workspaces fit, "Sales report" and "Annual report", and "Sales report" is the one used most recently. The expected response is to ask which report.
We ran model C on this case in three pairs. Both arms of a pair ran in the same round, with 6 trials per arm. The table shows how often the model asked.
| Pair | Raw ids | Word handles | Letter-digit handles |
|---|---|---|---|
| 1 | 6 of 6 | 3 of 6 | not run |
| 2 | 6 of 6 | 3 of 6 | not run |
| 3 | 4 of 6 | not run | 5 of 6 |
In pair 2 the instructions to the model were byte-identical in both arms, so a difference in the instructions does not explain the drop.
Across all rounds, model C did not ask in 15 trials: 2 with raw ids, 11 with word handles and 2 with letter-digit handles. In all 15 it did the same thing, which was to send the task to "Sales report", the most recently used Workspace. Models A and B asked in every trial with every format.
We do not know why word handles made model C ask less often. The data shows only the rate. The format changed a decision on one model of three, so a new id format needs a test on the requests where the model must choose between items.
The id format did not keep ids out of replies
With raw ids, 21 of 124 replies contained a task id. With word handles, 18 of 121 did. All of them answered a notice that a task had finished, failed or was waiting. One reply with a word handle was "Task run-polite-river has completed. The prices it reported are: ...", and with raw ids the same kind of reply gave the 32-character id.
Two other changes reduced the number. The notices named the task handle and did not name the Workspace. After we changed them to name the Workspace, 8 of 125 replies contained a task id or handle. Then we added a filter that removes a handle in parentheses from a reply before the user gets it, and in the last round 0 of 122 delivered replies contained one. We stored those replies after the filter, so we do not know how many the models wrote with a handle.
The raw-id round had no check for an id in the reply, and we read the missing check as zero until a search of the stored replies found the 21. So the format did not reduce how often an id reaches the user. The notices and the filter did.
What we shipped, and the case that got worse
We shipped letter-digit handles, the notices that name the Workspace and the filter.
| Measurement | Raw ids | Word handles | Letter-digit handles |
|---|---|---|---|
| Trials with a wrong id in a tool call | 3 of 200, all from model B | 0 of 200 | 0 of 200 |
| Model C asked on "update the report", all rounds pooled | 18 of 20 | 11 of 22 | 12 of 14 |
| Replies with a task id or handle | 21 of 124 | 18 of 121, then 8 of 125 after the notices named the Workspace | 0 of 122, after the filter |
One case got worse, and we shipped the letter-digit format with this result known. The conversation says "We are working in Shop", and then the user says "check prices every Monday". The assistant must send the task to the Shop Workspace. In two same-round pairs, model C did this in 6 of 6 trials with raw ids and in 5 of 6 with letter-digit handles, and over all rounds it was 14 of 14 against 10 of 14. In the 4 failures it asked a question first, for example "Which products should I check prices for every Monday?".
What to do in your own system
- Do not make the model copy long raw ids. Give it a short handle, and replace the handle with the real id on the server.
- Do not build handles from real words. One of our three models asked less often on an ambiguous request with them.
- Do not expect an id format to keep ids out of replies. Name what the item belongs to in the same message as its id, and check each reply before you send it.
- Run every check on the baseline too. We did not, and we believed a zero that we had not measured. In an earlier test of our model router, the control run was what changed the conclusion: the cheapest model, pinned, resolved as many tasks as the routed run, 34 of 50 each.
- Test the ambiguous case on every model that you serve. Two of our three models showed no change.
Limits of this test
- The samples are small. Each same-round pair had 6 trials per arm. An earlier post on MCP tool pickup also used 6 runs per prompt, and two differences that our behaviour eval flagged disappeared on 10- and 20-run reruns.
- The change in asking appeared on model C only.
- The pooled rows in the table mix rounds with different prompt wording and notice text. The same-round pairs are the stronger evidence.
- The 0 of 122 belongs to the notices and the filter together with the format. It does not measure the format.
- All cases come from one assistant with one set of tools.