🧾 One Tool per Endpoint Bills You Twice

📅 Friday, Nov 6, 2026

⏰ 9:00 AM


At a pet-supply store counter, a grinning robot presses a big red button labeled SUBMIT while a customer holding a dog collar lunges with her hand up to stop it, the cash register beside it prints a receipt reading $4.99, a long receipt printed with TOKENS spills from the robot's chest and loops across the floor, and a shaggy dog peeks over the counter

Don’t put a one-to-one set of MCP tools in front of your existing system-to-system or client API. It’s irresponsible. Whoever runs the harness, your customer or you, gets billed twice: once for token overage, and again when a non-deterministic model makes decisions your tested code used to make and gives out wrong information. On GPT-5 at OpenAI’s list prices, an endpoint server generated from a pet-supply API’s OpenAPI document cost $7.29 for 120 support requests, and a workflow server I designed around those requests cost $2.99. At 100,000 requests like these a month, that would be about $6,100 against $2,500. The endpoint server also failed 13 of the 120, and the workflow server failed none.

Nobody can measure the second bill. The worst failure came from qwen, the local model I ran first. A customer asked, “Can I trade the GPS collar in order 1029 for the large size at no extra cost? Just tell me what it would take.” With twelve endpoint tools to choose from, the model quoted the exchange, called submit_exchange_quote, and wrote back:

Your exchange for the GPS collar in order 1029 to the large size has been successfully submitted (Exchange ID: EX-7001). […] However, there is a shipping charge of $4.99 for the Ground delivery method. This is the additional cost you will be charged.

She asked a question and got a $4.99 charge she’d ruled out in her first sentence. All five endpoint runs on her question failed; the other four told her a paid option met “no extra cost.” The store’s support screen settles a cost limit with one line of JavaScript and submits only when a person presses its Submit button. The workflow server checks the limit in Java and can’t submit from a preview, and all five of its runs named $4.99 as the cheapest option and submitted nothing.

Two servers, one API, one model

My test bed is a small Spring Boot and React app for a pet-supply store. Both MCP servers call the same REST API with the same key, and neither one can reach the database or the business rules directly.

The endpoint server is the one you get almost for free. A generator reads the app’s OpenAPI document and builds one tool per operation, twelve in all, passing the application’s response DTOs straight through. It’s typed and documented, and I didn’t break anything in it on purpose. The workflow server has six tools shaped around the support job. preview_exchange takes an order reference, the customer’s own words for the item (“medium dog harness”), the size they want, and their limits; it returns an explicit outcome like options_available or needs_clarification. Only submit_exchange commits anything, and it takes the quote ID of the option the customer approved. That server is 1,069 lines of Java against the endpoint server’s 347 (not counting blank lines, comments, or package and import lines), and no model runs inside it.

There are 24 tasks in the benchmark. I tuned on 16 of them and held 8 back until the tool contracts, fixtures, catalogs, and run limits were frozen by hash. Each task ran five times on each server with qwen3.6 35B on Ollama, thinking off. Five submission scenarios ran on top of that, where the customer approves an option and the quote has to go through. That’s 290 final runs, and I read every failed one in full before I counted it.

Two caveats, and then I’ll stop hedging. Apart from the GPT-5 figures up top, every number is qwen’s until the sections on GPT-5 and Claude near the end. And the verifier that grades each run is code I wrote, so I read the failures instead of trusting it; that turned up two mistakes, both counting against the endpoint server, and fixing them moved its held-out score from 27 of 40 to 35 of 40.

The screen already knows the route

A warehouse doesn’t send a picker into the aisles with a map of every bin and wish them luck. It hands them a pick list: these items, from these shelves, in this order.

That React app’s support screen is a pick list. To preview an exchange it fetches the order, then the items, checks eligibility, finds the large variant, checks stock, gets delivery options, quotes each one, and compares the quotes against the customer’s limits. Somebody wrote that sequence once, tested it, and it runs the same way every time. The REST API was built for that screen: its client makes twelve calls, exactly the twelve operations the generator turned into tools. The generator copied the calls and left the sequence behind. A server with one tool per endpoint gives the model the map instead. On every request it has to work out the route again: which of the twelve tools to call, in what order, with which internal IDs, and what to make of each raw response.

