A-02 Database Agent: an octopus-like diver mech deep in a canyon of server racks, holding up one glowing answer card, its pilot in the glass dome, drawn in ink
Agents class, tool-arm mech

A-02Database Agent

Answers questions by driving a live database through MCP tools.

81.5%right answers on 184 held-out questions, up from 48.4%

Briefing

Questions about a music store, answered only through three read tools on a live SQLite server. A fifth of the albums, artists and customers in the test never appeared in training.

The base model wandered, calling more and more tools until it ran out of turns. Thirty steps of reinforcement learning took it from 48.4% to 81.5%, and taught it to commit to an answer.

Debrief
base
48.4%
step 10
69%
step 20
78.8%
step 30
81.5%
step 40
77.7%
Right answers, 184 held-out questions, greedy decoding, one run

Mission log

The job: answer a question by looking it up in a music store's database.

How long is the album 'Big Ones' in whole minutes, rounded down?
✕ Before training
8 database calls.
Out of turns. No answer.

Keeps searching and never answers.

✓ After training, A-02
4 database calls.
"The album 'Big Ones' is 73 minutes long."

The right answer in half the calls.

Try another case

In the field

Where it fits
Ask your own database in plain wordsPoint it at an MCP server over your data (SQLite, Postgres, an internal API) and retrain on your questions.
Analytics that shows its workEvery answer comes from tool calls you can log and replay, not from memory.
A template for agent trainingA clean way to see reinforcement learning teach a small model to stop exploring and commit.
Scars

Score the skill, not the format. The first reward paid only for answer tags and scored the base model at 0% while it was finding most answers. The honest baseline is 48.4%.

A constant learning rate of 1e-4 made it call more and more tools until it ran out of turns. Half the rate with cosine decay held.

Checked outside the training run: 52.7% to 89.1%, 67 answers fixed, none broken.

Next in the fleetA-03SolverCountdown arithmetic: reach a target from four numbers with + − × ÷.
Need one built for your job?Send three sentences and a sample of the data. You get an answer within a week.Start a project