A Critical User Journey (CUJ) case study on giving AI agents a catalogue of my hand and power tools, built from photos of each drawer, so they can answer "do I have it, and where is it?" without asking me.
π The Problem Space
Context
I work through most repairs and projects with an AI agent now: Claude, Grok Bot, Instinct, Muse. The agent is good at the plan: which bolts come out first, what torque the caliper bracket wants, which order to reassemble. My tools live in a garage with a red rolling box, a few smaller boxes, a pegboard wall and a shelf of cordless power tools on two battery platforms.
The Core Friction
The agent doesn't know any of that, so every repair conversation starts from zero and stalls on the same questions:
- "Do you have a 10mm deep socket?" I walk to the garage, dig through two drawers, come back and type the answer. Then it asks about a 3/8" to 1/4" adapter.
- Sizes are a language of their own. A "10mm 3/8 deep 6-point" socket, a "15/16" socket, a "crescent", a "sawzall": the same tool goes by several names, and metric vs SAE, drive size vs bolt size and deep vs shallow all matter. A plain text list can't answer "what's closest if I don't have it?"
- Nobody keeps a tool spreadsheet up to date. Any inventory that needs typing is out of date the week after it's made, which is why I never made one.
The real job: let any agent answer "do I have X, and where is it?" on its own, correctly, without asking me.
π¦ Critical User Journeys (CUJs)
CUJ 1: Ask While Working
- Statement: I want my AI agent to know which tools I own and which drawer each one is in while avoiding a walk to the garage every time it asks "do you have a 10mm socket?" so that I can keep a repair conversation moving and end with the agent telling me which drawer to open.
- User Scenario: I'm under the truck with the agent on my phone, working through a brake job. It needs a 10mm deep socket. Instead of asking, it looks, and says: "You have one, in the red rolling box, drawer 2. You don't have a 3/8" swivel, but there's a 1/4" one in the same drawer."
CUJ 2: Catalogue a Drawer in a Minute
- Statement: I want to photograph a drawer and have every tool in it catalogued with its size and location while avoiding typing out a spreadsheet of sockets and wrenches so that I can keep the inventory current for a minute per drawer, not an afternoon.
- User Scenario: Saturday morning, coffee in hand, I open drawer 2, lay the sockets out so their markings show, pick
Garage βΊ Red rolling box βΊ drawer 2in the app and take two photos. By the time I've opened drawer 3, drawer 2 reads Covered Β· 14 tools.
CUJ 3: Plan the Job Before I Start
- Statement: I want my agent to check a job's whole tool list against what I own while avoiding finding out halfway through a brake job that the torque wrench is lent out so that I can know what's ready, what's missing and the closest stand-in before I pick up a wrench.
- User Scenario: Before a weekend brake job I ask the agent to plan it. It checks the whole list in one call: the sockets, ratchet and breaker bar are ready, each with its drawer, but the torque wrench is marked as lent out. I know to get it back before Saturday, not halfway through the job.
πΊοΈ The Ideal Flows
Flow 1: Ask While Working
- Trigger: Mid-repair, the agent's plan needs a specific tool.
- Action: Nothing from me. The agent calls the
find_toolsMCP tool with what it needs, in plain words:"10mm deep socket 3/8 drive". - Automated Response: Size-aware search normalises the query (10mm = 10 mm, 3/8" = 0.375", deep vs shallow, drive vs fastener size), filters my inventory, and returns matches with their location. If nothing matches exactly, it returns the closest tools I do own and says what differs.
- Resolution: The agent tells me which drawer to open, or what to use instead, and carries on with the plan.
Flow 2: Catalogue a Drawer
- Trigger: A new drawer, a new box, or a drawer that's been rearranged.
- Action: In the iPhone app I pick or type the location and take one to three photos.
- Automated Response: Each photo uploads to Cloud Storage. A Cloud Function sends it to Claude vision with a structured-output schema and gets back tool records (
socket, 3/8" drive, 10mm, 6-pt, deep, metric, qty 1). Overlapping photos of one drawer are merged so a socket seen twice is counted once. Re-photographing a location replaces what the old photos found there. - Resolution: Each photo moves from Uploading to Indexing⦠to Indexed · 7 tools, and the location gets a Covered badge. Tapping a photo shows the tools it found.
Flow 3: Keep It Current by Talking
- Trigger: "I moved the torque wrench to the wall." "That's a 12mm, not a 10." "I lent the torque wrench to a neighbour."
- Action: I say it to whichever agent I'm talking to.
- Automated Response: The agent calls
move_toolorupdate_tool. Agent edits are flagged, so re-photographing the drawer later won't undo them. - Resolution: The next agent to ask gets the right answer, including "it's lent out" instead of a wrong drawer.
π οΈ The Solution: Two Halves, One Inventory
The product is two deliberately separate pieces that share one inventory in Firebase and nothing else: an iPhone app that only collects photos and shows what has been indexed, and an MCP server that only talks to agents. There's no browsing or editing in the app on purpose. Questions and corrections happen in conversation, where I already am.
graph TD
subgraph Capture
App[iPhone app: pick a drawer, take 1-3 photos] --> Storage[(Cloud Storage)]
Storage --> Fn[Cloud Function: Claude vision]
Fn --> DB[(Firestore: my locations, tools, photos)]
DB -->|Indexed Β· 7 tools| App
end
subgraph Agents
Claude[Claude] --> MCP[MCP server on Cloud Run]
Grok[Grok Bot] --> MCP
Muse[Muse / Instinct] --> MCP
MCP -->|find_tools, check_tools, move_tool...| DB
end
Every person's inventory sits behind its own bearer token, so the same server can serve other households later without anyone seeing anyone else's garage.
π» Under the Hood (Code & Architecture)
1. Size-Aware Search Instead of a Vector Database
- Approach: Tool names are short and structured, so search parses sizes and attributes and filters on them rather than embedding text. A vector database was considered and rejected: it's less accurate on "10mm vs 11mm" and harder to debug.
- Key Code Logic:
- Sizes and units normalise across spellings:
10mm,10 mm,3/8",3/8 in,0.375". - The search knows drive size from fastener size, metric from SAE, deep from shallow, 6-point from 12-point, and that inch values over 2 are lengths ("24 inch breaker bar"), not sizes.
- Nicknames map to kinds: crescent β adjustable wrench, sawzall β reciprocating saw, impact gun β impact wrench, vise grips β locking pliers.
- When nothing matches, it returns the closest tools I own and says why: the nearest size, the other depth, or the same tool on my other battery platform.
- Sizes and units normalise across spellings:
2. Photo Indexing with Claude Vision
- Approach: A Storage-triggered Cloud Function sends each new photo to Claude vision with a structured-output schema and writes one record per tool, linked to its photo and location. The Anthropic API key lives in Secret Manager, never in the app.
- Key Code Logic:
- Every size carries a
sizeSourceofread(off a stamp) orinferred(from position and neighbours). Agents say "probably 10mm, could be 9 or 11" for inferred sizes instead of stating a guess as fact, and the app shows β beside them. - Duplicate tools across overlapping photos of one capture are merged, and a photo that reads a stamp upgrades an inferred twin.
- Every size carries a
3. An MCP Server Built for Agents
- Approach: A TypeScript Streamable HTTP server on Cloud Run using the official MCP SDK. One bearer token maps to exactly one user's inventory. Tokens are stored only as SHA-256 hashes and issued by a server-side script.
- Key Code Logic:
find_tools,get_tool,list_locationsandget_location_contentsanswer questions.check_toolstakes a whole job's tool list and returns β ready (with location), β οΈ lent or missing (with the closest available stand-in), βͺ closest only, or β not owned, plus a one-line summary.add_tool,move_toolandupdate_toolkeep it current from conversation.
4. An Eval Before a Launch
- Approach: The spec's success metric is that an agent answers at least 18 of 20 real "do I have / where is" questions correctly, with the location, without asking. An offline, deterministic eval scores search and the MCP server against a seeded garage of 94 tools in 11 locations.
- Key Code Logic:
- 30 questions covering nicknames, lent and missing tools, closest-size fallbacks, other battery platforms, unknown tools ("magnetic pickup tool" must match nothing, not everything) and inferred sizes, plus 5 job checklists (brake pads, battery terminals, a rotted fence post, hanging a shelf, a seized lug nut).
- The first run scored 23/28 and found three search bugs. It now scores 30/30 and 5/5, and 175 server tests pass.
π Status
Version 0.1 is built and tested end to end against local Firebase emulators: the iPhone capture app, the indexing function, the MCP server and a one-command setup kit. It isn't deployed yet. Next: deploy it, catalogue the real garage, and use it on an actual repair, where success means the agent never once asks "do you haveβ¦" about a tool I've photographed.
π Repository & Source Code
- Tool Inventory is a personal project in a private repository.
- Tool Inventory project page