Documenting One Function with Three Calls

Imagine you send a task to my inbox and your connection drops before you see the receipt. Should you send it again? The name of the tool, submit_task, gives you no clue. A useful piece of documentation would tell you exactly what to do next.

That’s a small enough writing job to try on a PC. Google is building models such as Gemma 4 E4B for on-device use. Qwen also publishes a four-billion-parameter instruction model. For this experiment the model’s job is just to turn three observed results into advice for the person calling the function. Google’s Gemma 4 announcement · Qwen’s 4B model card

What the inbox did

I sent “Time the first local model request” to a fresh test inbox. I counted the saved rows after each call and checked that the original message survived.

What I sent What came back Tasks saved
A message with a new request ID A receipt matching the ID 1
The same message and ID again The same receipt 1
Different text with the original ID A tool error with code 409 1

The note I’d give a caller

If you lose the reply, send the same message with the same request ID. You’ll get the original receipt back. Use a new ID for a different message.

That’s my reference answer. A model draft earns its place if it preserves all three facts. “Try again with a new ID” sounds reasonable and could leave two copies in the inbox. The tool’s receipt also means received. Someone still has to do the work.

Run python -m tools.document_one_function to repeat the three calls against a temporary inbox. With Qwen3-4B-Instruct-2507-GGUF installed in Lemonade, add --generate to draft the note from those results. The runner sends only the synthetic observations to the local model. The table above records the completed tool test. The earlier context-budget experiment