Inspiration

I asked an agent to order a pizza. Pepperoni, pickup, my name. The draft order came back with my home address on it. I never asked for delivery. The address was previously saved, the field was open, and nothing said no, so it went in. Nothing broke, and nothing got hacked. It was being helpful with something that was never its to give.

So I built Did I Ask?, a critic that runs beside the agent. It checks a proposed tool call against what I actually requested, flags anything I didn't ask for, and pauses before anything is sent.

It runs on-device, so both the check and the decisions stay with you.

What it does

Did I Ask? is a Chrome side panel that sits between you and a website's WebMCP tools. You say what you want in plain words. Gemini Nano, on your laptop, picks the tool and fills in its details. Then a second on-device pass checks every detail against what you actually said.

The critic flags proposed details that don't fit your request and pauses before execution, with a plain reason: the agent added your saved home address, and you didn't ask to send it. You can drop it or keep it. Ask for delivery and the address goes through, because now you asked. If you never said pickup or delivery, it stops and asks you instead of guessing. The receipt shows exactly what the shop received.

Compare options is the one feature that may use the cloud. It takes the shop's public tool description and lays out your choices (pickup or delivery, toppings) side by side. Public data in, nothing of yours out.

Hybrid routing is based on data sensitivity, not hardware availability alone: private operations fail closed when on-device inference is unavailable, while the public-only comparison can use cloud inference.

How I built it

  • Firebase AI Logic web SDK (13.4.0), bundled with esbuild into a Manifest V3 extension.
  • Every model call goes through the SDK. Picking, filling and checking are pinned to ONLY_ON_DEVICE. Compare options uses PREFER_IN_CLOUD (gemini-3.5-flash-lite) only when you've set up your own Firebase project with App Check, and stays on device otherwise.
  • Each card shows the inferenceSource the SDK reported, so you can see where every answer was made.
  • Function calling isn't available on device, so the agent works in two steps: pick the tool, then fill its arguments against the tool's schema.
  • The demo shop, Slice of Truth Pizza, is a small site on Vercel with one WebMCP tool, place_order.

Challenges I ran into

  • Being honest about "hybrid". Partway through, I asked whether anything in my demo actually reached the cloud. It didn't. So I moved the routing to follow the data: anything that touches your details stays local, and public shop data can go out.
  • Gemini Nano isn't on every machine. My own laptop can't run it, so all the on-device testing happened on a second laptop.
  • Cold starts. The first on-device pick can take 30 to 40 seconds before it warms up.
  • Letting judges run it without a Firebase project of their own, while App Check stays enforced.

Accomplishments that I'm proud of

The privacy boundary holds in the implementation, not just the video. A clean install runs the full private flow with no Firebase project or debug token, and private inference stays on-device. Only the cloud comparison needs a Firebase project, so the video shows it on a configured machine. The shop's receipts confirm the result: pickup shares no address, delivery includes the address when appropriate, and an unspecified fulfillment method never becomes a $4.99 deliver fee you never approved.

What I learned

What kind of data a request carries decides where it's allowed to go. Configuration only decides which of those places are available. And local inference has to be visible, or nobody can trust it.

What's next for Did I Ask?

One pizza shop and one WebMCP tool made the problem visible. The next question is whether the same approach holds when the tools, providers, and stakes change.

I want to test the critic against unfamiliar tool schemas, multiple capabilities, and situations where an extra argument might disclose private information, spend money, or change what gets delivered.

Built With

Share this project:

Updates

Submission history