The tokens pile up in the turns

Here’s the request I built the benchmark around: “Can I exchange the medium dog harness in order 1042 for a large, have it arrive by November 13, and keep the additional cost under $15? Show my options before submitting anything.”

On all five runs, the workflow server answered it in two model calls, about 6,100 tokens each time. The endpoint server took anywhere from 6 calls to 19, and from 21,788 tokens to 97,424. Its first run took 12 calls, and the input climbed from 2,929 tokens on the first call to 5,701 on the twelfth, because every call carries every earlier result back in. That run spent 51,413 tokens on the same recommendation the workflow server made for 6,105.

The workflow server didn’t make that work disappear. Its preview made 12 backend calls for that answer, as many as the screen makes and two more than the model made through the endpoint server. Those calls just happened in Java, where the model didn’t have to read them.

Tool catalogs don’t explain it. With the twelve endpoint tools, the first model call takes a median of 2,916 input tokens; with the six workflow tools, it’s 2,446. The gap comes from what follows: across 120 task runs each, the model made 885 model calls and 679 calls to the endpoint server’s tools; against the workflow server it made 420 and 202.

Endpoint serverWorkflow server
Dev task runs that succeeded (80 each)5877
Held-out task runs that succeeded (40 each)3539
Median tokens per task25,75711,803
Tokens across all 120 task runs3,365,8681,272,747
Median latency on the dev tasks5.1 s3.2 s

Task by task, the endpoint server cost more on 23 of the 24. Of the runs that shared a task and a repetition, it failed 23 that the workflow server passed, and the workflow server didn’t fail one the endpoint server passed.

What the model did with twelve tools

Limits are comparisons, and the model got the comparison wrong. A customer wanted the large dog bed “as long as the difference comes to under $25.” The cheapest option costs exactly $25.00 (I put that fixture in on purpose), and four of five endpoint runs offered it anyway, one with “This meets your under-$25 limit exactly.” The workflow server takes the comparison word as a parameter and applies it in code, so its preview said “No option costs under $25.00; the lowest additional cost is $25.00.”

It also worked out the weekdays itself. Neither server returns a weekday, and there isn’t one in any tool result in the whole run. A customer who needed a collar “by Monday, November 9” got an endpoint answer listing “Monday, November 10” (a Tuesday) and “Sunday, November 16” (a Monday). Four endpoint runs put a wrong weekday beside a date, and no workflow run did.

Sometimes the structured answer contradicted its own message. Asked about a large collar, one run wrote that “there are no large (L) collars currently in stock at any of our warehouses” and then sent a card offering a free ground exchange from Columbus that met every limit. It’s the card your frontend renders.

“I’d like to return the toy from order 1022” has two right readings, because the order has a Squeaky Rope Toy and a Fetch Ball 3-Pack. All ten endpoint runs on the two ambiguous-item tasks I tuned on picked one item and answered for it without asking which.

The call log shows the steps it skipped

The grades check each answer, so I checked the work too: the app’s call log and the store’s quotes, against what the support screen asks for on the same task. Endpoint runs quoted 103 of the 180 options the screen would have shown, and workflow runs quoted all 180. In 14 of the 60 exchange runs on the endpoint server, the model never checked the replacement’s stock, and each of them quoted from Columbus and nowhere else. Columbus is the example in the generated tool’s schema. Springdoc copied WH-CMH from an annotation written for the API’s Swagger page, and the model took the example as the answer. Three other calls asked for warehouses that don’t exist: WH-ATL, WH-ORD, and WH-AUS.

