{
  "formatVersion": 1,
  "scope": "Curated public research extract; not the full raw run.",
  "canonical": "https://embiro.ai/research/tool-calls-and-receipts",
  "fieldNote": 26,
  "slug": "tool-calls-and-receipts",
  "title": "Can a model call a tool and account for the work?",
  "description": "We traced a service-desk lookup from question to receipt. Eight models completed the tool-call check. Two needed a second run.",
  "category": "Serving",
  "art": "open-intelligence",
  "thumbnail": {
    "src": "/research/thumbnails/tool-calls-and-receipts.webp",
    "alt": "A forest-green marble press stamps a check mark into an ivory receipt."
  },
  "date": "2026-11-18",
  "published": "2026-11-19",
  "updated": "2026-11-19",
  "author": "Embiro Labs Research",
  "status": "Exploratory benchmark",
  "headline": "A service-desk assistant needs to look up the right ticket, use the answer and leave a charge its operator can explain. We tested all three steps.",
  "metric": "32 / 32",
  "metricLabel": "two-turn lookups completed in one four-client test",
  "method": [
    "On 18 and 19 November we used synthetic inputs and workspaces explicitly enabled for global processing. Requests went through the public Embiro Chat Completions API. The managed providers did not expose their underlying hardware or numerical precision.",
    "Each of four clients sent eight GPT-6.1 Sol conversations with the same guide. A read-only tool supplied a fresh code and time. We checked the final answer against both values. The timer covered both model turns and the local lookup. Receipt reads followed the timed run. Ordinary and streamed calls alternated. This single 83.6-second run used no retries or cold-start reset.",
    "After the gateway release we requested one synthetic tool call per model in each mode. We checked the tool name, identifier, complete JSON arguments and terminal response. Streamed calls also had to finish the event stream. We retained failed first attempts when repeating the test.",
    "We recomputed charges from token counts and the price version on each receipt, including the cached-input rate where applicable. We reconciled final workspace totals in millionths of a US dollar.",
    "The separate regional trial used Gemma 4 E4B Q4_K_M and llama.cpp build b11429 on one NVIDIA T4 in Cape Town. Two synthetic workspaces shared a single slot and a 128-token prompt. The test erased the slot on a workspace change and replaced the worker after an interrupted stream or a deadline. All 43 layers were offloaded. Timings cover a local streamed request through its final event, after the worker became ready.",
    "The mixed-version follow-up used the same quantised weights on a local CPU, two candidate API processes, one previous-release API process, a separate job consumer and temporary PostgreSQL storage. We tested a modified single-slot native worker and the stock b11429 build with two synthetic workspaces. The native interruption controls bypassed the gateway and are excluded from the 18 receipts.",
    "The follow-up used the same model on an isolated Cape Town T4 with full 43-layer offload. The image run used the release projector, a 4,096-token context, synthetic red and blue cards and two workspaces. The separate text run exercised overlapping API and background requests, interruption and rollback. The supervisor was tested independently."
  ],
  "sections": [
    {
      "title": "Start with a question that has a checkable answer",
      "paragraphs": [
        "Imagine someone asks when their support ticket was opened. The assistant must find the right ticket, read its opening time and repeat it accurately. A plausible time can still be wrong. Our test tool issued a fresh code and time for every conversation.",
        "All 32 conversations in the four-client run returned the correct code and time. Half finished in about ten seconds. The 95th percentile was 12.9 seconds. A team designing an interactive lookup should budget for both model turns as well as its own connector."
      ]
    },
    {
      "title": "What happened when a call timed out?",
      "paragraphs": [
        "Six of eight models returned complete tool calls in both modes on the first pass. Grok 4.7 timed out on the ordinary request. Its streamed request then returned HTTP 503, and the shared test workspace rejected both Kimi requests with HTTP 429.",
        "The timed-out request later settled at $0.000458 in measured usage. Its reservation cleared. With fresh test workspaces, Grok and Kimi both passed both modes. Across the initial pass and those reruns, the three workspaces accounted for $0.007747.",
        "Save the request ID and read its receipt before deciding whether to retry. A model can incur a charge even when the caller receives no usable tool call. For actions such as booking an appointment, the application also needs to check whether its connector has already acted."
      ]
    },
    {
      "title": "What a repeated prompt tells you about cost",
      "paragraphs": [
        "In a separate 77-request check, we exercised text, tools and structured output. Seven of eight routes reported cached input on a repeated prefix. All 77 receipts reconciled to the rates in effect for that run, totalling $0.115815. Integrators can repeat this check with the guides and instructions their own products send."
      ]
    },
    {
      "title": "Can two workspaces safely reuse the same GPU?",
      "paragraphs": [
        "On a warm worker the second workspace sent the same prompt as the first. It reused zero tokens and finished in 159 ms. Repeating within either workspace reused 123 of 128 input tokens and took 72 or 73 ms. Preventing one workspace from using another’s cache preserved the benefit for repeat callers.",
        "Worker startup mattered much more than prompt reuse on the first turn. The first short answer on each of three fresh workers took 54.6 to 55.2 seconds after readiness. After a disconnect and an expired deadline, the waiting workspace made zero further dispatches to the affected worker. Each replacement started with zero cached tokens.",
        "In a separate gateway test, the interrupted stream settled once using its reserved token allowance because the provider never supplied a final count. The waiting workspace completed on a replacement with zero cached tokens. All four receipts matched after a database restart. The test used fixture rates."
      ]
    },
    {
      "title": "What happens when a different server handles the next question?",
      "paragraphs": [
        "A follow-up used the same short prompt across three API processes and a separate background worker on a local CPU. A second API process and a background job each reused 58 of 63 input tokens for the same workspace. When one workspace streamed while another submitted a job, both started cold after an unscoped request.",
        "The first job after the model process was killed and replaced also started cold. Switching back to the stock model server returned zero cached tokens, including on repeat requests. All 18 completed API and job requests matched their usage receipts at test rates, with no outstanding reservations."
      ]
    },
    {
      "title": "Does the same isolation hold when someone sends an image?",
      "paragraphs": [
        "On a dedicated Tesla T4 in Cape Town, a second server reused 58 of 63 input tokens for a repeat text question from the same workspace. Showing a red card cleared that text history. Repeating the card in a background job also started cold, and a different workspace could show a blue card and get the right answer. Text reuse resumed on the second text question after the images.",
        "The ten image and text requests and a separate eighteen-request text run each reconciled to their receipts, with zero outstanding reservations. When two workspaces competed for the same worker, neither received a cache hit. Switching back to the stock server kept repeated requests cold.",
        "A healthy process can still make the first caller wait. In an early rollback test, the health check passed but the first image request timed out. The full test passed when we waited for real text and image answers before opening the worker to requests."
      ]
    }
  ],
  "limitations": [
    "The eight-model check covers direct global chat routes. Background jobs, Africa-only inference and the unavailable Flash route were outside this comparison.",
    "Synthetic read-only lookups do not establish reliability for writes, customer-specific quality or an availability guarantee. The four-client test provides one latency observation for this workload.",
    "Cold and warm paths were not isolated in the load test. Customer charges reflect the tested token mix and historical rate versions. Infrastructure cost was outside the scope.",
    "The regional timings cover six short successful streams in one completed run on a dedicated GPU. Earlier attempts missed the startup or overall test deadline. These figures exclude the public network and queue. Regional caching remains disabled on the shared customer route.",
    "The mixed-version run tested text on a local CPU. Its results do not establish GPU throughput, vision behaviour, production savings or availability of shared regional caching.",
    "The GPU follow-up tested simple colours, cache boundaries and receipts. It does not establish document-reading quality, general latency or production cost savings. Shared regional caching still awaits a supervised production rollout."
  ],
  "tables": [
    {
      "title": "A short service-desk workload on GPT-6.1 Sol",
      "columns": [
        "Measure",
        "Observed"
      ],
      "rows": [
        [
          "Concurrent clients",
          "4"
        ],
        [
          "Completed lookups",
          "32 of 32"
        ],
        [
          "Median time for both turns",
          "9.90 s"
        ],
        [
          "95th percentile for both turns",
          "12.90 s"
        ],
        [
          "Measured charge for 64 requests",
          "$0.176276"
        ]
      ],
      "note": "One closed-loop run with a shared guide, short answers and a local synthetic lookup. Each client waited for its answer before starting again."
    },
    {
      "title": "Direct tool calls after the release",
      "columns": [
        "Model",
        "First ordinary / streamed result",
        "Isolated rerun"
      ],
      "rows": [
        [
          "GPT-6.1 Sol",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "DeepSeek V4 Pro",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "GPT-5.6 Luna",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "GPT-6 Luna",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "GPT-6.2 Sol",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "GPT-6.2 Astra",
          "Passed / passed",
          "Unneeded"
        ],
        [
          "Grok 4.7",
          "HTTP 504 / 503",
          "Passed / passed"
        ],
        [
          "Kimi K2.6",
          "HTTP 429 / 429",
          "Passed / passed"
        ]
      ],
      "note": "One request per transport per pass. The Kimi 429s occurred in the shared test workspace. Both attempts are shown."
    }
  ],
  "references": [
    {
      "label": "Related field note on enterprise model speed, quality and cost",
      "url": "https://embiro.ai/research/enterprise-model-speed-quality-cost"
    }
  ],
  "audio": [],
  "evidence": [
    {
      "file": "public-sustained-tool-load.json",
      "sha256": "e0d10dedf0d2e577f4c04cd0286410164720b1a5d0e807d42ba02a322b2aafb3"
    },
    {
      "file": "catalogue-charge-qualification.json",
      "sha256": "a2d23cf814191c42b52bc06e1f90ffb34f0251ca7826b098b71540f9c3ffca65"
    },
    {
      "file": "direct-tools-post-release-2026-11-19T050817Z.json",
      "sha256": "286b83c2c5571c91354a9794d831e54cbbca5f6f1eae4abf6f37e2bc65bd97fd"
    },
    {
      "file": "direct-tools-first-workspace-final-2026-11-19.json",
      "sha256": "e445669431d370350d3160b4df8969d3aad3ca61fcf5ffde6f4fccc875de8902"
    },
    {
      "file": "direct-tools-kimi-isolated-2026-11-19.json",
      "sha256": "3a5abc14a11747d281dd63bced8a7262af5b59ee4b219f7cc0e20755e9dbcb8a"
    },
    {
      "file": "direct-tools-grok-isolated-2026-11-19.json",
      "sha256": "26fcc5372009f88a99acc2235861bce61ffc0d0b920ddc3e9e75e22faea441b3"
    },
    {
      "file": "regional-cache/cape-town-t4-stream-20261119.json",
      "sha256": "0290a88c167bf2ff3cb2dcae5b4b9ad85c6bb4f75faabf010e6c9cfeee90bb31"
    },
    {
      "file": "regional-cache/cape-town-t4-receipts-20261119.json",
      "sha256": "1dfb1f5604ab520743c4834be4c8d0867a630211e2d8383c238282339aced7e3"
    },
    {
      "file": "regional-cache/native-workspace-overlap-20261119.json",
      "sha256": "7a63cef50ed016d23033f283db80de3f6bcd522af49e5209d78d65cbc9cadfff"
    },
    {
      "file": "regional-cache/native-media-cape-town-t4-20261119.json",
      "sha256": "0fbf1249048759684432ddbc6a176efe96f3d76f2ff6232a1b4456170621d01c"
    },
    {
      "file": "regional-cache/native-text-cape-town-t4-20261119.json",
      "sha256": "d5ad87e6f3e5302f2e0906f78f1ad0a42b1c2926d1ecb088402bcc67c1f2c931"
    },
    {
      "file": "regional-cache/native-supervisor-cape-town-t4-20261119.json",
      "sha256": "7f0dceef069e38e4bb19352f634070a8201dfcb73aa1bb288c7af55ea44c2faa"
    }
  ]
}
