Tools Reference

add_item

Add a new item to property inventory with optional AI-powered identification from photos.

add_item

Add a new item to property inventory. Optionally use AI to identify items from photos.

Use Cases

  • Quickly add items to your home inventory
  • Photograph items and let AI identify brand, model, and category
  • Build inventory by snapping photos as you walk through your home
  • Add items with notes for insurance or organization purposes

Parameters

ParameterTypeRequiredDescription
property_idstringYesUUID of the property to add item to
namestringNoItem name (1-255 chars). Optional if photo provided.
photo_urlstringNoURL to item photo for AI identification
photo_base64stringNoBase64 encoded photo for AI identification
roomstringNoRoom where item is located
notesstringNoAdditional notes (max 2000 chars)
You must provide either name, photo_url, or photo_base64. If only a photo is provided, AI will identify the item and use that as the name.

Example Request

Add Item by Name

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_item",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "KitchenAid Stand Mixer",
      "room": "Kitchen",
      "notes": "Wedding gift from 2022. Artisan 5-quart in Empire Red."
    }
  }
}

Add Item with Photo URL

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "add_item",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000",
      "photo_url": "https://example.com/photos/my-tv.jpg",
      "room": "Living Room"
    }
  }
}

Add Item with Base64 Photo

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "add_item",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000",
      "photo_base64": "/9j/4AAQSkZJRg...",
      "name": "Office Chair"
    }
  }
}

Example Response

Without AI Identification

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"success\":true,\"item\":{\"id\":\"new-item-uuid\",\"name\":\"KitchenAid Stand Mixer\",\"brand\":null,\"model\":null},\"identified\":false,\"message\":\"Item added successfully\"}"
      }
    ]
  }
}

With AI Identification

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"success\":true,\"item\":{\"id\":\"new-item-uuid\",\"name\":\"Samsung 65\\\" QLED TV\",\"brand\":\"Samsung\",\"model\":\"QN65Q80B\"},\"identified\":true,\"message\":\"Item added successfully\"}"
      }
    ]
  }
}

Parsed Response

{
  "success": true,
  "item": {
    "id": "new-item-uuid",
    "name": "Samsung 65\" QLED TV",
    "brand": "Samsung",
    "model": "QN65Q80B"
  },
  "identified": true,
  "message": "Item added successfully"
}

Response Fields

FieldTypeDescription
successbooleanWhether the item was created
item.idstringUUID of the created item
item.namestringFinal item name (provided or AI-identified)
item.brandstring | nullBrand (from AI identification)
item.modelstring | nullModel number (from AI identification)
identifiedbooleanWhether AI identification was performed
messagestringSuccess or error message

AI Identification

When you provide a photo (URL or base64), OBI uses GPT-4o-mini to analyze the image and extract:

  • Name - What the item is
  • Brand - Manufacturer or brand name
  • Model - Specific model number or name
  • Category - Type of item (Electronics, Furniture, etc.)

If you also provide a name, it will be used instead of the AI-identified name, but brand and model will still be extracted from the photo.

Error Handling

Missing Required Input

{
  "content": [
    {
      "type": "text",
      "text": "{\"error\": \"Must provide either name, photo URL, or base64 photo\"}"
    }
  ],
  "isError": true
}

Property Access Denied

{
  "content": [
    {
      "type": "text",
      "text": "{\"error\": \"Property not found or access denied\"}"
    }
  ],
  "isError": true
}

AI Identification Failed

{
  "content": [
    {
      "type": "text",
      "text": "{\"error\": \"Failed to identify item\"}"
    }
  ],
  "isError": true
}

AI Not Configured

{
  "content": [
    {
      "type": "text",
      "text": "{\"error\": \"AI identification not configured\"}"
    }
  ],
  "isError": true
}

Tips

  • Quality photos help - Clear, well-lit photos improve AI identification accuracy
  • Show the label - If possible, include brand labels or model numbers in the photo
  • One item per photo - Focus on a single item for best results
  • Add notes - Include purchase info, serial numbers, or warranty details in notes