Tools Reference

search_items

Search inventory items within a specific property by text, category, or room.

search_items

Search inventory items in a specific property. Filter by text query, category, or room.

Use Cases

  • Find specific items by name, brand, or model
  • Browse all items in a particular room
  • Filter inventory by category (Electronics, Furniture, etc.)
  • Get a count of items matching criteria

Parameters

ParameterTypeRequiredDescription
property_idstringYesUUID of the property to search in
querystringNoText to match against name, brand, model, or notes
categorystringNoFilter by category ID
roomstringNoFilter by room ID
limitnumberNoMaximum results (1-100, default: 50)

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_items",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "lamp"
    }
  }
}

Search with Filters

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "search_items",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000",
      "query": "Samsung",
      "room": "living-room-uuid",
      "limit": 10
    }
  }
}

List All Items in Property

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "search_items",
    "arguments": {
      "property_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"items\":[{\"id\":\"item-uuid-1\",\"name\":\"Desk Lamp\",\"category\":null,\"room\":\"Office\",\"photo_url\":\"https://storage.example.com/photos/lamp.jpg\",\"purchase_date\":\"2023-01-15\",\"value\":\"49.99\"},{\"id\":\"item-uuid-2\",\"name\":\"Floor Lamp\",\"category\":null,\"room\":\"Living Room\",\"photo_url\":null,\"purchase_date\":null,\"value\":\"129.00\"}],\"count\":2,\"property_id\":\"550e8400-e29b-41d4-a716-446655440000\"}"
      }
    ]
  }
}

Parsed Response

{
  "items": [
    {
      "id": "item-uuid-1",
      "name": "Desk Lamp",
      "category": null,
      "room": "Office",
      "photo_url": "https://storage.example.com/photos/lamp.jpg",
      "purchase_date": "2023-01-15",
      "value": "49.99"
    },
    {
      "id": "item-uuid-2",
      "name": "Floor Lamp",
      "category": null,
      "room": "Living Room",
      "photo_url": null,
      "purchase_date": null,
      "value": "129.00"
    }
  ],
  "count": 2,
  "property_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response Fields

FieldTypeDescription
itemsarrayArray of matching items
items[].idstringUUID of the item
items[].namestringItem name
items[].categorystring | nullCategory name (if assigned)
items[].roomstring | nullRoom name where item is located
items[].photo_urlstring | nullURL to item photo
items[].purchase_datestring | nullDate of purchase (ISO format)
items[].valuestring | nullItem value/price
countnumberTotal number of items returned
property_idstringThe property that was searched

Search Behavior

The query parameter performs case-insensitive matching across:

  • Item name
  • Brand
  • Model
  • Notes

Results are sorted by creation date (newest first) and exclude archived items.

Error Handling

Invalid Property ID

{
  "content": [
    {
      "type": "text",
      "text": "{\"error\": \"Invalid property ID\"}"
    }
  ],
  "isError": true
}

Property Not Found or Access Denied

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

Database Error

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