---
title: "Tool Inventory: A Toolbox AI Agents Can Check — Daniel Herrington"
description: "A catalogue of my hand and power tools that AI agents can look up on their own, so they stop asking \"do you have a 10mm socket?\" mid-repair. Photograph a drawer with the iPhone app, Claude vision lists every tool in it with its size, and any agent can ask \"do I have X, and where is it?\" over MCP, or check a whole job's tool list in one call. Search understands sizes and nicknames and suggests the closest tool I own when there's no exact match. Built and tested; not deployed yet."
url: "https://herrington.ai/projects/tool-inventory"
markdown_url: "https://herrington.ai/projects/tool-inventory/index.md"
author: "Daniel Herrington"
date: "2026-11-16"
updated: "2026-11-16"
markdown_tokens: 2930
content_signal: "ai-train=yes, search=yes, ai-input=yes"
mcp_endpoint: "https://herrington.ai/mcp"
---
# Tool Inventory: A Toolbox Your AI Agents Can Check

- **Canonical URL**: https://herrington.ai/cujs/tool-inventory
- **Date**: 2026-11-16
- **Summary**: 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 a 10mm deep socket, and where is it?" on their own instead of stopping a repair to ask.

# Tool Inventory: A Toolbox Your AI Agents Can Check

*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:

1. **"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.
2. **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?"
3. **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 2` in 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
1. **Trigger**: Mid-repair, the agent's plan needs a specific tool.
2. **Action**: Nothing from me. The agent calls the `find_tools` MCP tool with what it needs, in plain words: `"10mm deep socket 3/8 drive"`.
3. **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.
4. **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
1. **Trigger**: A new drawer, a new box, or a drawer that's been rearranged.
2. **Action**: In the iPhone app I pick or type the location and take one to three photos.
3. **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.
4. **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
1. **Trigger**: "I moved the torque wrench to the wall." "That's a 12mm, not a 10." "I lent the torque wrench to a neighbour."
2. **Action**: I say it to whichever agent I'm talking to.
3. **Automated Response**: The agent calls `move_tool` or `update_tool`. Agent edits are flagged, so re-photographing the drawer later won't undo them.
4. **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.

```mermaid
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.

### 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 `sizeSource` of `read` (off a stamp) or `inferred` (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.

### 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_locations` and `get_location_contents` answer questions.
  - `check_tools` takes 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_tool` and `update_tool` keep 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**](/projects/tool-inventory)

---

## Showcase Details

- **Project**: Tool Inventory: A Toolbox AI Agents Can Check
- **Category**: Agent Tools & MCP
- **Last Updated**: 2026-11-16
- **Tech Stack**: Model Context Protocol, Claude Vision, SwiftUI, Firebase, Cloud Run, TypeScript, Size-Aware Search
- **Canonical Showcase**: https://herrington.ai/projects/tool-inventory
- **CUJ Case Study**: https://herrington.ai/cujs/tool-inventory
