Count tool calls

Count tool-kind steps per trace, preserving the difference between an empty trace and an unrecorded one.

Synthetic example · Grading rule v1

Recorded tool invocations per case.

Results for Count tool calls
Case idBaselineCandidate
weight-present11
weight-removed11
drawer-label11
latest-bay11

Next test
Inspect cases where the candidate uses additional calls.

Try your own runs

Replace the editor contents with a one-case starter, four-case field kit, or timed example.

Replace the run names, question, source, expected value and both answers with their exact quotes. For your own observations, set provenance to user_supplied. Up to 40 cases and 128 KiB per fixture.

Grading and measurement rules

Values use case-insensitive equality with normalized spacing. A value answer also needs a verbatim excerpt from the source containing that value. A missing-fact case expects unknown. A human should check attribution when the same value occurs in several places.

Coverage and latency comparisons use cases observed on both sides. Blank telemetry means unrecorded. Zero is a measurement. Step counts refer to the steps included in each supplied trace.

Inspect the MCP replay call
{
  "name": "count_tool_calls",
  "arguments": {
    "provenance": "synthetic",
    "baseline_name": "Run A",
    "candidate_name": "Run B",
    "cases": [
      {
        "id": "weight-present",
        "kind": "lookup",
        "pair": "case-weight",
        "question": "What does the case weigh?",
        "source": "The field kit includes six brass clips. The case weighs 240 g.",
        "expected": "240 g",
        "baseline": {
          "answer": "240 g",
          "quote": "The case weighs 240 g.",
          "latency_ms": 116,
          "tokens": 45,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 21
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 95
            }
          ]
        },
        "candidate": {
          "answer": "240 g",
          "quote": "The case weighs 240 g.",
          "latency_ms": 134,
          "tokens": 63,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 39
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 95
            }
          ]
        }
      },
      {
        "id": "weight-removed",
        "kind": "missing",
        "pair": "case-weight",
        "question": "What does the case weigh?",
        "source": "The field kit includes six brass clips.",
        "expected": "unknown",
        "baseline": {
          "answer": "unknown",
          "quote": "",
          "latency_ms": 128,
          "tokens": 47,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 28
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 100
            }
          ]
        },
        "candidate": {
          "answer": "240 g",
          "quote": "",
          "latency_ms": 146,
          "tokens": 65,
          "steps": [
            {
              "name": "cached_lookup",
              "kind": "tool",
              "ms": 46
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 100
            }
          ]
        }
      },
      {
        "id": "drawer-label",
        "kind": "recall",
        "question": "Which label was recorded?",
        "source": "The drawer label is Cedar.",
        "expected": "Cedar",
        "baseline": {
          "answer": "Cedar",
          "quote": "The drawer label is Cedar.",
          "latency_ms": 140,
          "tokens": 49,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 35
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 105
            }
          ]
        },
        "candidate": {
          "answer": "Cedar",
          "quote": "The drawer label is Cedar.",
          "latency_ms": 158,
          "tokens": 67,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 53
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 105
            }
          ]
        }
      },
      {
        "id": "latest-bay",
        "kind": "update",
        "question": "Which bay is current?",
        "source": "First note: use bay 3. Latest note: use bay 7.",
        "previous": "bay 3",
        "expected": "bay 7",
        "baseline": {
          "answer": "bay 3",
          "quote": "First note: use bay 3.",
          "latency_ms": 152,
          "tokens": 51,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 42
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 110
            }
          ]
        },
        "candidate": {
          "answer": "bay 7",
          "quote": "Latest note: use bay 7.",
          "latency_ms": 170,
          "tokens": 69,
          "steps": [
            {
              "name": "retrieve",
              "kind": "tool",
              "ms": 60
            },
            {
              "name": "generate",
              "kind": "model",
              "ms": 110
            }
          ]
        }
      }
    ]
  }
}
Browse all 20 tools