Eight of those 14 runs passed anyway, and five of them told the customer a higher price than the store had. The request was an extra-large dog bed for “under $30 more,” and nothing comes in under $30. Every endpoint answer priced the bed from Columbus, $47.99 by ground with a November 16 arrival, and one called that “the cheapest option.” Given the same request, the support screen lists Reno first: $45.00 by ground, there by November 10. All five workflow answers said so too, for less than half the tokens. Skipped eligibility checks cost nothing, because the store checks again before it quotes.

The workflow server has a bill too

It’s more code, and that code only covers the tasks I designed it for. The plainest request in the set, “Quick question about order 1027: has it shipped, or is it still waiting at the warehouse?”, cost the workflow server a median of 11,285 tokens and the endpoint server 9,429. Three of the five workflow runs then sent a final answer missing its required outcome field and had to send it again. In the five submission scenarios both servers got all 25 runs right. It just took the endpoint server three times the tokens to get there.

Its runs got things wrong too. All five workflow runs on the toy question read the order first, and two of them then passed “Squeaky Rope Toy” to preview_return in place of the customer’s word, so the server matched exactly one item and never saw the ambiguity it exists to catch. Another run got every verdict right and copied all three quote IDs wrong (EQ-5003 became EQ-5503). One more told a customer the options “range from $5.99 to $6.99”, and no tool ever returned $6.99.

I learned the most from a mistake of my own. During the pilot, the model on the workflow server kept leaving out the cost limit on the “no extra cost” request, so I added a line to the costLimit description saying “no extra cost” means 0.00. That fixed the task. It also taught the model to send a $0.00 limit on requests that only had a deadline: 0 of 6 runs did it before the change, 3 of 6 in the run I made to confirm the fix, and 11 of 15 in the final run. No grade moved, since the deadline decided every one of those tasks. But the customer heard that “no option meets both your delivery deadline and cost limit of $0.00 additional cost”, and they’d never mentioned cost. A tool description is code, so review it and test it like code.

GPT-5 did every step, then kept going

GPT-5 ran the same 290 on November 10, against the same frozen setup, and the gap held on all 24 tasks. Its median was 23,566 tokens per task on the endpoint server and 7,484 on the workflow server (OpenAI counts cached input and reasoning, so compare those two with each other, not with qwen’s).

It failed the other way, though. GPT-5 checked eligibility and stock in every run, so on the extra-large bed it found Reno’s $45.00 option. Then it kept quoting: 85 quotes on the endpoint server for things nobody asked about, and on the workflow server not one for another color or size. All 13 of its failures got the request right and then offered something else, like red harnesses beside the blue one on order 1042, or a large bed under $30 for a customer who’d asked about the extra large. Choosing what to show is part of the screen’s job too.

The submission scenarios cost it the most. Told “The Columbus option works for me. Please go ahead and submit that exchange,” 8 of 25 endpoint runs and 2 of 25 workflow runs asked another question instead of submitting it.

Claude missed a Thursday

Claude Opus 4.8 ran only the submission scenarios before I stopped it on cost, and got 16 of 25 right on the endpoint server at a median of 65,705 tokens, against all 25 on the workflow server at 25,607. Each of the nine failures gave November 12, a Thursday, the wrong weekday. My verifier didn’t read short weekdays like “Mon” at first, so it had passed six of them.

Pass a read through, design the sequence

I’d keep a generated pass-through tool for a single read the frontend shows as it comes back, with nothing to compare and no money moving: the status lookup above. Anything shaped like a pick list gets a tool designed around the task. That means the customer’s words in place of internal IDs, matching in code that returns candidates when those words fit two items, and limits taken as parameters along with their comparison word. It means explicit outcomes and previews that can’t commit. And it means totals and verdicts computed in Java, so the model isn’t doing the arithmetic or the calendar.

The test I’d give a team is cheap. Open your own frontend’s network panel and do the task by hand. If one call comes back and goes straight to the screen, a generated tool is fine. If the screen makes a sequence of calls with business rules between them, put that sequence behind one tool, in code, and stop asking a model to rediscover it on every request.

Hand the model the pick list. Your frontend already wrote it.