Evaluating CodeCall
Covers FrontMCP 1.12.2 as of
Measure the workload you need to support before you add FrontMCP's CodeCall plugin to a server. This evaluation uses the published 47-tool CRM and its synthetic data. It runs the same scripted, read-only task two ways: through direct tool calls, and through one server-side script. It checks that both paths return the same answer. It does not measure model tokens, hosted latency, cost, or whether a model can write the script.
You will learn
- How to run the fixture that compares direct calls with CodeCall
- What each output field measures, and what it can't tell you
- What the recorded run on 2026-10-22 found
- What a model evaluation needs on top of this fixture
Run the fixture
Download the evaluation project, extract it, and follow its README. It pins the dependencies and the fixture. With Node.js 24 or later, in the extracted folder, run:
npm ci
npm run evaluate -- --runs=5For the direct baseline, the harness removes only the plugin's registration. Both servers use the same tool implementations. A scripted client stands in for the model: it makes the same tool choices a model would have to make. A small-catalog control makes a single direct lookup, because not every task gains from running a script.
Read the output
| Field | What it measures | What it cannot establish |
|---|---|---|
| catalog bytes | UTF-8 bytes of JSON tool definitions | Model tokenizer counts or billing |
| direct response bytes | Sum of result envelopes from the underlying calls | Which content a particular client includes in its prompt |
| discovery response bytes | Search and schema response envelopes | Free or zero-overhead discovery |
| CodeCall response bytes | The execution result envelope | Total context use without discovery and request sizes |
| direct calls / execution calls | Requests made by the scripted fixture | Number of model reasoning steps |
| directMs / scriptMs | In-process time after server startup | Cold deployment or hosted-model latency |
Runs happen one after another, after the servers start. The first call and later calls can differ because of cache state. So the output keeps every run, rather than one number that hides the spread. Compare the runs before you combine them. A failed assertion makes the harness exit with an error. Don't leave wrong results out of an evaluation.
Recorded results
The JSON record holds one capture of five runs. The tables below report it as written. Times are rounded to 0.01 ms; the JSON keeps full precision.
| Recorded | Value |
|---|---|
| Observed on | 2026-10-22 |
@frontmcp/sdk | 1.10.10 |
@frontmcp/plugin-codecall | 1.10.10 |
| Node.js | v24.18.1 |
| Platform | darwin, arm64 |
| Workload | 47-tool CRM; identical scripted read-only task; catalog and parsed result JSON UTF-8 bytes |
| Runs | 5 |
| Failures | None recorded. The harness writes no record if any assertion fails. |
The record's sourceHash is the SHA-256 of scripts/evaluate-codecall.mjs when it was captured. Compare it with the script you run to see whether the harness has changed since.
Catalog from tools/list | Tools | Bytes |
|---|---|---|
| Direct, without the plugin | 47 | 43,251 |
| With CodeCall | 6 | 15,999 |
Every run made the same calls and returned the same number of bytes:
| Step, in each of the 5 runs | Calls | Response bytes |
|---|---|---|
| Direct tool calls | 8 | 4,194 |
CodeCall discovery: codecall:search and codecall:describe | 2 | 16,467 |
CodeCall execution: codecall:execute | 1 | 522 |
Small-catalog control: one direct get_agent call | 1 | Not recorded |
Times, in milliseconds. directMs times the scripted task through its eight direct calls. scriptMs times only the codecall:execute call, without discovery.
| Run | directMs | scriptMs |
|---|---|---|
| 1 | 9.20 | 21.22 |
| 2 | 3.75 | 6.69 |
| 3 | 3.11 | 6.24 |
| 4 | 2.67 | 5.50 |
| 5 | 3.02 | 5.43 |
What the record shows:
- Both paths returned the same answer in every run.
- The CodeCall catalog was 15,999 bytes for 6 tools. Without the plugin, it was 43,251 bytes for 47 tools.
- CodeCall's two discovery calls returned 16,467 bytes. That is more than the 4,194 bytes of all eight direct responses. The execution result was 522 bytes.
scriptMswas higher thandirectMsin every run. Run 1 was the slowest on both paths.
Add a model evaluation deliberately
Record the exact prompt, the model and its version, the settings, the catalog, how the client behaves, the execution limits and a fixed set of tasks. Include simple lookups, joins, ambiguous requests and refused operations. Measure real input and output tokens, tool requests, whether the answers are correct, and wall time. Repeat the runs cold and warm. Keep any API price math dated, and separate from those measurements.
Publish failures and limits next to the results. Don't turn a fixture's byte reduction into a percentage token saving, a security certification or a universal speedup. Tool authorization still applies on both paths. Read CodeCall's limits before you turn on scripts.
Next step
Look through the complete CRM. Then replace its synthetic data with a read-only workload of your own. If direct calls already give a small answer, keep that simpler path.