A customer told us that updating files on their site through our
MCP server had gotten slow. We went looking for the
slow part. There wasn't one. Storage was healthy, the edges were healthy, and every
request in the log had returned ok in a few hundred milliseconds.
What was slow was the shape of the work. The agent on the other end was uploading a stylesheet in 3,072-byte pieces, one tool call each, then deploying a temporary Cell to glue them back together. It had been doing this for the better part of a day. Nothing was broken. We had simply never told it that the job was one HTTP request.
Two calls, back to back, each writing base64 into a bucket:
g7_object_put key: "_tmp/part-16" encoding: "base64"
g7_object_put key: "_tmp/part-17" encoding: "base64"
Every payload decoded to exactly 3,072 bytes, and the keys were sequential. Our limit on that tool is 256 KB, so each call carried one eighty-fifth of what it was allowed to carry and paid a full round trip to do it. A round trip here means the model writes out 4,096 characters of random base64 as output tokens, which is the most expensive way anything has ever moved three kilobytes.
The account's audit log explained the rest. One Cell had been created and deleted eleven times in twenty hours, alive for thirty to forty-five seconds each time. The agent was writing chunks into a bucket, deploying a Cell whose whole job was to read them back and concatenate them, invoking it once, and deleting it. Then doing the same thing again on the next edit.
Each of those deploys also took a fresh address, since a delete and a re-create can't reuse the one on file, so every cycle left orphaned code sitting on the edges. All of this reached the customer as "the platform is slow today."
Our cell_deploy tool takes JavaScript source as a string, plus bindings for
databases, buckets, environment values and secrets. It does not take files. A site with a
hundred built assets cannot be deployed with it, and nothing in the tool description said
so. The agent did what a competent engineer does with an incomplete API: it composed the
primitives it had into the one it was missing.
The worse part is that it never needed to. Static assets behind a FILES binding are read
from the bucket at request time, so uploading an object is the publish step.
Changing one stylesheet on a live site is one presigned URL and one curl -T.
A redeploy would not have helped even if it had been possible.
That was true the entire time. It is in our storage documentation and it is in the router. It was absent from the one place the agent was actually reading, which was the list of tools and the sentences attached to them.
An agent builds its picture of what your platform can do almost entirely from the tools you expose and the words attached to them. That picture is the whole map. Where the territory is missing from it, the agent does not stop and file a bug against you. It gets to the goal with the primitives that are on the map, because getting to the goal is the job you gave it.
So a missing tool costs far more than it looks. The work still happens, just a worse way, silently, on every repetition, and it reaches you weeks later as a vague complaint about speed. We were told "it's slow." We were not told "your deploy tool has no path for files," which is what was being reported.
We had already written the correct advice. g7_object_put rejects anything
over 256 KB with an error naming the tool you should have reached for instead. That error
was the only place in the entire surface where the right answer appeared, and it was
unreachable. The failure ran at 3 KB, far under the ceiling, so the guard never fired
once across twenty hours of doing the wrong thing.
Limits catch the extreme case. Agents fail in the comfortable middle, well inside every bound you set, which is where nothing is watching.
There are three places to put guidance in an MCP server, and they are not equally useful.
Server instructions load once, at the start of a session, then compete with everything the user says afterwards. Tool descriptions load with the tool list, before the agent knows what it is going to be asked to do. Tool results arrive in the middle of the work, addressed to a decision being made at that moment.
Only the third one shows up on time, so we started using it. A put whose key looks like a
piece of a split file now returns ok plus a note: presigning exists, it takes
a list of keys, and files behind a FILES binding are live when they land. It interrupts
the loop on the first iteration rather than the eleventh.
g7_presign_upload takes a keys array and returns one URL per
key, so an entire build is a single call and the bytes never touch the model.
cell_deploy takes files_bindings, so a first deploy can point at
a bucket you have already filled. g7_object_put now describes itself as the
small-object tool it is and names presigning as the default. The server instructions say
in four sentences that files serve live from the bucket and that splitting a file across
calls is never the answer.
The platform could do every bit of this on the day the customer started chunking. What was missing was any way to learn that from the tool list.